summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap/dmaap/dmf/mr/utils/Utils.java
diff options
context:
space:
mode:
authorMandar Sawant <ms5838@att.com>2020-04-09 21:09:55 +0000
committerGerrit Code Review <gerrit@onap.org>2020-04-09 21:09:55 +0000
commit436eaaeb2ea232fc1e989060c7e3b6db953b5a27 (patch)
treeecd1353b7a7ea1302bbf5f869f636b13a81b0692 /src/main/java/org/onap/dmaap/dmf/mr/utils/Utils.java
parentb93c32999c79cf0234ee5b46f3e810fe5afa7d38 (diff)
parent78c361428d27096e376547afba565222d1715a96 (diff)
Merge changes from topic "rupinsi2-messagerouter"6.0.0-ONAPfrankfurt
* changes: fixed code smells removed code smells
Diffstat (limited to 'src/main/java/org/onap/dmaap/dmf/mr/utils/Utils.java')
-rw-r--r--src/main/java/org/onap/dmaap/dmf/mr/utils/Utils.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/org/onap/dmaap/dmf/mr/utils/Utils.java b/src/main/java/org/onap/dmaap/dmf/mr/utils/Utils.java
index 40e6840..174d80b 100644
--- a/src/main/java/org/onap/dmaap/dmf/mr/utils/Utils.java
+++ b/src/main/java/org/onap/dmaap/dmf/mr/utils/Utils.java
@@ -33,8 +33,6 @@ import java.util.List;
import java.util.Properties;
import javax.servlet.http.HttpServletRequest;
-
-import org.onap.dmaap.dmf.mr.backends.kafka.KafkaPublisher;
import org.onap.dmaap.dmf.mr.beans.DMaaPContext;
import com.att.eelf.configuration.EELFLogger;
import com.att.eelf.configuration.EELFManager;
@@ -133,7 +131,10 @@ public class Utils {
*/
public static long getSleepMsForRate ( double ratePerMinute )
{
- if ( ratePerMinute <= 0.0 ) return 0;
+ if ( ratePerMinute <= 0.0 )
+ {
+ return 0;
+ }
return Math.max ( 1000, Math.round ( 60 * 1000 / ratePerMinute ) );
}