mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
change groovy/gsp default indents 2
This commit is contained in:
+6
-6
@@ -59,12 +59,12 @@ class Foo extends Super {
|
||||
Object d
|
||||
final e
|
||||
|
||||
Foo(a, int b, int c, Object d, e) {
|
||||
super(a, b)
|
||||
this.c = c
|
||||
this.d = d
|
||||
this.e = e
|
||||
}
|
||||
Foo(a, int b, int c, Object d, e) {
|
||||
super(a, b)
|
||||
this.c = c
|
||||
this.d = d
|
||||
this.e = e
|
||||
}
|
||||
}
|
||||
"""
|
||||
}
|
||||
|
||||
+13
-13
@@ -23,10 +23,10 @@ class Test {<caret>}
|
||||
generateImplementation(findMethod(Object.name, "equals"))
|
||||
myFixture.checkResult """
|
||||
class Test {
|
||||
@Override
|
||||
boolean equals(Object obj) {
|
||||
return super.equals(obj) //To change body of overridden methods use File | Settings | File Templates.
|
||||
}
|
||||
@Override
|
||||
boolean equals(Object obj) {
|
||||
return super.equals(obj) //To change body of overridden methods use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
"""
|
||||
}
|
||||
@@ -38,9 +38,9 @@ class Test {<caret>}
|
||||
generateImplementation(findMethod(Object.name, "Object"))
|
||||
myFixture.checkResult """
|
||||
class Test {
|
||||
def Test() {
|
||||
super() //To change body of overridden methods use File | Settings | File Templates.
|
||||
}
|
||||
def Test() {
|
||||
super() //To change body of overridden methods use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
"""
|
||||
}
|
||||
@@ -59,9 +59,9 @@ class Test {<caret>}
|
||||
generateImplementation(findMethod("Foo", "foo"))
|
||||
myFixture.checkResult """
|
||||
class Test {
|
||||
@Override def foo() {
|
||||
return super.foo() //To change body of overridden methods use File | Settings | File Templates.
|
||||
}
|
||||
@Override def foo() {
|
||||
return super.foo() //To change body of overridden methods use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
"""
|
||||
}
|
||||
@@ -78,9 +78,9 @@ class Test<T> extends Base<T> {<caret>}
|
||||
generateImplementation(findMethod("Base", "toArray"))
|
||||
myFixture.checkResult """
|
||||
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.
|
||||
}
|
||||
@Override def <T> T[] toArray(T[] t) {
|
||||
return super.toArray(t) //To change body of overridden methods use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
"""
|
||||
}
|
||||
|
||||
+6
-6
@@ -158,11 +158,11 @@ class A {
|
||||
|
||||
String ndame;
|
||||
void foo() {
|
||||
print name
|
||||
print name
|
||||
|
||||
print getName()
|
||||
print getName()
|
||||
|
||||
setName("a")
|
||||
setName("a")
|
||||
}
|
||||
}
|
||||
}""")
|
||||
@@ -177,11 +177,11 @@ class A {
|
||||
|
||||
String ndame;
|
||||
void foo() {
|
||||
print A.this.ndame
|
||||
print A.this.ndame
|
||||
|
||||
print A.this.getNdame()
|
||||
print A.this.getNdame()
|
||||
|
||||
A.this.setNdame("a")
|
||||
A.this.setNdame("a")
|
||||
}
|
||||
}
|
||||
}"""
|
||||
|
||||
@@ -3,6 +3,6 @@ def c = {
|
||||
}
|
||||
-----
|
||||
def c = {
|
||||
def newName ->
|
||||
newName
|
||||
def newName ->
|
||||
newName
|
||||
}
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
<caret>class A {
|
||||
class A {
|
||||
def foo() {
|
||||
print Other.CONST
|
||||
print Other.<selection>CONST</selection>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
<caret>enum Planet {
|
||||
enum Planet {
|
||||
MERCURY(3.303e+23, 2.4397e6),
|
||||
VENUS(4.869e+24, 6.0518e6),
|
||||
protected static final CONST = 6.67300E-11
|
||||
@@ -12,6 +12,6 @@
|
||||
|
||||
double surfaceGravity() {
|
||||
// introduce a constant from the below numeric literal
|
||||
return CONST * mass / (radius * radius);
|
||||
return <selection>CONST</selection> * mass / (radius * radius);
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
<caret>interface MyInterface {
|
||||
interface MyInterface {
|
||||
protected CONST = 45 + 6
|
||||
|
||||
def foo(String s);
|
||||
}
|
||||
|
||||
def a = MyInterface.CONST;
|
||||
def a = MyInterface.<selection>CONST</selection>;
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
<caret>class A {
|
||||
class A {
|
||||
public static final String CONST = "a"
|
||||
|
||||
def foo() {
|
||||
print CONST
|
||||
print <selection>CONST</selection>
|
||||
}
|
||||
|
||||
def bar() {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<caret>class Foo {
|
||||
class Foo {
|
||||
public static final String CONST = "text"
|
||||
|
||||
def foo() {
|
||||
print CONST;
|
||||
print <selection>CONST</selection>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user