Polish caught exception names
Prefer `ex` over `e`.
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user