jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1719680 - /jmeter/trunk/src/core/org/apache/jmeter/report/config/ConfigurationUtils.java
Date Sat, 12 Dec 2015 12:48:35 GMT
Author: fschumacher
Date: Sat Dec 12 12:48:35 2015
New Revision: 1719680

URL: http://svn.apache.org/viewvc?rev=1719680&view=rev
Log:
Correct indentation.

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/report/config/ConfigurationUtils.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/report/config/ConfigurationUtils.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/config/ConfigurationUtils.java?rev=1719680&r1=1719679&r2=1719680&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/config/ConfigurationUtils.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/config/ConfigurationUtils.java Sat Dec
12 12:48:35 2015
@@ -50,29 +50,29 @@ public class ConfigurationUtils {
      */
     public static <TProperty> TProperty convert(String value,
         Class<TProperty> clazz) throws ConfigurationException {
-    if (clazz == null) {
-        throw new ArgumentNullException("clazz");
-    }
-
-    TProperty result;
-    if (clazz.isAssignableFrom(String.class)) {
-        result = (TProperty) value;
-    } else {
-        StringConverter<TProperty> converter = Converters
-            .getConverter(clazz);
-        if (converter == null) {
-        throw new ConfigurationException(String.format(
-                NOT_SUPPORTED_CONVERTION_FMT, value, clazz.getName()));
+        if (clazz == null) {
+            throw new ArgumentNullException("clazz");
         }
 
-        try {
-        result = converter.convert(value);
-        } catch (ConvertException ex) {
-        throw new ConfigurationException(String.format(
-                NOT_SUPPORTED_CONVERTION_FMT, value, clazz.getName()),
-                ex);
+        TProperty result;
+        if (clazz.isAssignableFrom(String.class)) {
+            result = (TProperty) value;
+        } else {
+            StringConverter<TProperty> converter = Converters
+                    .getConverter(clazz);
+            if (converter == null) {
+                throw new ConfigurationException(String.format(
+                        NOT_SUPPORTED_CONVERTION_FMT, value, clazz.getName()));
+            }
+
+            try {
+                result = converter.convert(value);
+            } catch (ConvertException ex) {
+                throw new ConfigurationException(String.format(
+                        NOT_SUPPORTED_CONVERTION_FMT, value, clazz.getName()),
+                        ex);
+            }
         }
-    }
-    return result;
+        return result;
     }
 }



Mime
View raw message