| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.util.WeakishReference
WeakReference directly.
public class WeakishReference
These classes are part of some code to reduce memory leaks by only retaining weak references to things on Java1.2+, and yet still work (with leaky hard references) on Java1.1. Now that Ant is 1.2+ only, life is simpler and none of the classes are needed any more. They are only retained in case a third-party task uses them
WeakishReference12| Nested Class Summary | |
|---|---|
| static class | WeakishReference.HardReferenceDeprecated. since 1.7. Hopefully nobody is using this. | 
| Method Summary | |
|---|---|
| static WeakishReference | createReference(java.lang.Object object)Deprecated. create the appropriate type of reference for the java version | 
|  java.lang.Object | get()Deprecated. Returns this reference object's referent. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public java.lang.Object get()
null.
null if this reference object has been cleared.public static WeakishReference createReference(java.lang.Object object)
object - the object that the reference will refer to.
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||