BUG-2825: rename method name 85/35385/2
authorRobert Varga <robert.varga@pantheon.sk>
Thu, 25 Feb 2016 11:54:14 +0000 (12:54 +0100)
committerRobert Varga <robert.varga@pantheon.sk>
Thu, 25 Feb 2016 12:37:14 +0000 (13:37 +0100)
Shorten the method name for clarity.

Change-Id: I2e9c6e9cd1232dc4d4dbd1f5722b84e55fc9eec7
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
model/ietf/ietf-type-util/src/test/java/org/opendaylight/mdsal/model/ietf/util/Ipv6UtilsTest.java

index d5f357d3d3b950bde3ac6972bfc686f2567045a0..867daa75e2fe0eee6088b1492d2788b07af2471d 100644 (file)
@@ -59,7 +59,7 @@ final class Ipv6Utils {
      * FIXME: rovarga: this looks wrong
      * @return - byte array of size 16. Last byte contains netmask
      */
-   public static byte[] canonicalBinaryV6Address(final String ipv6Address) {
+   public static byte[] bytesForString(final String ipv6Address) {
        /*
         * Do not modify this routine to take direct strings input!!!
         * Key checks have been removed based on the assumption that
index aecbe9a2d43f586ae7451eac4fd282ebbdac76e8..74b03fc275cadc43691c061b15f9e699ce9fcdd1 100644 (file)
@@ -17,7 +17,7 @@ import org.junit.Test;
 public class Ipv6UtilsTest {
     @Test
     public void testFullQuads() {
-        byte [] ipv6binary = Ipv6Utils.canonicalBinaryV6Address("0000:0000:0000:0000:0000:0000:0000:0001");
+        byte [] ipv6binary = Ipv6Utils.bytesForString("0000:0000:0000:0000:0000:0000:0000:0001");
         Assert.assertArrayEquals(InetAddresses.forString("::1").getAddress(), ipv6binary);
     }
 }