summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThugutla sailakshmi <tsaila10@in.ibm.com>2019-10-31 10:40:29 +0530
committerJonathan Gathman <jonathan.gathman@att.com>2019-11-06 13:01:28 +0000
commit6f28795822d50e03bda5d0937d7ab4eb4f37a80d (patch)
treee0ade56ec2e1a9d217c21c3cfc8c93ebbd91748e
parentde5c06fa421cee9fbb6761b11719762100ea6580 (diff)
TextIndex.java-extract the assignment
Issue-ID: AAF-876 Change-Id: Ia0e9003d944310700fc4901455378a41738c3174 Signed-off-by: Thugutla sailakshmi <tsaila10@in.ibm.com>
-rw-r--r--auth/auth-core/src/main/java/org/onap/aaf/auth/local/TextIndex.java3
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) {