fix variable assigned to itself in test and enable check (#11980)

This commit is contained in:
Robert Muir 2022-11-25 11:45:45 -05:00 committed by GitHub
parent b5dd71198d
commit f4286493d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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',

View File

@ -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);
}
}