Remove unnecessary casts 01/32101/2
authorGary Wu <gary.wu1@huawei.com>
Mon, 4 Jan 2016 19:46:23 +0000 (11:46 -0800)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 5 Jan 2016 12:45:34 +0000 (12:45 +0000)
Change-Id: I6a1e8e04a010585d5530d286851108d0dc3642ca
Signed-off-by: Gary Wu <gary.wu1@huawei.com>
benchmark/dsbenchmark/src/main/java/org/opendaylight/dsbenchmark/simpletx/SimpletxBaDelete.java
benchmark/dsbenchmark/src/main/java/org/opendaylight/dsbenchmark/simpletx/SimpletxBaRead.java
benchmark/dsbenchmark/src/main/java/org/opendaylight/dsbenchmark/simpletx/SimpletxDomDelete.java
benchmark/dsbenchmark/src/main/java/org/opendaylight/dsbenchmark/simpletx/SimpletxDomRead.java
benchmark/dsbenchmark/src/main/java/org/opendaylight/dsbenchmark/txchain/TxchainBaDelete.java
benchmark/dsbenchmark/src/main/java/org/opendaylight/dsbenchmark/txchain/TxchainBaRead.java
benchmark/rpcbenchmark/src/main/java/rpcbenchmark/impl/RpcbenchmarkProvider.java

index 45cd66e..e42fef2 100644 (file)
@@ -24,7 +24,7 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 public class SimpletxBaDelete extends DatastoreAbstractWriter {
-    private static final Logger LOG = (Logger) LoggerFactory.getLogger(SimpletxBaDelete.class);
+    private static final Logger LOG = LoggerFactory.getLogger(SimpletxBaDelete.class);
     private DataBroker dataBroker;
 
     public SimpletxBaDelete(DataBroker dataBroker, int outerListElem, int innerListElem,
index bc43d46..0281396 100644 (file)
@@ -29,7 +29,7 @@ import org.slf4j.LoggerFactory;
 
 
 public class SimpletxBaRead extends DatastoreAbstractWriter {
-    private static final Logger LOG = (Logger) LoggerFactory.getLogger(SimpletxBaRead.class);
+    private static final Logger LOG = LoggerFactory.getLogger(SimpletxBaRead.class);
     private DataBroker dataBroker;
 
     public SimpletxBaRead(DataBroker dataBroker, int outerListElem, int innerListElem, 
index aa0a2ac..8f74853 100644 (file)
@@ -23,7 +23,7 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 public class SimpletxDomDelete extends DatastoreAbstractWriter {
-    private static final Logger LOG = (Logger) LoggerFactory.getLogger(SimpletxDomDelete.class);
+    private static final Logger LOG = LoggerFactory.getLogger(SimpletxDomDelete.class);
     private final DOMDataBroker domDataBroker;
 
     public SimpletxDomDelete(DOMDataBroker domDataBroker, int outerListElem,
index 4c0eb02..d644b1e 100644 (file)
@@ -29,7 +29,7 @@ import org.slf4j.LoggerFactory;
 
 
 public class SimpletxDomRead extends DatastoreAbstractWriter {
-    private static final Logger LOG = (Logger) LoggerFactory.getLogger(SimpletxDomRead.class);
+    private static final Logger LOG = LoggerFactory.getLogger(SimpletxDomRead.class);
     private final DOMDataBroker domDataBroker;
 
     public SimpletxDomRead(DOMDataBroker domDataBroker, int outerListElem,
index b30b38b..bbdb0f5 100644 (file)
@@ -30,7 +30,7 @@ import com.google.common.util.concurrent.FutureCallback;
 import com.google.common.util.concurrent.Futures;
 
 public class TxchainBaDelete extends DatastoreAbstractWriter implements TransactionChainListener{
-    private static final Logger LOG = (Logger) LoggerFactory.getLogger(TxchainBaDelete.class);
+    private static final Logger LOG = LoggerFactory.getLogger(TxchainBaDelete.class);
     private DataBroker bindingDataBroker;
 
     public TxchainBaDelete(DataBroker bindingDataBroker, int outerListElem, int innerListElem, long writesPerTx, DataStore dataStore) {
index 2a53dea..37598d5 100644 (file)
@@ -27,7 +27,7 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 public class TxchainBaRead extends DatastoreAbstractWriter implements TransactionChainListener{
-    private static final Logger LOG = (Logger) LoggerFactory.getLogger(TxchainBaRead.class);
+    private static final Logger LOG = LoggerFactory.getLogger(TxchainBaRead.class);
     private DataBroker bindingDataBroker;
 
     public TxchainBaRead(DataBroker bindingDataBroker, int outerListElem, int innerListElem, long writesPerTx, DataStore dataStore) {
index e06e3c0..a9c7d38 100644 (file)
@@ -133,8 +133,8 @@ public class RpcbenchmarkProvider implements BindingAwareProvider, AutoCloseable
 
             StartTestOutput output = new StartTestOutputBuilder()
                                             .setRate((long)0)
-                                            .setGlobalRtcClientError((long)client.getRpcError())
-                                            .setGlobalRtcClientOk((long)client.getRpcOk())
+                                            .setGlobalRtcClientError(client.getRpcError())
+                                            .setGlobalRtcClientOk(client.getRpcOk())
                                             .setExecTime(TimeUnit.NANOSECONDS.toMillis(elapsedTime))
                                             .setRate(((client.getRpcOk() + client.getRpcError()) * 1000000000) / elapsedTime)
                                             .build();

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.