From 112c7aa7c9706b5a68cf5e17cc2e746e5fda72fd Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Tue, 26 Jan 2010 02:07:42 +0000 Subject: [PATCH] Document why OK to suppress unchecked warning git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@903047 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/commons/math/util/OpenIntToFieldHashMap.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/math/util/OpenIntToFieldHashMap.java b/src/main/java/org/apache/commons/math/util/OpenIntToFieldHashMap.java index 4a20e6944..61867f8b1 100644 --- a/src/main/java/org/apache/commons/math/util/OpenIntToFieldHashMap.java +++ b/src/main/java/org/apache/commons/math/util/OpenIntToFieldHashMap.java @@ -622,7 +622,7 @@ public class OpenIntToFieldHashMap> implements Seriali * @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); }