commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1538229 - /commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/bugs/Jira157TestCase.java
Date Sat, 02 Nov 2013 17:14:01 GMT
Author: oheger
Date: Sat Nov  2 17:14:00 2013
New Revision: 1538229

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

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

Modified: commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/bugs/Jira157TestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/bugs/Jira157TestCase.java?rev=1538229&r1=1538228&r2=1538229&view=diff
==============================================================================
--- commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/bugs/Jira157TestCase.java
(original)
+++ commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/bugs/Jira157TestCase.java
Sat Nov  2 17:14:00 2013
@@ -94,14 +94,18 @@ public class Jira157TestCase extends Tes
      */
     public void testIssue_BEANUTILS_157_BeanUtils_Describe_Serializable() {
         Object bean = new Serializable() {
+            private static final long serialVersionUID = 1L;
+
+            @SuppressWarnings("unused")
             public String getX() {
                 return "x-value";
             }
+            @SuppressWarnings("unused")
             public String getY() {
                 return "y-value";
             }
         };
-        Map result = null;
+        Map<String, String> result = null;
         try {
             result = BeanUtils.describe(bean);
         } catch (Throwable t) {
@@ -127,7 +131,7 @@ public class Jira157TestCase extends Tes
                 return "y-value";
             }
         };
-        Map result = null;
+        Map<String, String> result = null;
         try {
             result = BeanUtils.describe(bean);
         } catch (Throwable t) {
@@ -150,7 +154,7 @@ public class Jira157TestCase extends Tes
      */
     public void testIssue_BEANUTILS_157_BeanUtils_Describe_Bean() {
         Object bean = new FooBar();
-        Map result = null;
+        Map<String, String> result = null;
         try {
             result = BeanUtils.describe(bean);
         } catch (Throwable t) {
@@ -172,6 +176,7 @@ public class Jira157TestCase extends Tes
         String getPackageFoo() {
             return "Package Value";
         }
+        @SuppressWarnings("unused")
         private String getPrivateFoo() {
             return "PrivateFoo Value";
         }



Mime
View raw message