mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
better assertion message
This commit is contained in:
@@ -1036,7 +1036,7 @@ public class FileBasedIndex implements ApplicationComponent {
|
||||
|
||||
private void clearIndex(final ID<?, ?> indexId) throws StorageException {
|
||||
final UpdatableIndex<?, ?, FileContent> index = getIndex(indexId);
|
||||
assert index != null;
|
||||
assert index != null: "Index with key " + indexId + " not found or not registered properly";
|
||||
index.clear();
|
||||
try {
|
||||
IndexInfrastructure.rewriteVersion(IndexInfrastructure.getVersionFile(indexId), myIndexIdToVersionMap.get(indexId));
|
||||
|
||||
Reference in New Issue
Block a user