This commit is contained in:
Andrea Cavalli 2022-09-13 22:15:34 +02:00
parent f739f4f9f4
commit 32e5a100f5
2 changed files with 4 additions and 4 deletions

View File

@ -16,8 +16,8 @@ public class CheckIndexInput extends IndexInput {
this.input = input; this.input = input;
} }
private void checkThread() { private static void checkThread() {
LuceneUtils.checkLuceneThread(); assert LuceneUtils.isLuceneThread();
} }
@Override @Override

View File

@ -14,8 +14,8 @@ public class CheckIndexOutput extends IndexOutput {
this.output = output; this.output = output;
} }
private void checkThread() { private static void checkThread() {
LuceneUtils.checkLuceneThread(); assert LuceneUtils.isLuceneThread();
} }
@Override @Override