diff options
author | Thugutla sailakshmi <tsaila10@in.ibm.com> | 2019-10-31 10:40:29 +0530 |
---|---|---|
committer | Jonathan Gathman <jonathan.gathman@att.com> | 2019-11-06 13:01:28 +0000 |
commit | 6f28795822d50e03bda5d0937d7ab4eb4f37a80d (patch) | |
tree | e0ade56ec2e1a9d217c21c3cfc8c93ebbd91748e /auth/auth-core/src | |
parent | de5c06fa421cee9fbb6761b11719762100ea6580 (diff) |
TextIndex.java-extract the assignment
Issue-ID: AAF-876
Change-Id: Ia0e9003d944310700fc4901455378a41738c3174
Signed-off-by: Thugutla sailakshmi <tsaila10@in.ibm.com>
Diffstat (limited to 'auth/auth-core/src')
-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) { |