Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore obsolete dangling indices #37824

Warn about left-behind data or metadata

Fix checkstyle issues.
  • Loading branch information...
henningandersen committed Jan 31, 2019
commit bf0b3f2cfeba69aecf619d4dea9dcbd7cf17b734
@@ -524,7 +524,9 @@ public void error(String msg, LogEvent event, Throwable t) {
}
}

private static <T extends Throwable> T expectLoggingThrows(Class<T> expectedType, String noExceptionMessage, ThrowingRunnable runnable) {
private static <T extends Throwable> T expectLoggingThrows(Class<T> expectedType,
String noExceptionMessage,
ThrowingRunnable runnable) {
try {
runnable.run();
} catch (Throwable e) {
@@ -534,7 +536,8 @@ public void error(String msg, LogEvent event, Throwable t) {
if (expectedType.isInstance(e)) {
return expectedType.cast(e);
}
AssertionFailedError assertion = new AssertionFailedError("Unexpected exception type, expected " + expectedType.getSimpleName() + " but got " + e);
AssertionFailedError assertion =
new AssertionFailedError("Unexpected exception type, expected " + expectedType.getSimpleName() + " but got " + e);
assertion.initCause(e);
throw assertion;
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.