Update exception variable names
Consistently use `ex` for caught exception and `cause` for Exception constructor arguments. Issue gh-8945
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
+5
-5
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user