mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
anonym -> lambda, redundant cast, redundant type args: process top level overloads (IDEA-152766);
rearrange utils
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// "Replace with lambda" "false"
|
||||
|
||||
import java.util.function.Function;
|
||||
|
||||
abstract class LambdaConvert {
|
||||
|
||||
public abstract <T> T query(Function<Double, T> rse);
|
||||
|
||||
public void with() {
|
||||
add(query(new Function<Do<caret>uble, String>() {
|
||||
@Override
|
||||
public String apply(Double resultSet) {
|
||||
return "";
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
public void add(String s) {}
|
||||
public void add(Integer i) {}
|
||||
}
|
||||
Reference in New Issue
Block a user