Sonar: Move trailing comment on previous empty line 24/48624/2
authorLorand Jakab <lojakab@cisco.com>
Wed, 23 Nov 2016 12:53:11 +0000 (14:53 +0200)
committerLorand Jakab <lojakab@cisco.com>
Wed, 23 Nov 2016 13:38:57 +0000 (15:38 +0200)
Change-Id: I300972c7be4d89ffdc73a58475fa4a533ab5fc4b
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
commons/unittest_tools/src/main/java/org/opendaylight/lispflowmapping/tools/junit/BaseExpectations.java
mappingservice/lisp-proto/src/main/java/org/opendaylight/lispflowmapping/lisp/authentication/LispKeyIDEnum.java
mappingservice/lisp-proto/src/main/java/org/opendaylight/lispflowmapping/lisp/serializer/MapReplySerializer.java
mappingservice/lisp-proto/src/main/java/org/opendaylight/lispflowmapping/lisp/serializer/MappingRecordSerializer.java
mappingservice/lisp-proto/src/main/java/org/opendaylight/lispflowmapping/lisp/serializer/address/Ipv4PrefixBinarySerializer.java
mappingservice/lisp-proto/src/main/java/org/opendaylight/lispflowmapping/lisp/serializer/address/Ipv4PrefixSerializer.java
mappingservice/lisp-proto/src/main/java/org/opendaylight/lispflowmapping/lisp/serializer/address/Ipv6PrefixBinarySerializer.java
mappingservice/lisp-proto/src/main/java/org/opendaylight/lispflowmapping/lisp/serializer/address/Ipv6PrefixSerializer.java
mappingservice/lisp-proto/src/main/java/org/opendaylight/lispflowmapping/lisp/serializer/address/LcafSerializer.java
mappingservice/lisp-proto/src/main/java/org/opendaylight/lispflowmapping/lisp/serializer/address/SourceDestKeySerializer.java
mappingservice/lisp-proto/src/main/java/org/opendaylight/lispflowmapping/lisp/type/LispCanonicalAddressFormatEnum.java

