mirror of https://github.com/apache/lucene.git
fix variable assigned to itself in test and enable check (#11980)
This commit is contained in:
parent
b5dd71198d
commit
f4286493d1
|
@ -221,7 +221,7 @@ allprojects { prj ->
|
|||
'-Xep:RequiredModifiers:ERROR',
|
||||
'-Xep:RestrictedApiChecker:ERROR',
|
||||
// '-Xep:ReturnValueIgnored:OFF',
|
||||
// '-Xep:SelfAssignment:OFF',
|
||||
'-Xep:SelfAssignment:ERROR',
|
||||
'-Xep:SelfComparison:ERROR',
|
||||
'-Xep:SelfEquals:ERROR',
|
||||
'-Xep:ShouldHaveEvenArgs:ERROR',
|
||||
|
|
|
@ -105,7 +105,7 @@ public class TestNRTReaderWithThreads extends LuceneTestCase {
|
|||
}
|
||||
} catch (Throwable ex) {
|
||||
ex.printStackTrace(System.out);
|
||||
this.failure = failure;
|
||||
this.failure = ex;
|
||||
throw new RuntimeException(ex);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue