Procházet zdrojové kódy

Abbreviation idx -> index

Simon Ding před 4 roky
rodič
revize
1825261f41

+ 3 - 3
jplag/src/main/java/de/jplag/clustering/IntegerMapping.java

@@ -25,10 +25,10 @@ public class IntegerMapping<T> {
     public int map(T value) {
         Integer result = mapping.get(value);
         if (result == null) {
-            int newIdx = size++;
-            mapping.put(value, newIdx);
+            int newIndex = size++;
+            mapping.put(value, newIndex);
             backMapping.add(value);
-            return newIdx;
+            return newIndex;
         }
         return result;
     }