commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r903044 - /commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/ArrayFieldVectorTest.java
Date Tue, 26 Jan 2010 02:00:10 GMT
Author: sebb
Date: Tue Jan 26 02:00:09 2010
New Revision: 903044

URL: http://svn.apache.org/viewvc?rev=903044&view=rev
Log:
Document why OK to suppress unchecked warning

Modified:
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/ArrayFieldVectorTest.java

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/ArrayFieldVectorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/ArrayFieldVectorTest.java?rev=903044&r1=903043&r2=903044&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/ArrayFieldVectorTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/ArrayFieldVectorTest.java
Tue Jan 26 02:00:09 2010
@@ -72,7 +72,7 @@
          * @param length size of the array to build
          * @return a new array
          */
-        @SuppressWarnings("unchecked")
+        @SuppressWarnings("unchecked") // field is of type T
         private T[] buildArray(final int length) {
             return (T[]) Array.newInstance(field.getZero().getClass(), length);
         }



Mime
View raw message