commit | 961b19f66dc4cdce841c7ede6f6d549399b6390c | [log] [tgz] |
---|---|---|
author | Ray Milkey <ray@opennetworking.org> | Mon Feb 05 13:47:55 2018 -0800 |
committer | Thomas Vachuska <tom@opennetworking.org> | Tue Feb 06 17:54:52 2018 +0000 |
tree | 75397d348b12979f550f3fe9d7bfe0ffdb5723ba | |
parent | ef31005fd209cf08cfa8724ad053155508103829 [diff] |
SONAR suggestions - eliminate lossy arithmetic Change-Id: I5a02ea407225ee0c9df040b74a8c0dc2ee5d5cb3
diff --git a/core/net/src/main/java/org/onosproject/cluster/impl/ConfigFileBasedClusterMetadataProvider.java b/core/net/src/main/java/org/onosproject/cluster/impl/ConfigFileBasedClusterMetadataProvider.java index 99920f9..873a0b8 100644 --- a/core/net/src/main/java/org/onosproject/cluster/impl/ConfigFileBasedClusterMetadataProvider.java +++ b/core/net/src/main/java/org/onosproject/cluster/impl/ConfigFileBasedClusterMetadataProvider.java
@@ -194,7 +194,7 @@ } try { - Thread.sleep((int) Math.pow(2, iterations < 7 ? ++iterations : iterations) * 10); + Thread.sleep((int) Math.pow(2, iterations < 7 ? ++iterations : iterations) * 10L); } catch (InterruptedException e) { throw Throwables.propagate(e); }