From 6f28795822d50e03bda5d0937d7ab4eb4f37a80d Mon Sep 17 00:00:00 2001 From: Thugutla sailakshmi Date: Thu, 31 Oct 2019 10:40:29 +0530 Subject: TextIndex.java-extract the assignment Issue-ID: AAF-876 Change-Id: Ia0e9003d944310700fc4901455378a41738c3174 Signed-off-by: Thugutla sailakshmi --- auth/auth-core/src/main/java/org/onap/aaf/auth/local/TextIndex.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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