commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r611490 - /commons/proper/math/trunk/src/test/org/apache/commons/math/stat/CertifiedDataTest.java
Date Sat, 12 Jan 2008 21:36:36 GMT
Author: luc
Date: Sat Jan 12 13:36:35 2008
New Revision: 611490

URL: http://svn.apache.org/viewvc?rev=611490&view=rev
Log:
replace getClass by the exact class,
to avoid problems if class is extended (findbugs warning)

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

Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/CertifiedDataTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/CertifiedDataTest.java?rev=611490&r1=611489&r2=611490&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/CertifiedDataTest.java
(original)
+++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/CertifiedDataTest.java
Sat Jan 12 13:36:35 2008
@@ -137,7 +137,7 @@
         BufferedReader in =
             new BufferedReader(
                     new InputStreamReader(
-                            getClass().getResourceAsStream(resource)));
+                            CertifiedDataTest.class.getResourceAsStream(resource)));
         
         String line = null;
         



Mime
View raw message