Changeset 12110


Ignore:
Timestamp:
08/23/09 08:32:26 (12 years ago)
Author:
ehuelsmann
Message:

Eliminate (a few) "unchecked" warnings.

Location:
trunk/abcl/src/org/armedbear/lisp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/src/org/armedbear/lisp/Lisp.java

    r12105 r12110  
    12211221
    12221222    public static final LispObject loadCompiledFunction(byte[] bytes) throws Throwable {
    1223         Class c = (new JavaClassLoader()).loadClassFromByteArray(null, bytes, 0, bytes.length);
     1223        Class<Object> c = (new JavaClassLoader())
     1224            .loadClassFromByteArray(null, bytes, 0, bytes.length);
    12241225        if (c != null) {
    12251226            Constructor constructor = c.getConstructor((Class[])null);
    1226             LispObject obj = (LispObject) constructor.newInstance((Object[])null);
     1227            LispObject obj = (LispObject)constructor
     1228                .newInstance((Object[])null);
    12271229            if (obj instanceof Function) {
    12281230              ((Function)obj).setClassBytes(bytes);
  • trunk/abcl/src/org/armedbear/lisp/LispObject.java

    r12079 r12110  
    105105  }
    106106
    107   public Object javaInstance(Class c) throws ConditionThrowable
     107  public Object javaInstance(Class<Object> c) throws ConditionThrowable
    108108  {
    109109      if (c.isAssignableFrom(getClass()))
Note: See TracChangeset for help on using the changeset viewer.