Fix Long literal for checkstyle groupbasedpolicy-base 12/64712/1
authorMichal Cmarada <mcmarada@cisco.com>
Wed, 25 Oct 2017 09:25:17 +0000 (11:25 +0200)
committerMichal Cmarada <mcmarada@cisco.com>
Wed, 25 Oct 2017 09:25:17 +0000 (11:25 +0200)
this fixes wrong usage of lowercase 'l' literal for long constants.

Change-Id: I6f7f56d4a0f8f5eff90de15e827e695a93bf8676
Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
groupbasedpolicy/src/test/java/org/opendaylight/groupbasedpolicy/sf/ClassifierInstanceValidatorTest.java
groupbasedpolicy/src/test/java/org/opendaylight/groupbasedpolicy/statistics/StatisticManagerImplTest.java

index f1b9197172417ae620ac51dac4dd1a3bc4f3f180..5cf225b4181f78ed031dbd85cd7acccfac232dad 100755 (executable)
@@ -50,7 +50,7 @@ public class ClassifierInstanceValidatorTest {
                         new SupportedParameterValuesBuilder().setParameterName(new ParameterName(PARAM_NAME))
                             .setParameterType(new IntBuilder()
                                 .setSupportedIntValueInRange(ImmutableList
-                                    .of(new SupportedIntValueInRangeBuilder().setMin(0l).setMax(1000l).build()))
+                                    .of(new SupportedIntValueInRangeBuilder().setMin(0L).setMax(1000L).build()))
                                 .build())
                             .build());
     }
@@ -95,7 +95,7 @@ public class ClassifierInstanceValidatorTest {
         ClassifierInstanceBuilder ciBuilder = new ClassifierInstanceBuilder();
         ciBuilder.setName(new ClassifierName(CLASSIFIER1));
         ciBuilder.setParameterValue(ImmutableList
-            .of(new ParameterValueBuilder().setName(new ParameterName(PARAM_NAME)).setIntValue(100l).build()));
+            .of(new ParameterValueBuilder().setName(new ParameterName(PARAM_NAME)).setIntValue(100L).build()));
 
         SupportedClassifierDefinition constraint = new SupportedClassifierDefinitionBuilder()
             .setClassifierDefinitionId(cdId)
index a6cb1ed979c69d9662d217ca603994f6290c4bad..71dba2974ead20b67ab44cdd55d1670a74691314 100755 (executable)
@@ -114,7 +114,7 @@ public class StatisticManagerImplTest {
     @Test
     public void testWriteStat() {
         StatRecords input = inputForWriting();
-        StatisticRecordKey key = new StatisticRecordKey(new RecordId(0l));
+        StatisticRecordKey key = new StatisticRecordKey(new RecordId(0L));
         StatisticRecord output = outputForWriting(key);
 
         CheckedFuture<Void, TransactionCommitFailedException> future = mock(CheckedFuture.class);
@@ -165,16 +165,16 @@ public class StatisticManagerImplTest {
             .setSubject(subject)
             .setClassifier(Collections.singletonList(classifier))
             .setAction(Collections.singletonList(action))
-            .setByteCount(25l)
-            .setPacketCount(5l);
-        StatisticRecordKey key = new StatisticRecordKey(new RecordId(0l));
+            .setByteCount(25L)
+            .setPacketCount(5L);
+        StatisticRecordKey key = new StatisticRecordKey(new RecordId(0L));
         StatisticRecordBuilder statRecord = new StatisticRecordBuilder().setKey(key)
             .setStatistic(Collections.singletonList(statBuilder.build()))
             .setSrcEndpoint(srcBuilder.build())
             .setDstEndpoint(dstBuilder.build());
         List<StatisticRecord> stats = new ArrayList<>();
         stats.add(statRecord.build());
-        statRecord.setKey(new StatisticRecordKey(new RecordId(1l)));
+        statRecord.setKey(new StatisticRecordKey(new RecordId(1L)));
         stats.add(statRecord.build());
 
         return stats;
@@ -211,8 +211,8 @@ public class StatisticManagerImplTest {
             .setSubject(subject)
             .setClassifier(Collections.singletonList(classifier))
             .setAction(Collections.singletonList(action))
-            .setByteCount(25l)
-            .setPacketCount(5l);
+            .setByteCount(25L)
+            .setPacketCount(5L);
         StatisticRecordBuilder statRecord = new StatisticRecordBuilder().setKey(key)
             .setStatistic(Collections.singletonList(statBuilder.build()))
             .setSrcEndpoint(srcBuilder.build())