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

@@ -186,7 +186,7 @@ class JsonReader {
try {
return Deprecation.Level.valueOf(value.toUpperCase(Locale.ENGLISH));
}
catch (IllegalArgumentException e) {
catch (IllegalArgumentException ex) {
// let's use the default
}
}

View File

@@ -84,8 +84,8 @@ public class TestConfigurationMetadataAnnotationProcessor
}
return this.metadata;
}
catch (IOException e) {
throw new RuntimeException("Failed to read metadata from disk", e);
catch (IOException ex) {
throw new RuntimeException("Failed to read metadata from disk", ex);
}
}

View File

@@ -60,8 +60,8 @@ abstract class JvmUtils {
return new File(System.getProperty("java.home")).toURI().toURL()
.toExternalForm();
}
catch (MalformedURLException e) {
throw new IllegalStateException("Cannot locate java.home", e);
catch (MalformedURLException ex) {
throw new IllegalStateException("Cannot locate java.home", ex);
}
}