From af2d6e62f3f524c90d25bfc831d5b14e001a153b Mon Sep 17 00:00:00 2001 From: "Gary D. Gregory" Date: Mon, 7 Jan 2013 16:49:40 +0000 Subject: [PATCH] Add missing '@Override' annotations. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1429891 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/commons/collections/ListUtils.java | 2 ++ .../org/apache/commons/collections/trie/UnmodifiableTrie.java | 1 + .../commons/collections/collection/IndexedCollectionTest.java | 1 + 3 files changed, 4 insertions(+) diff --git a/src/main/java/org/apache/commons/collections/ListUtils.java b/src/main/java/org/apache/commons/collections/ListUtils.java index 6bc1c8e4d..24f2063db 100644 --- a/src/main/java/org/apache/commons/collections/ListUtils.java +++ b/src/main/java/org/apache/commons/collections/ListUtils.java @@ -548,6 +548,7 @@ public class ListUtils { this.size = size; } + @Override public List get(int index) { int listSize = size(); if (listSize < 0) { @@ -565,6 +566,7 @@ public class ListUtils { return list.subList(start, end); } + @Override public int size() { return (list.size() + size - 1) / size; } diff --git a/src/main/java/org/apache/commons/collections/trie/UnmodifiableTrie.java b/src/main/java/org/apache/commons/collections/trie/UnmodifiableTrie.java index e3920f597..43def1c4b 100644 --- a/src/main/java/org/apache/commons/collections/trie/UnmodifiableTrie.java +++ b/src/main/java/org/apache/commons/collections/trie/UnmodifiableTrie.java @@ -199,6 +199,7 @@ public class UnmodifiableTrie implements Trie, Serializable, Unmodif return delegate.size(); } + @Override public int hashCode() { return delegate.hashCode(); } diff --git a/src/test/java/org/apache/commons/collections/collection/IndexedCollectionTest.java b/src/test/java/org/apache/commons/collections/collection/IndexedCollectionTest.java index a3ca948dd..aa25028d0 100644 --- a/src/test/java/org/apache/commons/collections/collection/IndexedCollectionTest.java +++ b/src/test/java/org/apache/commons/collections/collection/IndexedCollectionTest.java @@ -98,6 +98,7 @@ public class IndexedCollectionTest extends AbstractCollectionTest { //------------------------------------------------------------------------ + @Override public void testCollectionAddAll() { // FIXME: does not work as we do not support multi-keys yet }