mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix testdata
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import static Util.*
|
||||
import static Util.doSomething
|
||||
|
||||
class Util {
|
||||
static doSomething(){}
|
||||
@@ -10,4 +10,4 @@ def doSomethingElse(a){}
|
||||
|
||||
doSomething()
|
||||
doSomething(2)
|
||||
Util.doSomethingElse(2)
|
||||
doSomethingElse(2)
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
print(new java.lang.Runnable() {
|
||||
public void run(java.lang.Object it) {print("foo}");}
|
||||
public void run(java.lang.Object it) {org.codehaus.groovy.runtime.DefaultGroovyMethods.print(anonymousFromMap.this, "foo}");}
|
||||
public void run() {
|
||||
this.run(null);
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
java.util.ArrayList<java.lang.Integer> list = new java.util.ArrayList<java.lang.Integer>(java.util.Arrays.asList(1, 2, 3));
|
||||
org.codehaus.groovy.runtime.DefaultGroovyMethods.each(list, new groovy.lang.Closure<java.lang.Object>(this, this) {
|
||||
public void doCall(java.lang.Integer it) {
|
||||
print(it);
|
||||
org.codehaus.groovy.runtime.DefaultGroovyMethods.print(closure.this, it);
|
||||
}
|
||||
|
||||
public void doCall() {
|
||||
|
||||
plugins/groovy/testdata/refactoring/convertGroovyToJava/file/methodParamInClosureImplicitReturn.java
Vendored
+2
-2
@@ -13,7 +13,7 @@ public void foo(int x) {final groovy.lang.Reference<java.lang.Integer> i = new g
|
||||
|
||||
org.codehaus.groovy.runtime.DefaultGroovyMethods.each(new java.util.ArrayList<java.lang.Integer>(java.util.Arrays.asList(1, 2, 3)), new groovy.lang.Closure<java.lang.Integer>(this, this) {
|
||||
public java.lang.Integer doCall(java.lang.Integer it) {
|
||||
print(i.get());
|
||||
org.codehaus.groovy.runtime.DefaultGroovyMethods.print(methodParamInClosureImplicitReturn.this, i.get());
|
||||
return setGroovyRef(i, i.get() + 1);
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ return doCall(null);
|
||||
|
||||
org.codehaus.groovy.runtime.DefaultGroovyMethods.each(new java.util.ArrayList<java.lang.Integer>(java.util.Arrays.asList(1, 2, 3)), new groovy.lang.Closure<java.lang.Integer>(this, this) {
|
||||
public java.lang.Integer doCall(java.lang.Integer it) {
|
||||
print(i.get());
|
||||
org.codehaus.groovy.runtime.DefaultGroovyMethods.print(methodParamInClosureImplicitReturn.this, i.get());
|
||||
i.set(i.get()++);
|
||||
return i.get();
|
||||
}
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ foo.set(foo.get()++);
|
||||
foo.set(foo.get() + 2);
|
||||
foo.set(foo.get() - 1);
|
||||
foo.set(4);
|
||||
print(foo.get());
|
||||
org.codehaus.groovy.runtime.DefaultGroovyMethods.print(refInClosureInScript.this, foo.get());
|
||||
}
|
||||
|
||||
public void doCall() {
|
||||
|
||||
Reference in New Issue
Block a user