1
0
mirror of synced 2026-08-05 01:36:56 +00:00

Update exception variable names

Consistently use `ex` for caught exception and `cause` for Exception
constructor arguments.

Issue gh-8945
This commit is contained in:
Phillip Webb
2020-07-28 23:53:30 -07:00
committed by Rob Winch
parent e9130489a6
commit 8d80166aaf
194 changed files with 635 additions and 633 deletions
@@ -119,8 +119,8 @@ public class ReactorContextTestExecutionListener extends DelegatingTestExecution
}
@Override
public void onError(Throwable t) {
this.delegate.onError(t);
public void onError(Throwable ex) {
this.delegate.onError(ex);
}
@Override
@@ -119,8 +119,8 @@ public class WithSecurityContextTestExecutionListener extends AbstractTestExecut
try {
return factory.createSecurityContext(annotation);
}
catch (RuntimeException e) {
throw new IllegalStateException("Unable to create SecurityContext using " + annotation, e);
catch (RuntimeException ex) {
throw new IllegalStateException("Unable to create SecurityContext using " + annotation, ex);
}
};
TestExecutionEvent initialize = withSecurityContext.setupBefore();
@@ -149,11 +149,11 @@ public class WithSecurityContextTestExecutionListener extends AbstractTestExecut
try {
return testContext.getApplicationContext().getAutowireCapableBeanFactory().createBean(clazz);
}
catch (IllegalStateException e) {
catch (IllegalStateException ex) {
return BeanUtils.instantiateClass(clazz);
}
catch (Exception e) {
throw new RuntimeException(e);
catch (Exception ex) {
throw new RuntimeException(ex);
}
}