Changeset 10239


Ignore:
Timestamp:
10/27/05 17:28:13 (16 years ago)
Author:
piso
Message:

Minor cleanup.

File:
1 edited

Legend:

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

    r5892 r10239  
    22 * JProxy.java
    33 *
    4  * Copyright (C) 2002-2004 Peter Graves
    5  * $Id: JProxy.java,v 1.4 2004-02-23 00:05:35 piso Exp $
     4 * Copyright (C) 2002-2005 Peter Graves, Andras Simon
     5 * $Id: JProxy.java,v 1.5 2005-10-27 17:28:13 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    3333    private static final Map table = new WeakHashMap();
    3434
    35     // ### %jnew-proxy
    36     // %jnew-proxy interface &rest method-names-and-defs
     35    // ### %jnew-proxy interface &rest method-names-and-defs
    3736    private static final Primitive _JNEW_PROXY =
    38         new Primitive("%jnew-proxy", PACKAGE_JAVA, false, "interface &rest method-names-and-defs")
     37        new Primitive("%jnew-proxy", PACKAGE_JAVA, false,
     38                      "interface &rest method-names-and-defs")
    3939    {
    4040        public LispObject execute(LispObject[] args) throws ConditionThrowable
     
    4747                lispDefinedMethods.put(args[i].getStringValue(),(Function)args[i+1]);
    4848            Class iface = (Class) args[0].javaInstance();
    49             Object proxy =
    50                 Proxy.newProxyInstance(iface.getClassLoader(), new Class[] { iface }, new LispHandler(table));
     49            Object proxy = Proxy.newProxyInstance(iface.getClassLoader(),
     50                                        new Class[] { iface },
     51                                        new LispHandler(table));
    5152            table.put(proxy, new Entry(iface, lispDefinedMethods));
    5253            return new JavaObject(proxy);
Note: See TracChangeset for help on using the changeset viewer.