[Arakhnę-Dev] [128] Remove deprecated functions. |
[ Thread Index |
Date Index
| More arakhne.org/dev Archives
]
Revision: 128
Author: galland
Date: 2010-02-12 22:43:52 +0100 (Fri, 12 Feb 2010)
Log Message:
-----------
Remove deprecated functions.
Modified Paths:
--------------
trunk/arakhneRefs/src/main/java/org/arakhne/util/ref/ComparableSoftReference.java
trunk/arakhneRefs/src/main/java/org/arakhne/util/ref/ComparableWeakReference.java
trunk/arakhneRefs/src/main/java/org/arakhne/util/ref/WeakArrayList.java
Modified: trunk/arakhneRefs/src/main/java/org/arakhne/util/ref/ComparableSoftReference.java
===================================================================
--- trunk/arakhneRefs/src/main/java/org/arakhne/util/ref/ComparableSoftReference.java 2010-02-12 21:43:41 UTC (rev 127)
+++ trunk/arakhneRefs/src/main/java/org/arakhne/util/ref/ComparableSoftReference.java 2010-02-12 21:43:52 UTC (rev 128)
@@ -102,34 +102,6 @@
return oth.hashCode() - cur.hashCode();
}
- /** Compare this reference to the specified object
- * based on the {@link Object#hashCode()} if the
- * references are not equals.
- *
- * @param o the object to be compared.
- * @return a negative integer, zero, or a positive integer as this object
- * is less than, equal to, or greater than the specified object.
- * @deprecated call {@link #compareTo(Object)} insteed
- */
- @Deprecated
- public int compareToObject(T o) {
- return compareTo(o);
- }
-
- /** Compare this reference to the specified object
- * based on the {@link Object#hashCode()} if the
- * references are not equals.
- *
- * @param o the object to be compared.
- * @return a negative integer, zero, or a positive integer as this object
- * is less than, equal to, or greater than the specified object.
- * @deprecated call {@link #compareTo(Object)} insteed
- */
- @Deprecated
- public int compareToRef(Reference<T> o) {
- return compareTo(o);
- }
-
/** {@inheritDoc}
*
* @return {@inheritDoc}
Modified: trunk/arakhneRefs/src/main/java/org/arakhne/util/ref/ComparableWeakReference.java
===================================================================
--- trunk/arakhneRefs/src/main/java/org/arakhne/util/ref/ComparableWeakReference.java 2010-02-12 21:43:41 UTC (rev 127)
+++ trunk/arakhneRefs/src/main/java/org/arakhne/util/ref/ComparableWeakReference.java 2010-02-12 21:43:52 UTC (rev 128)
@@ -102,34 +102,6 @@
return oth.hashCode() - cur.hashCode();
}
- /** Compare this reference to the specified object
- * based on the {@link Object#hashCode()} if the
- * references are not equals.
- *
- * @param o the object to be compared.
- * @return a negative integer, zero, or a positive integer as this object
- * is less than, equal to, or greater than the specified object.
- * @deprecated call {@link #compareTo(Object)} insteed
- */
- @Deprecated
- public int compareToObject(T o) {
- return compareTo(o);
- }
-
- /** Compare this reference to the specified object
- * based on the {@link Object#hashCode()} if the
- * references are not equals.
- *
- * @param o the object to be compared.
- * @return a negative integer, zero, or a positive integer as this object
- * is less than, equal to, or greater than the specified object.
- * @deprecated call {@link #compareTo(Object)} insteed
- */
- @Deprecated
- public int compareToRef(Reference<T> o) {
- return compareTo(o);
- }
-
/** {@inheritDoc}
*
* @return {@inheritDoc}
Modified: trunk/arakhneRefs/src/main/java/org/arakhne/util/ref/WeakArrayList.java
===================================================================
--- trunk/arakhneRefs/src/main/java/org/arakhne/util/ref/WeakArrayList.java 2010-02-12 21:43:41 UTC (rev 127)
+++ trunk/arakhneRefs/src/main/java/org/arakhne/util/ref/WeakArrayList.java 2010-02-12 21:43:52 UTC (rev 128)
@@ -51,15 +51,6 @@
* <tt>null</tt> and the <tt>remove</tt> method to return
* <tt>false</tt> for a value that previously appeared to be in the list.
* <p>
- * This class has a special flag which permits to control the
- * way how the released references are expurged: {@link #isDeeplyExpurge()},
- * {@link #setDeeplyExpurge(boolean)}. If this flag is <code>true</code>,
- * all the released references will be immediately removed from the map even
- * if they are not enqueued by the virtual machine (see {@link #expurge()}.
- * If this flag is <code>false</code>,
- * only the enqueued references will be removed from the map
- * (see {@link #expurgeQueuedReferences()}.
- * <p>
* If this map does not use a "deep expurge" of the released references,
* it could contains <code>null</code> values that corresponds to
* values that are released by the garbage collector. If a "deep expurge"
@@ -399,41 +390,5 @@
}
}
}
-
- /** Replies if this map expurge all the released references
- * even if they are not enqueued by the virtual machine
- *
- * @return <code>true</code>
- * @deprecated Always returns <code>true</code>, do not use!
- */
- @Deprecated
- public boolean isDeeplyExpurge() {
- return true;
- }
-
- /** Set if this map expurge all the released references
- * even if they are not enqueued by the virtual machine
- *
- * @param deeplyExpurge must be <code>true</code> to
- * expurge all the released values, otherwise <code>false</code>
- * to expurge only the enqueued values.
- * @return the old value of this flag
- * @deprecated Do nothing, do not use!
- */
- @Deprecated
- public boolean setDeeplyExpurge(boolean deeplyExpurge) {
- throw new UnsupportedOperationException();
- }
-
- /** Clean the references that was marked as released inside
- * the queue.
- *
- * @return the size
- * @deprecated Do nothing, do not use!
- */
- @Deprecated
- public int expurgeQueuedReferences() {
- throw new UnsupportedOperationException();
- }
-
+
}