peterreilly 2005/01/21 09:29:46 Modified: src/main/org/apache/tools/ant/util WeakishReference.java Log: javadoc+unneeded imports Revision Changes Path 1.18 +6 -9 ant/src/main/org/apache/tools/ant/util/WeakishReference.java Index: WeakishReference.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/util/WeakishReference.java,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- WeakishReference.java 23 Nov 2004 10:40:14 -0000 1.17 +++ WeakishReference.java 21 Jan 2005 17:29:46 -0000 1.18 @@ -1,5 +1,5 @@ /* - * Copyright 2000-2004 The Apache Software Foundation + * Copyright 2000-2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,12 +17,8 @@ package org.apache.tools.ant.util; -import org.apache.tools.ant.BuildException; import org.apache.tools.ant.util.optional.WeakishReference12; -import java.lang.reflect.Constructor; - - /** * This is a weak reference on java1.2 and up, that is all * platforms Ant1.6 supports. @@ -32,7 +28,7 @@ /** * create the appropriate type of reference for the java version - * @param object + * @param object the object that the reference will refer to. * @return reference to the Object. */ public static WeakishReference createReference(Object object) { @@ -44,7 +40,7 @@ * been cleared, then this method returns <code>null</code>. * * @return The object to which this reference refers, or - * <code>null</code> if this reference object has been cleared + * <code>null</code> if this reference object has been cleared. */ public abstract Object get(); @@ -56,8 +52,8 @@ private Object object; /** - * construct - * @param object + * constructor. + * @param object the object that the reference will refer to. */ public HardReference(Object object) { this.object = object; @@ -65,6 +61,7 @@ /** * Returns this reference object's referent. + * @return the object to which this reference refers. */ public Object get() { return object;
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]