[java] disable lambda -> method references for casts in qualifiers (IDEA-277905)

GitOrigin-RevId: 7904b8a59aa8c8f1f95deba5b14872624ff68ff7
This commit is contained in:
Anna Kozlova
2021-09-20 08:37:35 +02:00
committed by intellij-monorepo-bot
parent 0d9655f2ba
commit 1cd8782c82
3 changed files with 5 additions and 11 deletions

View File

@@ -1,6 +0,0 @@
// "Replace lambda with method reference" "true"
class Bar extends Random {
public void test(Object obj) {
Runnable r = ((String) obj)::trim;
}
}

View File

@@ -1,4 +1,4 @@
// "Replace lambda with method reference" "true"
// "Replace lambda with method reference" "false"
class Bar extends Random {
public void test(Object obj) {
Runnable r = () -> <caret>((String)obj).trim();