|
@@ -78,7 +78,7 @@ public class WeakList<T> implements List<T> {
|
78
|
78
|
* @return A copy of the specified collection, with each item wrapped in
|
79
|
79
|
* a weak reference.
|
80
|
80
|
*/
|
81
|
|
- @SuppressWarnings(value = "unchecked")
|
|
81
|
+ @SuppressWarnings({"unchecked", "rawtypes"})
|
82
|
82
|
private Collection<WeakReference<T>> referenceCollection(
|
83
|
83
|
final Collection<?> c) {
|
84
|
84
|
final Collection<WeakReference<T>> res
|
|
@@ -108,7 +108,8 @@ public class WeakList<T> implements List<T> {
|
108
|
108
|
}
|
109
|
109
|
|
110
|
110
|
/** {@inheritDoc} */
|
111
|
|
- @Override @SuppressWarnings("unchecked")
|
|
111
|
+ @Override
|
|
112
|
+ @SuppressWarnings({"unchecked", "rawtypes"})
|
112
|
113
|
public boolean contains(final Object o) {
|
113
|
114
|
return list.contains(new EquatableWeakReference(o));
|
114
|
115
|
}
|
|
@@ -138,7 +139,8 @@ public class WeakList<T> implements List<T> {
|
138
|
139
|
}
|
139
|
140
|
|
140
|
141
|
/** {@inheritDoc} */
|
141
|
|
- @Override @SuppressWarnings(value = "unchecked")
|
|
142
|
+ @Override
|
|
143
|
+ @SuppressWarnings({"unchecked", "rawtypes"})
|
142
|
144
|
public boolean remove(final Object o) {
|
143
|
145
|
return list.remove(new EquatableWeakReference(o));
|
144
|
146
|
}
|