Merge "Sonar Fix - ConnectionFactory.java"
authorDominic Lunanuova <dgl@research.att.com>
Mon, 11 Mar 2019 16:35:31 +0000 (16:35 +0000)
committerGerrit Code Review <gerrit@onap.org>
Mon, 11 Mar 2019 16:35:31 +0000 (16:35 +0000)
src/main/java/org/onap/dmaap/dbcapi/database/ConnectionFactory.java

index 0f14e60..e32b8e0 100644 (file)
@@ -3,6 +3,7 @@
  * org.onap.dmaap
  * ================================================================================
  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * Modifications Copyright (C) 2019 IBM.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -108,6 +109,7 @@ public class ConnectionFactory      {
                        TimeUnit.SECONDS.sleep(seconds);
                } catch (InterruptedException e) {
                        logger.debug("Waiting interrupted. ", e);
+                       Thread.currentThread().interrupt();
                }
        }
 }