Skip to content

Commit 80eb20c

Browse files
c247tkelunik
authored andcommitted
TECH: UniqueIndex, GroupIndex: improve method name
1 parent 9711849 commit 80eb20c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

dump/src/util/dump/GroupIndex.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import gnu.trove.map.TLongObjectMap;
2424
import gnu.trove.map.hash.TIntObjectHashMap;
2525
import gnu.trove.map.hash.TLongIntHashMap;
26-
import gnu.trove.map.hash.TLongLongHashMap;
2726
import gnu.trove.map.hash.TLongObjectHashMap;
2827
import gnu.trove.procedure.TIntObjectProcedure;
2928
import gnu.trove.procedure.TLongObjectProcedure;
@@ -617,7 +616,7 @@ protected long readNextPosition( DataInputStream updatesInput ) {
617616
void delete( E o, long pos ) {
618617
boolean deleted = delete0(o, pos);
619618

620-
if ( deleted && isCompactLookupNeeded() ) {
619+
if ( deleted && isLookupCompactionNeeded() ) {
621620
compactLookup();
622621
}
623622
}
@@ -655,7 +654,7 @@ private boolean delete0( E o, long pos ) {
655654
return false;
656655
}
657656

658-
protected boolean isCompactLookupNeeded() {
657+
protected boolean isLookupCompactionNeeded() {
659658
final THash lookup;
660659

661660
if ( _fieldIsInt ) {

dump/src/util/dump/UniqueIndex.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ protected void initLookupMap() {
338338
}
339339
}
340340

341-
protected boolean isCompactLookupNeeded() {
341+
protected boolean isLookupCompactionNeeded() {
342342
final THash lookup;
343343

344344
if ( _fieldIsInt ) {
@@ -615,7 +615,7 @@ protected Object readPayload( DataInput in ) throws IOException {
615615
void delete( E o, long pos ) {
616616
boolean deleted = delete0(o, pos);
617617

618-
if ( deleted && isCompactLookupNeeded() ) {
618+
if ( deleted && isLookupCompactionNeeded() ) {
619619
compactLookup();
620620
}
621621
}

0 commit comments

Comments
 (0)