Changeset 11281


Ignore:
Timestamp:
08/13/08 15:13:08 (15 years ago)
Author:
ehuelsmann
Message:

Eradicate last 'unchecked' warnings. (We now have a clean Java compile on Java 1.5.)

Location:
trunk/j/src/org/armedbear/lisp
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/Mailbox.java

    r11158 r11281  
    33 *
    44 * Copyright (C) 2004-2007 Peter Graves, Andras Simon
    5  * $Id: Mailbox.java,v 1.12 2007-02-23 21:17:34 piso Exp $
     5 * $Id: Mailbox.java,v 1.13 2008-08-13 15:13:06 ehuelsmann Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    2727public final class Mailbox extends LispObject
    2828{
    29   private LinkedList box = new LinkedList();
     29  private LinkedList<LispObject> box = new LinkedList<LispObject>();
    3030
    3131  public LispObject typeOf()
  • trunk/j/src/org/armedbear/lisp/Primitives.java

    r11244 r11281  
    33 *
    44 * Copyright (C) 2002-2007 Peter Graves
    5  * $Id: Primitives.java,v 1.881 2007-09-17 18:14:48 piso Exp $
     5 * $Id: Primitives.java,v 1.882 2008-08-13 15:13:06 ehuelsmann Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    39973997            return NIL;
    39983998          }
    3999         ArrayList arrayList = new ArrayList();
     3999        ArrayList<LispObject> arrayList = new ArrayList<LispObject>();
    40004000        while (args != NIL)
    40014001          {
  • trunk/j/src/org/armedbear/lisp/RuntimeClass.java

    r11158 r11281  
    33 *
    44 * Copyright (C) 2004 Peter Graves
    5  * $Id: RuntimeClass.java,v 1.12 2007-02-23 21:17:34 piso Exp $
     5 * $Id: RuntimeClass.java,v 1.13 2008-08-13 15:13:07 ehuelsmann Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    2828public class RuntimeClass extends Lisp
    2929{
    30     private static Map classes = new HashMap();
     30    private static Map<String,RuntimeClass> classes = new HashMap<String,RuntimeClass>();
    3131
    32     private Map methods = new HashMap();
     32    private Map<String,Function> methods = new HashMap<String,Function>();
    3333
    3434    // ### %jnew-runtime-class
     
    4242            if (length < 3 || length % 2 != 1)
    4343                return error(new WrongNumberOfArgumentsException(this));
    44       RuntimeClass rc = new RuntimeClass();
    45       String className = args[0].getStringValue();
     44        RuntimeClass rc = new RuntimeClass();
     45        String className = args[0].getStringValue();
    4646            for (int i = 1; i < length; i = i+2) {
    4747                String methodName = args[i].getStringValue();
    4848                rc.addLispMethod(methodName, (Function)args[i+1]);
    49       }
     49        }
    5050            classes.put(className, rc);
    51       return T;
     51        return T;
    5252        }
    5353    };
     
    8989        {
    9090            String cn = className.getStringValue();
    91       String pn = cn.substring(0,cn.lastIndexOf('.'));
    92       byte[] cb = (byte[]) classBytes.javaInstance();
     91        String pn = cn.substring(0,cn.lastIndexOf('.'));
     92        byte[] cb = (byte[]) classBytes.javaInstance();
    9393            try {
    9494                JavaClassLoader loader = JavaClassLoader.getPersistentInstance(pn);
  • trunk/j/src/org/armedbear/lisp/ShellCommand.java

    r11158 r11281  
    33 *
    44 * Copyright (C) 2000-2005 Peter Graves
    5  * $Id: ShellCommand.java,v 1.9 2007-02-23 21:17:34 piso Exp $
     5 * $Id: ShellCommand.java,v 1.10 2008-08-13 15:13:08 ehuelsmann Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    8383                    }
    8484                } else if (Utilities.isPlatformWindows) {
    85                     ArrayList list = new ArrayList();
     85                    ArrayList<String> list = new ArrayList<String>();
    8686                    list.add("cmd.exe");
    8787                    list.add("/c");
     
    134134
    135135    // Does not handle embedded single-quoted strings.
    136     private static List tokenize(String s)
    137     {
    138         ArrayList list = new ArrayList();
     136    private static List<String> tokenize(String s)
     137    {
     138        ArrayList<String> list = new ArrayList<String>();
    139139        StringBuffer sb = new StringBuffer();
    140140        boolean inQuote = false;
  • trunk/j/src/org/armedbear/lisp/StandardGenericFunction.java

    r11158 r11281  
    33 *
    44 * Copyright (C) 2003-2006 Peter Graves
    5  * $Id: StandardGenericFunction.java,v 1.20 2007-02-23 21:17:34 piso Exp $
     5 * $Id: StandardGenericFunction.java,v 1.21 2008-08-13 15:13:08 ehuelsmann Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    3030  private int numberOfRequiredArgs;
    3131
    32   private HashMap cache;
     32  private HashMap<CacheEntry,LispObject> cache;
     33  private HashMap<LispObject,LispObject> slotCache;
    3334
    3435  public StandardGenericFunction()
     
    674675          }
    675676        CacheEntry classes = new CacheEntry(array);
    676         HashMap ht = gf.cache;
     677        HashMap<CacheEntry,LispObject> ht = gf.cache;
    677678        if (ht == null)
    678             ht = gf.cache = new HashMap();
     679            ht = gf.cache = new HashMap<CacheEntry,LispObject>();
    679680        ht.put(classes, third);
    680681        return third;
     
    706707          }
    707708        CacheEntry classes = new CacheEntry(array);
    708         HashMap ht = gf.cache;
     709        HashMap<CacheEntry,LispObject> ht = gf.cache;
    709710        if (ht == null)
    710711          return NIL;
     
    733734        LispObject layout = second;
    734735        LispObject location = third;
    735         HashMap ht = gf.cache;
     736        HashMap<LispObject,LispObject> ht = gf.slotCache;
    736737        if (ht == null)
    737           ht = gf.cache = new HashMap();
     738          ht = gf.slotCache = new HashMap<LispObject,LispObject>();
    738739        ht.put(layout, location);
    739740        return third;
     
    758759          }
    759760        LispObject layout = second;
    760         HashMap ht = gf.cache;
     761        HashMap<LispObject,LispObject> ht = gf.slotCache;
    761762        if (ht == null)
    762763          return NIL;
Note: See TracChangeset for help on using the changeset viewer.