java: redundant type arguments: check that parent call substitutor remains the same (IDEA-241259)

GitOrigin-RevId: 8e0e8d23e2868a47a857fb84bfb3a43fc34263f6
This commit is contained in:
Anna Kozlova
2020-06-05 10:12:42 +03:00
committed by intellij-monorepo-bot
parent e35fd2396a
commit dadcc9adde
2 changed files with 36 additions and 4 deletions
@@ -0,0 +1,25 @@
// "Remove type arguments" "false"
import java.util.function.Function;
class MyTest {
public JBIterable<String> getChildren(JBIterable<? extends Integer> children) {
return children
.map(this.<St<caret>ring>wrapper())
.filter();
}
protected <De extends String> Function<Integer, De> wrapper() {
return null;
}
abstract class JBIterable<E>{
public final <T> JBIterable<T> map(Function<? super E, ? extends T> function) {
return null;
}
public final JBIterable<E> filter() {
return null;
}
}
}