Add missing @Override annotations.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1543168 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2013-11-18 21:22:43 +00:00
parent 69aa3946d2
commit 6607ad4329
5 changed files with 9 additions and 0 deletions

View File

@ -159,6 +159,7 @@ public final class CollectionBag<E> extends AbstractBagDecorator<E> {
// Bag interface
//-----------------------------------------------------------------------
@Override
public boolean add(final E object, final int count) {
decorated().add(object, count);
return true;

View File

@ -159,6 +159,7 @@ public final class CollectionSortedBag<E> extends AbstractSortedBagDecorator<E>
// Bag interface
//-----------------------------------------------------------------------
@Override
public boolean add(final E object, final int count) {
decorated().add(object, count);
return true;

View File

@ -78,6 +78,7 @@ public abstract class AbstractBidiMapDecorator<K, V>
return decorated().inverseBidiMap();
}
@Override
public Set<V> values() {
return decorated().values();
}

View File

@ -42,14 +42,17 @@ public class StringKeyAnalyzer extends KeyAnalyzer<String> {
return MSB >>> bit;
}
@Override
public int bitsPerElement() {
return LENGTH;
}
@Override
public int lengthInBits(final String key) {
return key != null ? key.length() * LENGTH : 0;
}
@Override
public int bitIndex(final String key, final int offsetInBits, final int lengthInBits,
final String other, final int otherOffsetInBits, final int otherLengthInBits) {
@ -107,6 +110,7 @@ public class StringKeyAnalyzer extends KeyAnalyzer<String> {
return KeyAnalyzer.EQUAL_BIT_KEY;
}
@Override
public boolean isBitSet(final String key, final int bitIndex, final int lengthInBits) {
if (key == null || bitIndex >= lengthInBits) {
return false;
@ -118,6 +122,7 @@ public class StringKeyAnalyzer extends KeyAnalyzer<String> {
return (key.charAt(index) & mask(bit)) != 0;
}
@Override
public boolean isPrefix(final String prefix, final int offsetInBits,
final int lengthInBits, final String key) {
if (offsetInBits % LENGTH != 0 || lengthInBits % LENGTH != 0) {

View File

@ -83,6 +83,7 @@ public class UnmodifiableQueueTest<E> extends AbstractQueueTest<E> {
}
//-----------------------------------------------------------------------
@Override
public void testQueueRemove() {
resetEmpty();
try {