mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Groovy: fix testdata (36a7a0702d)
This commit is contained in:
+2
-2
@@ -155,8 +155,8 @@ Runnable r = new Run<caret>
|
||||
''', '''\
|
||||
Runnable r = new Runnable() {
|
||||
@Override
|
||||
void run() {
|
||||
<caret><selection>//To change body of implemented methods use File | Settings | File Templates.</selection>
|
||||
void run() {<caret><selection></selection>
|
||||
|
||||
}
|
||||
}
|
||||
''')
|
||||
|
||||
+6
-6
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -37,7 +37,7 @@ class Test {<caret>}
|
||||
class Test {
|
||||
@Override
|
||||
boolean equals(Object obj) {
|
||||
return super.equals(obj) //To change body of overridden methods use File | Settings | File Templates.
|
||||
return super.equals(obj)
|
||||
}
|
||||
}
|
||||
"""
|
||||
@@ -51,7 +51,7 @@ class Test {<caret>}
|
||||
myFixture.checkResult """
|
||||
class Test {
|
||||
Test() {
|
||||
super() //To change body of overridden methods use File | Settings | File Templates.
|
||||
super()
|
||||
}
|
||||
}
|
||||
"""
|
||||
@@ -73,7 +73,7 @@ class Test {<caret>}
|
||||
class Test {
|
||||
@Override
|
||||
def foo() {
|
||||
return super.foo() //To change body of overridden methods use File | Settings | File Templates.
|
||||
return super.foo()
|
||||
}
|
||||
}
|
||||
"""
|
||||
@@ -93,7 +93,7 @@ class Test<T> extends Base<T> {<caret>}
|
||||
class Test<T> extends Base<T> {
|
||||
@Override
|
||||
def <T> T[] toArray(T[] t) {
|
||||
return super.toArray(t) //To change body of overridden methods use File | Settings | File Templates.
|
||||
return super.toArray(t)
|
||||
}
|
||||
}
|
||||
"""
|
||||
@@ -117,7 +117,7 @@ class X implements I {
|
||||
|
||||
@Override
|
||||
void foo() throws RuntimeException {
|
||||
//To change body of implemented methods use File | Settings | File Templates.
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
class Foo implements Comparable<Foo> {
|
||||
|
||||
def Foo next() {
|
||||
return null //To change body of implemented methods use File | Settings | File Templates.
|
||||
return null
|
||||
}
|
||||
|
||||
def Foo previous() {
|
||||
return null //To change body of implemented methods use File | Settings | File Templates.
|
||||
return null
|
||||
}
|
||||
|
||||
@Override
|
||||
int compareTo(Foo o) {
|
||||
<selection>return 0 //To change body of implemented methods use File | Settings | File Templates.</selection>
|
||||
<selection>return 0</selection>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ class Foo implements Comparable<Foo> {
|
||||
}
|
||||
|
||||
def Foo next() {
|
||||
return null //To change body of implemented methods use File | Settings | File Templates.
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ class Foo implements Comparable<Foo> {
|
||||
|
||||
@Override
|
||||
int compareTo(Foo o) {
|
||||
<selection>return 0 //To change body of implemented methods use File | Settings | File Templates.</selection>
|
||||
<selection>return 0</selection>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ class Foo {
|
||||
try {
|
||||
new AddException().foo();
|
||||
} catch (java.io.IOException e) {
|
||||
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user