mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 19:29:30 +07:00
Java surrounders: if and not surrounder should be able to handle java.lang
.Boolean expressions
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
class Test {
|
||||
boolean foo() {
|
||||
return null;
|
||||
}
|
||||
|
||||
void bar() {
|
||||
<selection>foo()</selection>
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
import java.lang.Boolean;
|
||||
|
||||
class Test {
|
||||
Boolean foo() {
|
||||
return null;
|
||||
}
|
||||
|
||||
void bar() {
|
||||
<selection>foo()</selection>
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
import java.lang.Boolean;
|
||||
|
||||
class Test {
|
||||
Boolean foo() {
|
||||
return null;
|
||||
}
|
||||
|
||||
void bar() {
|
||||
if (foo()) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
class Test {
|
||||
boolean foo() {
|
||||
return null;
|
||||
}
|
||||
|
||||
void bar() {
|
||||
if (foo()) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
import java.lang.Boolean;
|
||||
|
||||
class Test {
|
||||
Boolean foo() {
|
||||
return null;
|
||||
}
|
||||
|
||||
void bar() {
|
||||
<selection>foo()</selection>
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
import java.lang.Boolean;
|
||||
|
||||
class Test {
|
||||
Boolean foo() {
|
||||
return null;
|
||||
}
|
||||
|
||||
void bar() {
|
||||
!(foo())
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user