diff options
author | Jonathan Gathman <jonathan.gathman@att.com> | 2019-11-06 13:02:06 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-11-06 13:02:06 +0000 |
commit | 7df370cabd3a4dfed8ce471bd5a0d5625a7ae747 (patch) | |
tree | 2094e228953168f69d4b69e510d6fe8aa5cedd0c /auth/auth-core | |
parent | b0270fb7202d68af2a07c678faffbd5fdace9b8f (diff) | |
parent | 6f28795822d50e03bda5d0937d7ab4eb4f37a80d (diff) |
Merge "TextIndex.java-extract the assignment"
Diffstat (limited to 'auth/auth-core')
-rw-r--r-- | auth/auth-core/src/main/java/org/onap/aaf/auth/local/TextIndex.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/auth/auth-core/src/main/java/org/onap/aaf/auth/local/TextIndex.java b/auth/auth-core/src/main/java/org/onap/aaf/auth/local/TextIndex.java index b36ed4b9..d35ac4af 100644 --- a/auth/auth-core/src/main/java/org/onap/aaf/auth/local/TextIndex.java +++ b/auth/auth-core/src/main/java/org/onap/aaf/auth/local/TextIndex.java @@ -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) { |