BUG-2825: rename method name 39/35639/5
authorRobert Varga <robert.varga@pantheon.sk>
Thu, 25 Feb 2016 11:54:14 +0000 (12:54 +0100)
committerRobert Varga <rovarga@cisco.com>
Fri, 4 Mar 2016 01:45:34 +0000 (02:45 +0100)
Shorten the method name for clarity.

Change-Id: I2e9c6e9cd1232dc4d4dbd1f5722b84e55fc9eec7
Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
(cherry picked from commit f2bbbd26953e2dd26f699749434a3400a99aedee)

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 b47f1e3dfc7a98f1f72d8f3d0f3390b9d22a4bd6..868a5a52c5ed23acb438fa1493e29eca3522f065 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);
     }
 }