Don't use single letter catch variables
Update existing catch blocks to ensure that `ex` is always used in preference to `e` or `t` as the variable name. Issue: SPR-16968
This commit is contained in:
committed by
Juergen Hoeller
parent
8f9aa06dfe
commit
0ad0f341bd
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -99,8 +99,8 @@ class CallableInterceptorChain {
|
||||
return result;
|
||||
}
|
||||
}
|
||||
catch (Throwable t) {
|
||||
return t;
|
||||
catch (Throwable ex) {
|
||||
return ex;
|
||||
}
|
||||
}
|
||||
return CallableProcessingInterceptor.RESULT_NONE;
|
||||
@@ -130,8 +130,8 @@ class CallableInterceptorChain {
|
||||
return result;
|
||||
}
|
||||
}
|
||||
catch (Throwable t) {
|
||||
return t;
|
||||
catch (Throwable ex) {
|
||||
return ex;
|
||||
}
|
||||
}
|
||||
return CallableProcessingInterceptor.RESULT_NONE;
|
||||
|
||||
Reference in New Issue
Block a user