You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by fs...@apache.org on 2015/12/12 13:48:35 UTC
svn commit: r1719680 -
/jmeter/trunk/src/core/org/apache/jmeter/report/config/ConfigurationUtils.java
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;
}
}