You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by oh...@apache.org on 2013/11/02 21:46:36 UTC

svn commit: r1538270 - /commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/bugs/Jira422TestCase.java

Author: oheger
Date: Sat Nov  2 20:46:35 2013
New Revision: 1538270

URL: http://svn.apache.org/r1538270
Log:
Fixed warnings in test class.

Modified:
    commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/bugs/Jira422TestCase.java

Modified: commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/bugs/Jira422TestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/bugs/Jira422TestCase.java?rev=1538270&r1=1538269&r2=1538270&view=diff
==============================================================================
--- commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/bugs/Jira422TestCase.java (original)
+++ commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/bugs/Jira422TestCase.java Sat Nov  2 20:46:35 2013
@@ -32,18 +32,19 @@ public class Jira422TestCase extends Tes
 
     public void testRootBean() throws Exception {
         RootBean bean = new FirstChildBean();
-        Class propertyType = PropertyUtils.getPropertyType(bean, "file[0]");
+        Class<?> propertyType = PropertyUtils.getPropertyType(bean, "file[0]");
         assertEquals(String.class.getName(), propertyType.getName());
     }
 
     public void testSecondChildBean() throws Exception {
         RootBean bean = new SecondChildBean();
-        Class propertyType = PropertyUtils.getPropertyType(bean, "file[0]");
+        Class<?> propertyType = PropertyUtils.getPropertyType(bean, "file[0]");
         assertEquals(String.class.getName(), propertyType.getName());
     }
 
 }
 
+@SuppressWarnings("rawtypes")
 class RootBean {
 
     private List file;
@@ -60,6 +61,7 @@ class RootBean {
         return (String) file.get(i);
     }
 
+    @SuppressWarnings("unchecked")
     public void setFile(int i, String file) {
         this.file.set(i, file);
     }