Fix: Correct typos in multicast LCAF address class

Change-Id: I22efd7f281a10baded717c88ec0176309ec543c8
diff --git a/protocols/lisp/msg/src/main/java/org/onosproject/lisp/msg/types/lcaf/LispMulticastLcafAddress.java b/protocols/lisp/msg/src/main/java/org/onosproject/lisp/msg/types/lcaf/LispMulticastLcafAddress.java
index 771b3ca..64657b1 100644
--- a/protocols/lisp/msg/src/main/java/org/onosproject/lisp/msg/types/lcaf/LispMulticastLcafAddress.java
+++ b/protocols/lisp/msg/src/main/java/org/onosproject/lisp/msg/types/lcaf/LispMulticastLcafAddress.java
@@ -56,7 +56,7 @@
 public final class LispMulticastLcafAddress extends LispLcafAddress {
 
     private final int instanceId;
-    private final byte srcMaskLenth;
+    private final byte srcMaskLength;
     private final byte grpMaskLength;
     private final LispAfiAddress srcAddress;
     private final LispAfiAddress grpAddress;
@@ -65,17 +65,17 @@
      * Initializes multicast type LCAF address.
      *
      * @param instanceId    instance identifier
-     * @param srcMaskLenth  source mask length
+     * @param srcMaskLength  source mask length
      * @param grpMaskLength group mask length
      * @param srcAddress    source address
      * @param grpAddress    group address
      */
-    private LispMulticastLcafAddress(int instanceId, byte srcMaskLenth,
+    private LispMulticastLcafAddress(int instanceId, byte srcMaskLength,
                                      byte grpMaskLength, LispAfiAddress srcAddress,
                                      LispAfiAddress grpAddress) {
         super(LispCanonicalAddressFormatEnum.MULTICAST);
         this.instanceId = instanceId;
-        this.srcMaskLenth = srcMaskLenth;
+        this.srcMaskLength = srcMaskLength;
         this.grpMaskLength = grpMaskLength;
         this.srcAddress = srcAddress;
         this.grpAddress = grpAddress;
@@ -95,8 +95,8 @@
      *
      * @return source mask length
      */
-    public byte getSrcMaskLenth() {
-        return srcMaskLenth;
+    public byte getSrcMaskLength() {
+        return srcMaskLength;
     }
 
     /**
@@ -128,7 +128,7 @@
 
     @Override
     public int hashCode() {
-        return Objects.hash(instanceId, srcMaskLenth, grpMaskLength,
+        return Objects.hash(instanceId, srcMaskLength, grpMaskLength,
                 srcAddress, grpAddress);
     }
 
@@ -141,7 +141,7 @@
         if (obj instanceof LispMulticastLcafAddress) {
             final LispMulticastLcafAddress other = (LispMulticastLcafAddress) obj;
             return Objects.equals(this.instanceId, other.instanceId) &&
-                    Objects.equals(this.srcMaskLenth, other.srcMaskLenth) &&
+                    Objects.equals(this.srcMaskLength, other.srcMaskLength) &&
                     Objects.equals(this.grpMaskLength, other.grpMaskLength) &&
                     Objects.equals(this.srcAddress, other.srcAddress) &&
                     Objects.equals(this.grpAddress, other.grpAddress);
@@ -154,7 +154,7 @@
     public String toString() {
         return toStringHelper(this)
                 .add("instance ID", instanceId)
-                .add("source mask length", srcMaskLenth)
+                .add("source mask length", srcMaskLength)
                 .add("group mask length", grpMaskLength)
                 .add("source address", srcAddress)
                 .add("group address", grpAddress)
@@ -164,7 +164,7 @@
     public static final class MulticastAddressBuilder
                         extends LcafAddressBuilder<MulticastAddressBuilder> {
         private int instanceId;
-        private byte srcMaskLenth;
+        private byte srcMaskLength;
         private byte grpMaskLength;
         private LispAfiAddress srcAddress;
         private LispAfiAddress grpAddress;
@@ -183,11 +183,11 @@
         /**
          * Sets source mask length.
          *
-         * @param srcMaskLenth source mask length
+         * @param srcMaskLength source mask length
          * @return MulticastAddressBuilder object
          */
-        public MulticastAddressBuilder withSrcMaskLength(byte srcMaskLenth) {
-            this.srcMaskLenth = srcMaskLenth;
+        public MulticastAddressBuilder withSrcMaskLength(byte srcMaskLength) {
+            this.srcMaskLength = srcMaskLength;
             return this;
         }
 
@@ -234,7 +234,7 @@
             checkNotNull(srcAddress, "Must specify a source address");
             checkNotNull(grpAddress, "Must specify a group address");
 
-            return new LispMulticastLcafAddress(instanceId, srcMaskLenth,
+            return new LispMulticastLcafAddress(instanceId, srcMaskLength,
                                         grpMaskLength, srcAddress, grpAddress);
         }
     }
@@ -292,7 +292,7 @@
             byteBuf.writeByte(UNUSED_ZERO);
 
             // source mask length
-            byteBuf.writeByte(address.getSrcMaskLenth());
+            byteBuf.writeByte(address.getSrcMaskLength());
 
             // group mask length
             byteBuf.writeByte(address.getGrpMaskLength());
diff --git a/protocols/lisp/msg/src/test/java/org/onosproject/lisp/msg/types/lcaf/LispMulticastLcafAddressTest.java b/protocols/lisp/msg/src/test/java/org/onosproject/lisp/msg/types/lcaf/LispMulticastLcafAddressTest.java
index 702a454..58d5ee6 100644
--- a/protocols/lisp/msg/src/test/java/org/onosproject/lisp/msg/types/lcaf/LispMulticastLcafAddressTest.java
+++ b/protocols/lisp/msg/src/test/java/org/onosproject/lisp/msg/types/lcaf/LispMulticastLcafAddressTest.java
@@ -99,7 +99,7 @@
                 new LispIpv4Address(IpAddress.valueOf(IP_ADDRESS_1));
 
         assertThat(multicastLcafAddress.getInstanceId(), is(1));
-        assertThat(multicastLcafAddress.getSrcMaskLenth(), is((byte) 0x24));
+        assertThat(multicastLcafAddress.getSrcMaskLength(), is((byte) 0x24));
         assertThat(multicastLcafAddress.getGrpMaskLength(), is((byte) 0x24));
         assertThat(multicastLcafAddress.getSrcAddress(), is(ipv4Address));
         assertThat(multicastLcafAddress.getGrpAddress(), is(ipv4Address));