commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r773236 - /commons/proper/math/trunk/src/test/org/apache/commons/math/stat/FrequencyTest.java
Date Sat, 09 May 2009 15:29:59 GMT
Author: luc
Date: Sat May  9 15:29:55 2009
New Revision: 773236

URL: http://svn.apache.org/viewvc?rev=773236&view=rev
Log:
suppressed two warnings

Modified:
    commons/proper/math/trunk/src/test/org/apache/commons/math/stat/FrequencyTest.java

Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/FrequencyTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/FrequencyTest.java?rev=773236&r1=773235&r2=773236&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/FrequencyTest.java (original)
+++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/FrequencyTest.java Sat
May  9 15:29:55 2009
@@ -190,6 +190,7 @@
     }
     
     // Check what happens when non-Comparable objects are added
+    @SuppressWarnings("deprecation")
     public void testAddNonComparable(){
         try {
             f.addValue(new Object()); // This was previously OK
@@ -248,7 +249,7 @@
         }        
     }
     public void testIntegerValues() {
-        Object obj1 = null;
+        Comparable<?> obj1 = null;
         obj1 = Integer.valueOf(1);
         Integer int1 = Integer.valueOf(1);
         f.addValue(obj1);



Mime
View raw message