Code Clean Up
[bgpcep.git] / bgp / path-selection-mode / src / main / java / org / opendaylight / protocol / bgp / mode / impl / base / OffsetMap.java
index 63e8b7cee25f2c9ddf373d89705b6026cb0b1bea..a07a0c29a13556fc11705281979a50261e071c6d 100644 (file)
@@ -98,13 +98,13 @@ final class OffsetMap {
 
     public <T> T getValue(final T[] array, final int offset) {
         Preconditions.checkArgument(offset >= 0, NEGATIVEOFFSET, offset);
-        Preconditions.checkArgument(offset < routeKeys.length, INVALIDOFFSET, offset, routeKeys.length);
+        Preconditions.checkArgument(offset < this.routeKeys.length, INVALIDOFFSET, offset, this.routeKeys.length);
         return array[offset];
     }
 
     public <T> void setValue(final T[] array, final int offset, final T value) {
         Preconditions.checkArgument(offset >= 0, NEGATIVEOFFSET, offset);
-        Preconditions.checkArgument(offset < routeKeys.length, INVALIDOFFSET, offset, routeKeys.length);
+        Preconditions.checkArgument(offset < this.routeKeys.length, INVALIDOFFSET, offset, this.routeKeys.length);
         array[offset] = value;
     }
 
@@ -122,7 +122,7 @@ final class OffsetMap {
     public <T> T[] removeValue(final T[] oldArray, final int offset) {
         final int length = oldArray.length;
         Preconditions.checkArgument(offset >= 0, NEGATIVEOFFSET, offset);
-        Preconditions.checkArgument(offset < routeKeys.length, INVALIDOFFSET, offset, length);
+        Preconditions.checkArgument(offset < this.routeKeys.length, INVALIDOFFSET, offset, length);
 
         final T[] ret = (T[]) Array.newInstance(oldArray.getClass().getComponentType(), length - 1);
         System.arraycopy(oldArray, 0, ret, 0, offset);