Some @Override annotations from Charlie.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2610 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -24,7 +24,6 @@ import java.io.Serializable;
|
||||
|
||||
import java.util.AbstractList;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.RandomAccess;
|
||||
|
||||
import java.lang.reflect.Array;
|
||||
@@ -37,7 +36,7 @@ import static com.samskivert.Log.log;
|
||||
* made the instance variables private).
|
||||
*/
|
||||
public abstract class BaseArrayList<E> extends AbstractList<E>
|
||||
implements List<E>, RandomAccess, Cloneable, Serializable
|
||||
implements RandomAccess, Cloneable, Serializable
|
||||
{
|
||||
@Override
|
||||
public int size ()
|
||||
|
||||
@@ -397,7 +397,7 @@ public class HashIntMap<V> extends AbstractMap<Integer,V>
|
||||
// damn Sun bastards made the 'keySet' variable with default access, so we can't share it
|
||||
if (_keySet == null) {
|
||||
_keySet = new AbstractIntSet() {
|
||||
public Interator interator () {
|
||||
@Override public Interator interator () {
|
||||
return new Interator () {
|
||||
public boolean hasNext () {
|
||||
return i.hasNext();
|
||||
|
||||
@@ -312,7 +312,7 @@ public class IntIntMap
|
||||
public IntSet keySet ()
|
||||
{
|
||||
return new AbstractIntSet() {
|
||||
public Interator interator () {
|
||||
@Override public Interator interator () {
|
||||
return IntIntMap.this.keys();
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ public abstract class Interval
|
||||
public static Interval create (final Runnable onExpired)
|
||||
{
|
||||
return new Interval() {
|
||||
public void expired () {
|
||||
@Override public void expired () {
|
||||
onExpired.run();
|
||||
}
|
||||
};
|
||||
@@ -68,7 +68,7 @@ public abstract class Interval
|
||||
// runbuddy reposting and whatever and just create a non-runqueue interval that posts the
|
||||
// supplied runnable to the runqueue when it expires, but we'll just punt on that for now
|
||||
return new Interval(runQueue) {
|
||||
public void expired () {
|
||||
@Override public void expired () {
|
||||
onExpired.run();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -84,7 +84,7 @@ public class WeakObserverList<T> extends AbstractList<T>
|
||||
{
|
||||
// dereference the elements when searching for a value
|
||||
_wrappedList = new ObserverList<WeakReference<T>>(notifyPolicy, allowDups) {
|
||||
public int indexOf (Object element) {
|
||||
@Override public int indexOf (Object element) {
|
||||
@SuppressWarnings("unchecked") WeakReference<T> ref =
|
||||
(WeakReference<T>)element;
|
||||
T value = ref.get();
|
||||
@@ -95,7 +95,7 @@ public class WeakObserverList<T> extends AbstractList<T>
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
public int lastIndexOf (Object element) {
|
||||
@Override public int lastIndexOf (Object element) {
|
||||
@SuppressWarnings("unchecked") WeakReference<T> ref =
|
||||
(WeakReference<T>)element;
|
||||
T value = ref.get();
|
||||
|
||||
Reference in New Issue
Block a user