jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1719980 - /jmeter/trunk/src/core/org/apache/jmeter/report/config/ConfigurationUtils.java
Date Mon, 14 Dec 2015 18:06:10 GMT
Author: sebb
Date: Mon Dec 14 18:06:09 2015
New Revision: 1719980

URL: http://svn.apache.org/viewvc?rev=1719980&view=rev
Log:
Suppress generics warning

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=1719980&r1=1719979&r2=1719980&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 Mon Dec
14 18:06:09 2015
@@ -56,7 +56,9 @@ public class ConfigurationUtils {
 
         TProperty result;
         if (clazz.isAssignableFrom(String.class)) {
-            result = (TProperty) value;
+            @SuppressWarnings("unchecked") // OK because checked above
+            TProperty temp = (TProperty) value;
+            result = temp;
         } else {
             StringConverter<TProperty> converter = Converters
                     .getConverter(clazz);



Mime
View raw message