Merge "TextIndex.java-extract the assignment"
authorJonathan Gathman <jonathan.gathman@att.com>
Wed, 6 Nov 2019 13:02:06 +0000 (13:02 +0000)
committerGerrit Code Review <gerrit@onap.org>
Wed, 6 Nov 2019 13:02:06 +0000 (13:02 +0000)
auth/auth-core/src/main/java/org/onap/aaf/auth/local/TextIndex.java

index b36ed4b..d35ac4a 100644 (file)
@@ -75,7 +75,8 @@ public class TextIndex {
         long lhash;
         int curr;
         while ((max-min)>100) {
-            ttok.pos((curr=(min+(max-min)/2))*REC_SIZE);
+            curr=(min+(max-min)/2);
+            ttok.pos(curr*REC_SIZE);
             tib.rewind();
             lhash = hashToLong(tib.get());
             if (lhash<hash) {