Code Review
/
aaf
/
authz.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
TextIndex.java-extract the assignment
[aaf/authz.git]
/
auth
/
auth-core
/
src
/
main
/
java
/
org
/
onap
/
aaf
/
auth
/
local
/
TextIndex.java
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
b36ed4b
..
d35ac4a
100644
(file)
--- 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) {