Fix codestyle 25/62825/1
authorJozef Bacigal <jozef.bacigal@pantheon.tech>
Thu, 7 Sep 2017 11:13:30 +0000 (13:13 +0200)
committerJozef Bacigal <jozef.bacigal@pantheon.tech>
Thu, 7 Sep 2017 11:13:30 +0000 (13:13 +0200)
- explicit type

See also:Bug-8607

Change-Id: I5078f0b423942fdec385e9043d5a719cbffb9a6d
Signed-off-by: Jozef Bacigal <jozef.bacigal@pantheon.tech>
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/AllMeterConfigStatsService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/GroupDescriptionService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/compatibility/GroupStatisticsToNotificationTransformer.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/compatibility/MeterStatisticsToNotificationTransformer.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/compatibility/NodeConnectorStatisticsToNotificationTransformer.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/compatibility/QueueStatisticsToNotificationTransformer.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/StatisticsContextImplParamTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/StatisticsContextImplTest.java

index 220d84fd822a9b99333c3fb06cf0cfb622c34fc5..7029892a4f20b2eb8a298b558b57d7d7d0c3645c 100644 (file)
@@ -90,7 +90,7 @@ final class AllMeterConfigStatsService
         message.setMoreReplies(Boolean.FALSE);
         message.setTransactionId(emulatedTxId);
 
-        message.setMeterConfigStats(new ArrayList<MeterConfigStats>());
+        message.setMeterConfigStats(new ArrayList<>());
         for (MultipartReply mpReply : result) {
             MultipartReplyMeterConfigCase caseBody = (MultipartReplyMeterConfigCase) mpReply.getMultipartReplyBody();
             MultipartReplyMeterConfig replyBody = caseBody.getMultipartReplyMeterConfig();
index 12f12b4133e3ae3e7dcc4a32477d10e36ae04ac0..775c9f6a2a7ffcb03520bd2eaa132acb51e0350a 100644 (file)
@@ -71,7 +71,7 @@ final class GroupDescriptionService
         notification.setMoreReplies(Boolean.FALSE);
         notification.setTransactionId(emulatedTxId);
 
-        notification.setGroupDescStats(new ArrayList<GroupDescStats>());
+        notification.setGroupDescStats(new ArrayList<>());
         final VersionConvertorData data = new VersionConvertorData(getVersion());
 
         for (MultipartReply mpReply : result) {
index f98a3bcba4a20751bd49cfc76494a507bf05a19e..a62476b7d54875da57b9b6e6e50da9004fb1062b 100644 (file)
@@ -50,7 +50,7 @@ public class GroupStatisticsToNotificationTransformer {
         notification.setMoreReplies(Boolean.FALSE);
         notification.setTransactionId(emulatedTxId);
 
-        notification.setGroupStats(new ArrayList<GroupStats>());
+        notification.setGroupStats(new ArrayList<>());
 
         for (MultipartReply mpReply : mpReplyList) {
             MultipartReplyGroupCase caseBody = (MultipartReplyGroupCase) mpReply.getMultipartReplyBody();
index 7f3d3941737fe6fdb0bd488abd55d415245c5c1b..76ae2d79ddcdc9cb5ca08f8bd4ff4ed039f641dc 100644 (file)
@@ -54,7 +54,7 @@ public class MeterStatisticsToNotificationTransformer {
         notification.setMoreReplies(Boolean.FALSE);
         notification.setTransactionId(emulatedTxId);
 
-        notification.setMeterStats(new ArrayList<MeterStats>());
+        notification.setMeterStats(new ArrayList<>());
         for (MultipartReply mpReply : mpReplyList) {
             MultipartReplyMeterCase caseBody = (MultipartReplyMeterCase) mpReply.getMultipartReplyBody();
             MultipartReplyMeter replyBody = caseBody.getMultipartReplyMeter();
index fdf42c8cf23371d1a4768e2271b9e782237be323..1dafdec3630a91bc110598541e12a120c1e20174 100644 (file)
@@ -58,7 +58,7 @@ public class NodeConnectorStatisticsToNotificationTransformer {
         notification.setTransactionId(emulatedTxId);
 
         notification
-                .setNodeConnectorStatisticsAndPortNumberMap(new ArrayList<NodeConnectorStatisticsAndPortNumberMap>());
+                .setNodeConnectorStatisticsAndPortNumberMap(new ArrayList<>());
         for (MultipartReply mpReply : mpReplyList) {
             MultipartReplyPortStatsCase caseBody = (MultipartReplyPortStatsCase) mpReply.getMultipartReplyBody();
 
index a431175f870b006687e6bf8a5903da5b27755daa..7aa5ee0f715c0144130496a252e43816a9f50345 100644 (file)
@@ -55,7 +55,7 @@ public class QueueStatisticsToNotificationTransformer {
         notification.setMoreReplies(Boolean.FALSE);
         notification.setTransactionId(emulatedTxId);
 
-        notification.setQueueIdAndStatisticsMap(new ArrayList<QueueIdAndStatisticsMap>());
+        notification.setQueueIdAndStatisticsMap(new ArrayList<>());
         for (MultipartReply mpReply : mpReplyList) {
 
             MultipartReplyQueueCase caseBody = (MultipartReplyQueueCase) mpReply.getMultipartReplyBody();
index 6426e2fa23b92a3cbda15635ed31758696172169..fade81a4c1cab4ddfc771d55f1c8c03a110f8643 100644 (file)
@@ -71,8 +71,8 @@ public class StatisticsContextImplParamTest extends StatisticsContextImpMockInit
         when(mockedDeviceContext.getDeviceState()).thenReturn(mockedDeviceState);
 
         final ConvertorManager convertorManager = ConvertorManagerFactory.createDefaultManager();
-        final StatisticsContextImpl<MultipartReply> statisticsContext = new StatisticsContextImpl<MultipartReply>(
-                mockedDeviceContext ,convertorManager,
+        final StatisticsContextImpl<MultipartReply> statisticsContext = new StatisticsContextImpl<>(
+                mockedDeviceContextconvertorManager,
                 MultipartWriterProviderFactory.createDefaultProvider(mockedDeviceContext),
                 true, false, 3000, 50000);
 
index ba97b9c53b75a3e6e1d44463e3c0a3523b205234..77e2299eb98c9bdedb5837b49d77f3fa251cb3ad 100644 (file)
@@ -53,7 +53,7 @@ public class StatisticsContextImplTest extends StatisticsContextImpMockInitiatio
     }
 
     private void initStatisticsContext() {
-        statisticsContext = new StatisticsContextImpl<MultipartReply>(
+        statisticsContext = new StatisticsContextImpl<>(
                 mockedDeviceContext, convertorManager,
                 MultipartWriterProviderFactory.createDefaultProvider(mockedDeviceContext),
                 true,
@@ -76,7 +76,7 @@ public class StatisticsContextImplTest extends StatisticsContextImpMockInitiatio
      */
     @Test
     public void testClose() throws Exception {
-        final StatisticsContextImpl<MultipartReply> statisticsContext = new StatisticsContextImpl<MultipartReply>(
+        final StatisticsContextImpl<MultipartReply> statisticsContext = new StatisticsContextImpl<>(
                 mockedDeviceContext, convertorManager,
                 MultipartWriterProviderFactory.createDefaultProvider(mockedDeviceContext),
                 true, false, 3000, 50000);