Polish caught exception names

Prefer `ex` over `e`.
This commit is contained in:
Phillip Webb
2018-05-02 13:30:10 -07:00
parent 3ee777e142
commit 64930d4e5b
16 changed files with 25 additions and 25 deletions

View File

@@ -529,8 +529,8 @@ public class UndertowEmbeddedServletContainerFactory
root = (root != null ? root : createTempDir("undertow-docbase"));
return root.getCanonicalFile();
}
catch (IOException e) {
throw new IllegalStateException("Cannot get canonical document root", e);
catch (IOException ex) {
throw new IllegalStateException("Cannot get canonical document root", ex);
}
}

View File

@@ -127,8 +127,8 @@ public class DataSourceXAResourceRecoveryHelper
try {
this.xaConnection.close();
}
catch (SQLException e) {
logger.warn("Failed to close connection", e);
catch (SQLException ex) {
logger.warn("Failed to close connection", ex);
}
finally {
this.xaConnection = null;

View File

@@ -177,8 +177,8 @@ public class SpringApplicationAdminMXBeanRegistrarTests {
try {
return new ObjectName(jmxName);
}
catch (MalformedObjectNameException e) {
throw new IllegalStateException("Invalid jmx name " + jmxName, e);
catch (MalformedObjectNameException ex) {
throw new IllegalStateException("Invalid jmx name " + jmxName, ex);
}
}