mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
create message only when doing debug
This commit is contained in:
@@ -93,8 +93,11 @@ public class MemoryIndexStorage<Key, Value> implements IndexStorage<Key, Value>
|
||||
|
||||
void clearCaches() {
|
||||
if (myMap.size() == 0) return;
|
||||
String message = "Dropping caches for " + (myIndexId != null ? myIndexId:this) + ", number of items:" + myMap.size();
|
||||
if (DebugAssertions.DEBUG) FileBasedIndexImpl.LOG.info(message);
|
||||
|
||||
if (DebugAssertions.DEBUG) {
|
||||
String message = "Dropping caches for " + (myIndexId != null ? myIndexId:this) + ", number of items:" + myMap.size();
|
||||
FileBasedIndexImpl.LOG.info(message);
|
||||
}
|
||||
|
||||
for(ChangeTrackingValueContainer<Value> v:myMap.values()) {
|
||||
v.dropMergedData();
|
||||
|
||||
Reference in New Issue
Block a user