This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-resolver.git
The following commit(s) were added to refs/heads/master by this push:
new fd9db27 Fix checkstyle errors
fd9db27 is described below
commit fd9db27ac15b598e6e143d6ac3099ffc8ea54a5d
Author: Michael Osipov <[email protected]>
AuthorDate: Tue Sep 14 17:05:28 2021 +0200
Fix checkstyle errors
---
.../src/main/java/org/eclipse/aether/util/ConfigUtils.java | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git
a/maven-resolver-util/src/main/java/org/eclipse/aether/util/ConfigUtils.java
b/maven-resolver-util/src/main/java/org/eclipse/aether/util/ConfigUtils.java
index ca00202..df1ba3e 100644
--- a/maven-resolver-util/src/main/java/org/eclipse/aether/util/ConfigUtils.java
+++ b/maven-resolver-util/src/main/java/org/eclipse/aether/util/ConfigUtils.java
@@ -139,7 +139,8 @@ public final class ConfigUtils
{
return ( (Number) value ).intValue();
}
- else if ( value instanceof String ) {
+ else if ( value instanceof String )
+ {
try
{
return Integer.parseInt( (String) value );
@@ -188,7 +189,8 @@ public final class ConfigUtils
{
return ( (Number) value ).longValue();
}
- else if ( value instanceof String ) {
+ else if ( value instanceof String )
+ {
try
{
return Long.parseLong( (String) value );
@@ -237,7 +239,8 @@ public final class ConfigUtils
{
return ( (Number) value ).floatValue();
}
- else if ( value instanceof String ) {
+ else if ( value instanceof String )
+ {
try
{
return Float.parseFloat( (String) value );