mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Postfix templates: add tests for new templates and use full qualified names
in templates
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(int[] array) {
|
||||
array.lambda<caret>
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(int[] array) {
|
||||
array.lambda <caret>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(int[] array) {
|
||||
array.lambda<caret>
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(int[] array) {
|
||||
() -> array<caret>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(int[] array) {
|
||||
array.opt<caret>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(int[] array) {
|
||||
java.util.Optional.ofNullable(array)<caret>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(Byte foo) {
|
||||
foo.opt<caret>
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(Byte foo) {
|
||||
java.util.Optional.ofNullable(foo)
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(int[] array) {
|
||||
array.opt<caret>
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(int[] array) {
|
||||
array.opt <caret>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(double foo) {
|
||||
foo.opt<caret>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(double foo) {
|
||||
java.util.OptionalDouble.of(foo)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(Foo foo) {
|
||||
foo.opt<caret>
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(Foo foo) {
|
||||
java.util.Optional.ofNullable(foo)<caret>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(int foo) {
|
||||
foo.opt<caret>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m() {
|
||||
42.opt<caret>
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m() {
|
||||
java.util.OptionalInt.of(42)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(int foo) {
|
||||
java.util.OptionalInt.of(foo)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(long foo) {
|
||||
foo.opt<caret>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(long foo) {
|
||||
java.util.OptionalLong.of(foo)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(byte foo) {
|
||||
foo.opt<caret>
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(byte foo) {
|
||||
java.util.Optional.of(foo)<caret>
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(int[] array) {
|
||||
array.stream<caret>
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(int[] array) {
|
||||
array.stream <caret>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(int[] array) {
|
||||
array.stream<caret>
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package templates;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
public class Foo {
|
||||
void m(int[] array) {
|
||||
Arrays.stream(array)<caret>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user