aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpschonbac2009-05-25 07:21:37 (EDT)
committersefftinge2009-05-25 07:21:37 (EDT)
commitcf7eab9e8d381c749c60b93db388cf49e77d9d04 (patch)
tree510543d2c5e70659cdb74445d20f8a2711fa1d68
parentef21f20fe41b6fdf17b112a06a4004c26c23f8f2 (diff)
downloadorg.eclipse.xtext-cf7eab9e8d381c749c60b93db388cf49e77d9d04.zip
org.eclipse.xtext-cf7eab9e8d381c749c60b93db388cf49e77d9d04.tar.gz
org.eclipse.xtext-cf7eab9e8d381c749c60b93db388cf49e77d9d04.tar.bz2
Warnings removed
-rw-r--r--plugins/com.google.collect/src/com/google/common/collect/Collections2.java3
-rw-r--r--plugins/com.google.collect/src/com/google/common/collect/Multimaps.java22
2 files changed, 13 insertions, 12 deletions
diff --git a/plugins/com.google.collect/src/com/google/common/collect/Collections2.java b/plugins/com.google.collect/src/com/google/common/collect/Collections2.java
index ad9455f..230bbe3 100644
--- a/plugins/com.google.collect/src/com/google/common/collect/Collections2.java
+++ b/plugins/com.google.collect/src/com/google/common/collect/Collections2.java
@@ -289,7 +289,8 @@ public final class Collections2 {
return Lists.newArrayList(iterator()).toArray();
}
- public <T> T[] toArray(T[] array) {
+ @SuppressWarnings("hiding")
+ public <T> T[] toArray(T[] array) {
return Lists.newArrayList(iterator()).toArray(array);
}
diff --git a/plugins/com.google.collect/src/com/google/common/collect/Multimaps.java b/plugins/com.google.collect/src/com/google/common/collect/Multimaps.java
index 22551ae..22eebf1 100644
--- a/plugins/com.google.collect/src/com/google/common/collect/Multimaps.java
+++ b/plugins/com.google.collect/src/com/google/common/collect/Multimaps.java
@@ -684,35 +684,35 @@ public final class Multimaps {
return keySet;
}
- @Override @SuppressWarnings("unused")
+ @Override
public boolean put(K key, V value) {
throw new UnsupportedOperationException();
}
- @Override @SuppressWarnings("unused")
+ @Override
public boolean putAll(K key,
- @SuppressWarnings("hiding") Iterable<? extends V> values) {
+ Iterable<? extends V> values) {
throw new UnsupportedOperationException();
}
- @Override @SuppressWarnings("unused")
+ @Override
public boolean putAll(Multimap<? extends K, ? extends V> multimap) {
throw new UnsupportedOperationException();
}
- @Override @SuppressWarnings("unused")
+ @Override
public boolean remove(Object key, Object value) {
throw new UnsupportedOperationException();
}
- @Override @SuppressWarnings("unused")
+ @Override
public Collection<V> removeAll(Object key) {
throw new UnsupportedOperationException();
}
- @Override @SuppressWarnings("unused")
+ @Override
public Collection<V> replaceValues(K key,
- @SuppressWarnings("hiding") Iterable<? extends V> values) {
+ Iterable<? extends V> values) {
throw new UnsupportedOperationException();
}
@@ -778,7 +778,7 @@ public final class Multimaps {
throw new UnsupportedOperationException();
}
@Override public List<V> replaceValues(
- K key, @SuppressWarnings("hiding") Iterable<? extends V> values) {
+ K key, Iterable<? extends V> values) {
throw new UnsupportedOperationException();
}
private static final long serialVersionUID = 0;
@@ -806,7 +806,7 @@ public final class Multimaps {
throw new UnsupportedOperationException();
}
@Override public Set<V> replaceValues(
- K key, @SuppressWarnings("hiding") Iterable<? extends V> values) {
+ K key, Iterable<? extends V> values) {
throw new UnsupportedOperationException();
}
private static final long serialVersionUID = 0;
@@ -827,7 +827,7 @@ public final class Multimaps {
throw new UnsupportedOperationException();
}
@Override public SortedSet<V> replaceValues(
- K key, @SuppressWarnings("hiding") Iterable<? extends V> values) {
+ K key, Iterable<? extends V> values) {
throw new UnsupportedOperationException();
}
public Comparator<? super V> valueComparator() {