mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
trivial functional expressions usage: replace anonymous
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
// "Replace call with method body" "true"
|
||||
|
||||
class Test {
|
||||
{
|
||||
System.out.println();
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// "Replace call with method body" "true"
|
||||
|
||||
class Test {
|
||||
{
|
||||
new Runnable() {
|
||||
public void run() {
|
||||
System.out.println();
|
||||
}
|
||||
}.ru<caret>n();
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
// "Replace call with method body" "false"
|
||||
|
||||
class Test {
|
||||
{
|
||||
new Runnable() {
|
||||
public void run() {
|
||||
if (true) {
|
||||
System.out.println();
|
||||
return;
|
||||
}
|
||||
else {
|
||||
System.out.println();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}.ru<caret>n();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user