[armedbear-cvs] r12196 - trunk/abcl/src/org/armedbear/lisp
Erik Huelsmann
ehuelsmann at common-lisp.net
Thu Oct 15 20:53:49 UTC 2009
Author: ehuelsmann
Date: Thu Oct 15 16:53:48 2009
New Revision: 12196
Log:
Suppress unchecked warnings with arrays, because
there's no other solution.
Increment by dmiles (on his own patch for more memory-efficient readtables).
Modified:
trunk/abcl/src/org/armedbear/lisp/CharHashMap.java
trunk/abcl/src/org/armedbear/lisp/Readtable.java
Modified: trunk/abcl/src/org/armedbear/lisp/CharHashMap.java
==============================================================================
--- trunk/abcl/src/org/armedbear/lisp/CharHashMap.java (original)
+++ trunk/abcl/src/org/armedbear/lisp/CharHashMap.java Thu Oct 15 16:53:48 2009
@@ -16,6 +16,8 @@
final public T NULL;
final static int CACHE_SIZE = 256;
final HashMap<Character, T> backing;
+
+ @SuppressWarnings("unchecked")
public CharHashMap(Class componentType, T def) {
NULL = def;
constants = (T[]) Array.newInstance(componentType, CACHE_SIZE);
Modified: trunk/abcl/src/org/armedbear/lisp/Readtable.java
==============================================================================
--- trunk/abcl/src/org/armedbear/lisp/Readtable.java (original)
+++ trunk/abcl/src/org/armedbear/lisp/Readtable.java Thu Oct 15 16:53:48 2009
@@ -320,6 +320,7 @@
functions = new CharHashMap<LispObject>(LispObject.class,null);
}
+ @SuppressWarnings("unchecked")
public DispatchTable(DispatchTable dt)
{
functions = (CharHashMap<LispObject>) dt.functions.clone();
More information about the armedbear-cvs
mailing list