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 normalizeList(Collection coll) { if (coll.isEmpty()) { - @SuppressWarnings("unchecked") // empty collection + @SuppressWarnings("unchecked") // empty collection, local var is here to allow SuppressWarnings Collection okColl = (Collection) coll; return okColl; } @@ -313,7 +313,7 @@ public abstract class AbstractProperty i */ protected Map 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 emptyColl = (Map) coll; return emptyColl; }