From c9b6999a8c54190f8dda2b41d9013e7df659fea9 Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Fri, 21 Jan 2005 17:29:46 +0000 Subject: [PATCH] javadoc+unneeded imports git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277423 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/tools/ant/util/WeakishReference.java | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/main/org/apache/tools/ant/util/WeakishReference.java b/src/main/org/apache/tools/ant/util/WeakishReference.java index f479f9aae..b8cd32b0c 100644 --- a/src/main/org/apache/tools/ant/util/WeakishReference.java +++ b/src/main/org/apache/tools/ant/util/WeakishReference.java @@ -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 @@ public abstract class WeakishReference { /** * 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 @@ public abstract class WeakishReference { * been cleared, then this method returns null. * * @return The object to which this reference refers, or - * null if this reference object has been cleared + * null if this reference object has been cleared. */ public abstract Object get(); @@ -56,8 +52,8 @@ public abstract class WeakishReference { 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 @@ public abstract class WeakishReference { /** * Returns this reference object's referent. + * @return the object to which this reference refers. */ public Object get() { return object;