Problem statement
See org.openrewrite.staticanalysis.UnnecessaryExplicitTypeArgumentsTest#withinLambda.
|
rewriteRun( |
|
//language=java |
|
java( |
|
""" |
|
import java.util.function.Function; |
|
|
|
class Test { |
|
Function<Object, Object> f = (d1) -> { |
|
return this.<Object>test(); |
|
}; |
|
|
|
<T> T test() { |
|
return this.test(); |
|
} |
|
} |
|
""", |
|
""" |
|
import java.util.function.Function; |
|
|
|
class Test { |
|
Function<Object, Object> f = (d1) -> { |
|
return this.test(); |
|
}; |
|
|
|
<T> T test() { |
|
return this.test(); |
|
} |
|
} |
|
""" |
|
) |
|
); |
Problem statement
See
org.openrewrite.staticanalysis.UnnecessaryExplicitTypeArgumentsTest#withinLambda.rewrite-static-analysis/src/test/java/org/openrewrite/staticanalysis/UnnecessaryExplicitTypeArgumentsTest.java
Lines 77 to 107 in 0a470e4