|
@@ -132,7 +132,7 @@ public class WeakList<T> implements List<T> {
|
132
|
132
|
|
133
|
133
|
/** {@inheritDoc} */
|
134
|
134
|
@Override
|
135
|
|
- public <T> T[] toArray(final T[] a) {
|
|
135
|
+ public <S> S[] toArray(final S[] a) {
|
136
|
136
|
return dereferenceList(list).toArray(a);
|
137
|
137
|
}
|
138
|
138
|
|
|
@@ -213,7 +213,7 @@ public class WeakList<T> implements List<T> {
|
213
|
213
|
}
|
214
|
214
|
|
215
|
215
|
/** {@inheritDoc} */
|
216
|
|
- @Override @SuppressWarnings(value = "unchecked")
|
|
216
|
+ @Override
|
217
|
217
|
public int indexOf(final Object o) {
|
218
|
218
|
cleanUp();
|
219
|
219
|
|
|
@@ -221,7 +221,7 @@ public class WeakList<T> implements List<T> {
|
221
|
221
|
}
|
222
|
222
|
|
223
|
223
|
/** {@inheritDoc} */
|
224
|
|
- @Override @SuppressWarnings(value = "unchecked")
|
|
224
|
+ @Override
|
225
|
225
|
public int lastIndexOf(final Object o) {
|
226
|
226
|
cleanUp();
|
227
|
227
|
|