mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 06:11:42 +07:00
don't warn about unimplemented Iterator.remove for type parameters
This commit is contained in:
@@ -25,5 +25,9 @@ public class Test implements Iterator<String> {
|
||||
@Override
|
||||
public void remove() {}
|
||||
}
|
||||
|
||||
public <T extends Iterator<String>> T typedIterator() {
|
||||
return (T) iterator();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user