You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2013/03/27 16:21:01 UTC
svn commit: r1461640 -
/commons/proper/ognl/trunk/src/test/java/org/apache/commons/ognl/test/SetterTest.java
Author: simonetripodi
Date: Wed Mar 27 15:21:01 2013
New Revision: 1461640
URL: http://svn.apache.org/r1461640
Log:
trivial: suppressed rawtype warning by specifying generics
Modified:
commons/proper/ognl/trunk/src/test/java/org/apache/commons/ognl/test/SetterTest.java
Modified: commons/proper/ognl/trunk/src/test/java/org/apache/commons/ognl/test/SetterTest.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/test/java/org/apache/commons/ognl/test/SetterTest.java?rev=1461640&r1=1461639&r2=1461640&view=diff
==============================================================================
--- commons/proper/ognl/trunk/src/test/java/org/apache/commons/ognl/test/SetterTest.java (original)
+++ commons/proper/ognl/trunk/src/test/java/org/apache/commons/ognl/test/SetterTest.java Wed Mar 27 15:21:01 2013
@@ -34,7 +34,7 @@ public class SetterTest
{
private static Root ROOT = new Root();
- static Set _list = new HashSet();
+ static Set<String> _list = new HashSet<String>();
static
{
_list.add( "Test1" );
@@ -54,7 +54,7 @@ public class SetterTest
{ ROOT, "settableList[|]", "bar", "oompa" },
{ ROOT, "settableList[|]", "oompa" },
{ ROOT, "map.newValue", new Integer( 101 ), new Integer( 555 ) },
- { ROOT, "map", ROOT.getMap(), new HashMap(), NoSuchPropertyException.class },
+ { ROOT, "map", ROOT.getMap(), new HashMap<String, String>(), NoSuchPropertyException.class },
{ ROOT.getMap(), "newValue2 || put(\"newValue2\",987), newValue2", new Integer( 987 ), new Integer( 1002 ) },
{ ROOT, "map.(someMissingKey || newValue)", new Integer( 555 ), new Integer( 666 ) },
{ ROOT.getMap(), "newValue || someMissingKey", new Integer( 666 ), new Integer( 666 ) }, // no setting happens!