From f3b68297aabeccb2d94e998af7dc0b05f0c0f085 Mon Sep 17 00:00:00 2001 From: Michal Cmarada Date: Wed, 25 Oct 2017 11:25:17 +0200 Subject: [PATCH] Fix Long literal for checkstyle groupbasedpolicy-base this fixes wrong usage of lowercase 'l' literal for long constants. Change-Id: I6f7f56d4a0f8f5eff90de15e827e695a93bf8676 Signed-off-by: Michal Cmarada --- .../sf/ClassifierInstanceValidatorTest.java | 4 ++-- .../statistics/StatisticManagerImplTest.java | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/groupbasedpolicy/src/test/java/org/opendaylight/groupbasedpolicy/sf/ClassifierInstanceValidatorTest.java b/groupbasedpolicy/src/test/java/org/opendaylight/groupbasedpolicy/sf/ClassifierInstanceValidatorTest.java index f1b919717..5cf225b41 100755 --- a/groupbasedpolicy/src/test/java/org/opendaylight/groupbasedpolicy/sf/ClassifierInstanceValidatorTest.java +++ b/groupbasedpolicy/src/test/java/org/opendaylight/groupbasedpolicy/sf/ClassifierInstanceValidatorTest.java @@ -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) diff --git a/groupbasedpolicy/src/test/java/org/opendaylight/groupbasedpolicy/statistics/StatisticManagerImplTest.java b/groupbasedpolicy/src/test/java/org/opendaylight/groupbasedpolicy/statistics/StatisticManagerImplTest.java index a6cb1ed97..71dba2974 100755 --- a/groupbasedpolicy/src/test/java/org/opendaylight/groupbasedpolicy/statistics/StatisticManagerImplTest.java +++ b/groupbasedpolicy/src/test/java/org/opendaylight/groupbasedpolicy/statistics/StatisticManagerImplTest.java @@ -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 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 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()) -- 2.36.6