BUG-2825: Cleanup comments 88/35388/4
authorRobert Varga <robert.varga@pantheon.sk>
Thu, 25 Feb 2016 10:59:25 +0000 (11:59 +0100)
committerGerrit Code Review <gerrit@opendaylight.org>
Thu, 25 Feb 2016 15:23:30 +0000 (15:23 +0000)
Convert single-line comments to // notation

Change-Id: I55bc36aa405a96ac42e16490004fcf4c5b60ad65
Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
model/ietf/ietf-type-util/src/main/java/org/opendaylight/mdsal/model/ietf/util/Ipv6Utils.java

index d50a07ef30cf6c09ebd171aa11727c01b44adce6..ce35e413497987f32c2d19d8a17d1228be1728d1 100644 (file)
@@ -61,7 +61,7 @@ final class Ipv6Utils {
        final int percentPos = addrStr.indexOf('%');
        final int addrStrLen = percentPos == -1 ? addrStr.length() : percentPos;
 
-       /* Leading :: requires some special handling. */
+       // Leading :: requires some special handling.
        int i = 0;
        if (addrStr.charAt(i) == ':') {
            // Note ++i side-effect in check
@@ -78,16 +78,16 @@ final class Ipv6Utils {
        while (i < addrStrLen) {
            final char ch = addrStr.charAt(i++);
 
-           /* v6 separator */
+           // v6 separator
            if (ch == ':') {
                curtok = i;
                if (!saw_xdigit) {
-                   /* no need to check separator position validity - regexp does that */
+                   // no need to check separator position validity - regexp does that
                    colonp = j;
                    continue;
                }
 
-               /* removed overrun check - the regexp checks for valid data */
+               // removed overrun check - the regexp checks for valid data
 
                dst[j++] = (byte) ((val >>> 8) & 0xff);
                dst[j++] = (byte) (val & 0xff);
@@ -96,9 +96,8 @@ final class Ipv6Utils {
                continue;
            }
 
-           /* frankenstein - v4 attached to v6, mixed notation */
+           // frankenstein - v4 attached to v6, mixed notation
            if (ch == '.' && ((j + INADDR4SZ) <= INADDR6SZ)) {
-
                /*
                 * This has passed the regexp so it is fairly safe to parse it
                 * straight away. Use the Ipv4Utils for that.
@@ -109,7 +108,8 @@ final class Ipv6Utils {
                break;
            }
 
-           /* Business as usual - ipv6 address digit.
+           /*
+            * Business as usual - ipv6 address digit.
             * We can remove all checks from the original BSD code because
             * the regexp has already verified that we are not being fed
             * anything bigger than 0xffff between the separators.