jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1380060 - /jmeter/trunk/src/core/org/apache/jmeter/testelement/property/AbstractProperty.java
Date Sun, 02 Sep 2012 21:24:14 GMT
Author: pmouawad
Date: Sun Sep  2 21:24:14 2012
New Revision: 1380060

URL: http://svn.apache.org/viewvc?rev=1380060&view=rev
Log:
Document strange code

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/testelement/property/AbstractProperty.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/testelement/property/AbstractProperty.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/testelement/property/AbstractProperty.java?rev=1380060&r1=1380059&r2=1380060&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/testelement/property/AbstractProperty.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/testelement/property/AbstractProperty.java Sun
Sep  2 21:24:14 2012
@@ -290,7 +290,7 @@ public abstract class AbstractProperty i
      */
     protected Collection<JMeterProperty> normalizeList(Collection<?> coll) {
         if (coll.isEmpty()) {
-            @SuppressWarnings("unchecked") // empty collection
+            @SuppressWarnings("unchecked") // empty collection, local var is here to allow
SuppressWarnings
             Collection<JMeterProperty> okColl = (Collection<JMeterProperty>)
coll;
             return okColl;
         }
@@ -313,7 +313,7 @@ public abstract class AbstractProperty i
      */
     protected Map<String, JMeterProperty> normalizeMap(Map<?,?> coll) {
         if (coll.isEmpty()) {
-            @SuppressWarnings("unchecked")// empty collection ok to cast
+            @SuppressWarnings("unchecked")// empty collection ok to cast, local var is here
to allow SuppressWarnings
             Map<String, JMeterProperty> emptyColl = (Map<String, JMeterProperty>)
coll;
             return emptyColl;
         }



Mime
View raw message