anonym -> lambda: reject refs to the next static from static field initializer

This commit is contained in:
Anna.Kozlova
2016-03-21 21:10:05 +01:00
parent 6fc9953a82
commit f6faa42d85
2 changed files with 15 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
// "Replace with lambda" "false"
import java.util.function.Function;
class Test {
private static final Function<String, String> FUN = new Fun<caret>ction<String, String>() {
@Override
public String apply(final String s) {
return B_FUN.apply(s);
}
};
private static final Function<String, String> B_FUN = null;
}