warn if lambda -> method ref fix can change semantics (IDEA-CR-16052)

This commit is contained in:
Anna.Kozlova
2016-11-23 14:14:53 +01:00
parent 206a6c3102
commit e201eee547
5 changed files with 27 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
// "Replace lambda with method reference" "true"
// "Replace lambda with method reference (may change semantics)" "true"
class Example {
public void m() {
}

View File

@@ -1,4 +1,4 @@
// "Replace lambda with method reference" "true"
// "Replace lambda with method reference (may change semantics)" "true"
import java.util.*;
import java.util.function.Predicate;

View File

@@ -1,4 +1,4 @@
// "Replace lambda with method reference" "true"
// "Replace lambda with method reference (may change semantics)" "true"
class Example {
public void m() {
}

View File

@@ -1,4 +1,4 @@
// "Replace lambda with method reference" "true"
// "Replace lambda with method reference (may change semantics)" "true"
import java.util.*;
import java.util.function.Predicate;