mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
TrivialFunctionalExpressionUsageInspection: support parentheses for anonymous class
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
// "Replace call with method body" "true"
|
||||
|
||||
import java.util.function.IntSupplier;
|
||||
|
||||
public class Main {
|
||||
public void call() {
|
||||
switch((0)) {}
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Replace call with method body" "true"
|
||||
|
||||
import java.util.function.IntSupplier;
|
||||
|
||||
public class Main {
|
||||
public void call() {
|
||||
switch((new IntSupplier() {public int getAsInt() { return 0;}}.getA<caret>sInt())) {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user