index b34ecc631b75f00d849b2337cfb3570d1c164040..2b300d7c3214653e0366072ea1a1f91bd3307b34 100644 (file)
@@ -47,8 +47,8 @@ public abstract class BaseExpectations extends Expectations {
         context = new Mockery() {
             {
                 setImposteriser(ClassImposteriser.INSTANCE);
-                setThreadingPolicy(synchroniser); // otherwise we get errors on
-                // the finalizer thread
+                // otherwise we get errors on the finalizer thread:
+                setThreadingPolicy(synchroniser);
             }
         };
         defaultAction = new ReturnDefaultValueAction(ClassImposteriser.INSTANCE);
index 2a9007723e229ecbe39c19de0216f57ba10c97d0..d99cee78a93bd302d56a84a1c3b79a0e0fa38be1 100644 (file)
@@ -8,9 +8,9 @@
 package org.opendaylight.lispflowmapping.lisp.authentication;
 
 public enum LispKeyIDEnum {
-    NONE(0, null), //
-    SHA1(1, "HmacSHA1"), //
-    SHA256(2, "HmacSHA256"), //
+    NONE(0, null),
+    SHA1(1, "HmacSHA1"),
+    SHA256(2, "HmacSHA256"),
     UNKNOWN(-1, null);
 
     private short keyID;
index 2b877b5258d9dd62a213a682d062c1d708c925f9..34ee197ae9f5b01c08b5a743f92fe338b7890328 100644 (file)
@@ -42,9 +42,9 @@ public final class MapReplySerializer {
 
         ByteBuffer replyBuffer = ByteBuffer.allocate(size);
 
-        replyBuffer.put((byte) ((MessageType.MapReply.getIntValue() << 4) | //
-                (BooleanUtils.isTrue(mapReply.isProbe()) ? Flags.PROBE : 0x00) | //
-                (BooleanUtils.isTrue(mapReply.isEchoNonceEnabled()) ? Flags.ECHO_NONCE_ENABLED : 0x00)));
+        replyBuffer.put((byte) ((MessageType.MapReply.getIntValue() << 4)
+                | (BooleanUtils.isTrue(mapReply.isProbe()) ? Flags.PROBE : 0x00)
+                (BooleanUtils.isTrue(mapReply.isEchoNonceEnabled()) ? Flags.ECHO_NONCE_ENABLED : 0x00)));
 
         replyBuffer.position(replyBuffer.position() + Length.RES);
         if (mapReply.getMappingRecordItem() != null) {
index 84b2b887832e852039931273f074eba35f7913cc..d498d7ca99f4138d68ee91bcd0baf7d93618ddeb 100644 (file)
@@ -79,8 +79,8 @@ public final class MappingRecordSerializer {
         if (record.getAction() != null) {
             act = record.getAction();
         }
-        replyBuffer.put((byte) ((act.getIntValue() << 5) | //
-                ByteUtil.boolToBit(BooleanUtils.isTrue(record.isAuthoritative()), Flags.AUTHORITATIVE)));
+        replyBuffer.put((byte) ((act.getIntValue() << 5)
+                ByteUtil.boolToBit(BooleanUtils.isTrue(record.isAuthoritative()), Flags.AUTHORITATIVE)));
         replyBuffer.position(replyBuffer.position() + Length.RESERVED);
         replyBuffer.putShort(NumberUtil.asShort(record.getMapVersion()));
         if (record.getEid() != null && record.getEid().getAddress() != null) {
index 674def576bd27c04ec83a9cd042fa240ccf4eff3..ad76bb41e0271b92b91e802a1894a121bdf575bc 100644 (file)
@@ -53,12 +53,14 @@ public final class Ipv4PrefixBinarySerializer extends LispAddressSerializer {
 
     @Override
     public int getAddressSize(LispAddress lispAddress) {
-        return Length.IPV4; // XXX does this need to worry about the mask too?
+        // XXX does this need to worry about the mask too?
+        return Length.IPV4;
     }
 
     @Override
     public int getAddressSize(SimpleAddress simpleAddress) {
-        return Length.IPV4; // XXX does this need to worry about the mask too?
+        // XXX does this need to worry about the mask too?
+        return Length.IPV4;
     }
 
     @Override
index 2022a5e64206e5807a9afb57cc1c72ba8d702ad1..b151afdc8798f03faa4169064be67da94fae9cac 100644 (file)
@@ -50,12 +50,14 @@ public final class Ipv4PrefixSerializer extends LispAddressSerializer {
 
     @Override
     public int getAddressSize(LispAddress lispAddress) {
-        return Length.IPV4; // XXX does this need to worry about the mask too?
+        // XXX does this need to worry about the mask too?
+        return Length.IPV4;
     }
 
     @Override
     public int getAddressSize(SimpleAddress simpleAddress) {
-        return Length.IPV4; // XXX does this need to worry about the mask too?
+        // XXX does this need to worry about the mask too?
+        return Length.IPV4;
     }
 
     @Override
index 81a28d1bdca48ddccbc1ad0aceb6f9672b203431..7c47d740ba24ee360f9c3d04c2f7eb80ed36901f 100644 (file)
@@ -50,12 +50,14 @@ public final class Ipv6PrefixBinarySerializer extends LispAddressSerializer {
 
     @Override
     public int getAddressSize(LispAddress lispAddress) {
-        return Length.IPV6; // XXX does this need to worry about the mask too?
+        // XXX does this need to worry about the mask too?
+        return Length.IPV6;
     }
 
     @Override
     public int getAddressSize(SimpleAddress simpleAddress) {
-        return Length.IPV6; // XXX does this need to worry about the mask too?
+        // XXX does this need to worry about the mask too?
+        return Length.IPV6;
     }
 
     @Override
index 627b3d944e63a7ac3cd28052795ba9b6e1c23415..27a023b4a75e3f2878e7a8fa8d0b100be54c79b5 100644 (file)
@@ -50,12 +50,14 @@ public final class Ipv6PrefixSerializer extends LispAddressSerializer {
 
     @Override
     public int getAddressSize(LispAddress lispAddress) {
-        return Length.IPV6; // XXX does this need to worry about the mask too?
+        // XXX does this need to worry about the mask too?
+        return Length.IPV6;
     }
 
     @Override
     public int getAddressSize(SimpleAddress simpleAddress) {
-        return Length.IPV6; // XXX does this need to worry about the mask too?
+        // XXX does this need to worry about the mask too?
+        return Length.IPV6;
     }
 
     @Override
index 082a486c872554817baf1ec6f51860a405f33835..f3c8a3f63a227bfb5cea70b320e526b8ab5fbc20 100644 (file)
@@ -70,7 +70,8 @@ public class LcafSerializer extends LispAddressSerializer {
 
     private void serializeLCAFAddressHeader(ByteBuffer buffer, LispAddress lispAddress,
             LispAddressSerializer serializer) {
-        buffer.putShort((short) 0); // RES + Flags.
+        // RES + Flags
+        buffer.putShort((short) 0);
         buffer.put(serializer.getLcafType());
         buffer.put((byte) 0);
     }
index 2bf62f22ab176ca7166d9ef0e77faa93515e4684..24f873fff259c674061e5b4cff68dd4b5ec5839a 100644 (file)
@@ -97,7 +97,9 @@ public final class SourceDestKeySerializer extends LcafSerializer {
     }
 
     private Address deserializeData(ByteBuffer buffer, LispAddressSerializerContext ctx) {
-        buffer.getShort();  // reserved bytes
+        // reserved bytes
+        buffer.getShort();
+
         short srcMaskLength = (short) ByteUtil.getUnsignedByte(buffer);
         short dstMaskLength = (short) ByteUtil.getUnsignedByte(buffer);
         ctx.setMaskLen(srcMaskLength);
index 33d6e22ec1d54348e862b688e7a25506fedc20b1..4c7930bf7258884b26b35ca5c1a6d029da5b075f 100644 (file)
@@ -12,12 +12,12 @@ package org.opendaylight.lispflowmapping.lisp.type;
  * The LCAF enum. http://tools.ietf.org/html/draft-ietf-lisp-lcaf-03
  */
 public enum LispCanonicalAddressFormatEnum {
-    LIST(1), //
-    SEGMENT(2), //
-    APPLICATION_DATA(4), //
-    SOURCE_DEST(12), //
-    TRAFFIC_ENGINEERING(10), //
-    KEY_VALUE(15), //
+    LIST(1),
+    SEGMENT(2),
+    APPLICATION_DATA(4),
+    SOURCE_DEST(12),
+    TRAFFIC_ENGINEERING(10),
+    KEY_VALUE(15),
     SERVICE_PATH(17),
     UNKNOWN(-1);