mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
move postfix templates to java-impl
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(boolean b, int value) {
|
||||
b.assert<caret>
|
||||
value = 123;
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(boolean b, int value) {
|
||||
assert b;<caret>
|
||||
value = 123;
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
public class Foo {
|
||||
void m(Boolean x) {
|
||||
x.assert<caret>
|
||||
return;
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
public class Foo {
|
||||
void m(Boolean x) {
|
||||
assert x;<caret>
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(Object o) {
|
||||
o instanceof String.assert<caret>
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
boolean m(Object o) {
|
||||
if (o instanceof T1) return true;
|
||||
o instanceof T2.assert<caret>
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
boolean m(Object o) {
|
||||
if (o instanceof T1) return true;
|
||||
assert o instanceof T2;<caret>
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(Object o) {
|
||||
assert o instanceof String;<caret>
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(boolean[] xs) {
|
||||
xs.length > 0.assert<caret>
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(boolean[] xs) {
|
||||
assert xs.length > 0;<caret>
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m() {
|
||||
bar().assert<caret>
|
||||
}
|
||||
|
||||
boolean bar() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m() {
|
||||
assert bar();<caret>
|
||||
}
|
||||
|
||||
boolean bar() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(String b, int value) {
|
||||
b.assert<caret>
|
||||
value = 123;
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(String b, int value) {
|
||||
b.assert <caret>
|
||||
value = 123;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(Object arg) {
|
||||
arg != null.assert<caret>
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(Object arg) {
|
||||
assert arg != null;<caret>
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(String s) {
|
||||
s.isEmpty() || s.contains("asas").assert<caret>
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(String s) {
|
||||
assert s.isEmpty() || s.contains("asas");<caret>
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(int value) {
|
||||
b.assert<caret>
|
||||
value = 123;
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(int value) {
|
||||
b.assert <caret>
|
||||
value = 123;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user