mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
testdata fixed
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ class a {
|
||||
g();
|
||||
} catch (Error e) {
|
||||
} catch (Exception e) {
|
||||
<caret><selection>e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.</selection>
|
||||
<caret><selection>e.printStackTrace();</selection>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ class a {
|
||||
g();
|
||||
// comment after
|
||||
} catch (Exception e) {
|
||||
<caret><selection>e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.</selection>
|
||||
<caret><selection>e.printStackTrace();</selection>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ class Test {
|
||||
foo();
|
||||
} catch (MyException1 e) {
|
||||
} catch (MyException2 myException2) {
|
||||
<caret><selection>myException2.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.</selection>
|
||||
<caret><selection>myException2.printStackTrace();</selection>
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -9,7 +9,7 @@ class Test {
|
||||
void m() {
|
||||
try (MyResource r = new MyResource()) {
|
||||
} catch (IOException e) {
|
||||
<selection>e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.</selection>
|
||||
<selection>e.printStackTrace();</selection>
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -13,7 +13,7 @@ class Test {
|
||||
r.doSomething();
|
||||
} catch (E1 ignore) {
|
||||
} catch (E2 e2) {
|
||||
<selection>e2.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.</selection>
|
||||
<selection>e2.printStackTrace();</selection>
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -11,9 +11,9 @@ class Test {
|
||||
void m() {
|
||||
try (MyResource r = new MyResource()) {
|
||||
} catch (E2 e2) {
|
||||
<selection>e2.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.</selection>
|
||||
<selection>e2.printStackTrace();</selection>
|
||||
} catch (E1 e1) {
|
||||
e1.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
|
||||
e1.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -12,9 +12,9 @@ class CatchExceptions {
|
||||
try {
|
||||
foo();
|
||||
} catch (FileNotFoundException e) {
|
||||
<selection>e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.</selection>
|
||||
<selection>e.printStackTrace();</selection>
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Add Method Body" "true"
|
||||
class a {
|
||||
void f() {
|
||||
<caret><selection>//To change body of created methods use File | Settings | File Templates.</selection>
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Add Method Body" "true"
|
||||
class a {
|
||||
String f() {
|
||||
<caret><selection>return null; //To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<caret><selection>return null;</selection>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Add Method Body" "true"
|
||||
class a {
|
||||
a() {
|
||||
<caret><selection>//To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<caret><selection></selection>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Add Method Body" "true"
|
||||
class a {
|
||||
String f() {
|
||||
<caret><selection>return null; //To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<caret><selection>return null;</selection>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
class Test {
|
||||
{
|
||||
((Runnable) () -> {
|
||||
//To change body of implemented methods use File | Settings | File Templates.
|
||||
|
||||
}).getClass();;
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -4,7 +4,7 @@ class Test {
|
||||
new Ru<caret>nnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
//To change body of implemented methods use File | Settings | File Templates.
|
||||
|
||||
}
|
||||
}.getClass();;
|
||||
}
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ class Test2 {
|
||||
bar(new I<Stri<caret>ng>() {
|
||||
@Override
|
||||
public String foo(List<String> list) {
|
||||
return null; //To change body of implemented methods use File | Settings | File Templates.
|
||||
return null;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
-1
@@ -5,7 +5,6 @@ class a implements Runnable {
|
||||
}
|
||||
|
||||
public void run() {
|
||||
<caret><selection>//To change body of implemented methods use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
-1
@@ -5,7 +5,6 @@ class a implements b<String> {
|
||||
}
|
||||
|
||||
public void g(b<String> t) {
|
||||
<caret><selection>//To change body of implemented methods use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
interface b<T> {
|
||||
|
||||
+1
-1
@@ -10,6 +10,6 @@ class MyCollection {
|
||||
}
|
||||
|
||||
public MyCollection(int i) {
|
||||
<selection>//To change body of created methods use File | Settings | File Templates.</selection>
|
||||
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -7,6 +7,6 @@ public class Test {
|
||||
|
||||
class MyCollection {
|
||||
public MyCollection(Test test) {
|
||||
<selection>//To change body of created methods use File | Settings | File Templates.</selection>
|
||||
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -9,7 +9,7 @@ class Outer {
|
||||
|
||||
class CreateConstructorFromUsage {
|
||||
public CreateConstructorFromUsage(String parameter) {
|
||||
<selection>//To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<selection></selection>
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -7,7 +7,7 @@ class Test {
|
||||
|
||||
class Inner {
|
||||
public Inner(String a) {
|
||||
<caret><selection>//To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<caret><selection></selection>
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
class Test extends A{
|
||||
|
||||
public Test(String a) {
|
||||
<selection>//To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<selection></selection>
|
||||
}
|
||||
|
||||
public void t() {
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ class Test {
|
||||
|
||||
class A {
|
||||
public A(Exception e) {
|
||||
<selection>//To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<selection></selection>
|
||||
}
|
||||
}
|
||||
class Ex1 extends Exception {}
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
class Test extends A{
|
||||
|
||||
public Test(String a) {
|
||||
<selection>//To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<selection></selection>
|
||||
}
|
||||
|
||||
public void t() {
|
||||
|
||||
+1
-1
@@ -3,6 +3,6 @@ public enum ReportType {
|
||||
AGING("Aging");
|
||||
|
||||
ReportType(String aging) {
|
||||
<selection>//To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<selection></selection>
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -3,6 +3,6 @@ public enum ReportType {
|
||||
AGING("Aging"),;
|
||||
|
||||
ReportType(String aging) {
|
||||
<selection>//To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<selection></selection>
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
class Test extends A{
|
||||
|
||||
public Test(String a) {
|
||||
<selection>super(a); //To change body of overridden methods use File | Settings | File Templates.</selection>
|
||||
<selection>super(a);</selection>
|
||||
}
|
||||
|
||||
public void t() {
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Create Constructor In 'Base'" "true"
|
||||
class Base {
|
||||
public Base(int i, Object o) {
|
||||
<selection>//To change body of created methods use File | Settings | File Templates.</selection>
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -5,6 +5,6 @@ public class Test {
|
||||
}
|
||||
|
||||
private void test() {
|
||||
<caret><selection>//To change body of created methods use File | Settings | File Templates.</selection>
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -5,6 +5,6 @@ public class Test {
|
||||
}
|
||||
|
||||
private void test() {
|
||||
<caret><selection>//To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<caret><selection></selection>
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -5,6 +5,6 @@ public class Test {
|
||||
}
|
||||
|
||||
private void test() {
|
||||
<caret><selection>//To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<caret><selection></selection>
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,6 +6,6 @@ public class Test {
|
||||
}
|
||||
|
||||
private void test() {
|
||||
<caret><selection>//To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<caret><selection></selection>
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,6 +6,6 @@ public class Test {
|
||||
}
|
||||
|
||||
private void test(byte[] bytes) {
|
||||
<selection>//To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<selection></selection>
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -5,6 +5,6 @@ class A {
|
||||
}
|
||||
|
||||
private String f() {
|
||||
<selection>return null; //To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<selection>return null;</selection>
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ class Sup<T> extends Base<T> {
|
||||
}
|
||||
|
||||
private static <T> Operator<T> makeOp(MetaOperator<T> mop) {
|
||||
<selection>return null; //To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<selection>return null;</selection>
|
||||
}
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -5,6 +5,6 @@ public class Test {
|
||||
}
|
||||
|
||||
private <T extends String> void bar(T t1, T t2) {
|
||||
<caret><selection>//To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<caret><selection></selection>
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -5,6 +5,6 @@ public class Test {
|
||||
}
|
||||
|
||||
private boolean test() {
|
||||
<caret><selection>return false; //To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<caret><selection>return false;</selection>
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -8,6 +8,6 @@ class BrokenCreateMethod {
|
||||
}
|
||||
|
||||
private Map<String, String[]> toMulti(Map<String, String> bar) {
|
||||
<selection>return null; //To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<selection>return null;</selection>
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -5,6 +5,6 @@ class A {
|
||||
}
|
||||
|
||||
private void f(Object p0) {
|
||||
<caret><selection>//To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<caret><selection></selection>
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ class A {
|
||||
}
|
||||
|
||||
private void f(Object foo) {
|
||||
<selection>//To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<selection></selection>
|
||||
}
|
||||
|
||||
static int foo() {
|
||||
|
||||
+1
-1
@@ -9,6 +9,6 @@ class T<R, D> {
|
||||
|
||||
|
||||
public R foo(Test test, D data) {
|
||||
<selection>return null; //To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<selection>return null;</selection>
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -5,7 +5,7 @@ class A {
|
||||
}
|
||||
|
||||
private <T> B<T> f() {
|
||||
<selection>return null; //To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<selection>return null;</selection>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -6,6 +6,6 @@ public class CreateMethodTest {
|
||||
}
|
||||
|
||||
private <T> T f(T t) {
|
||||
<selection>return null; //To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<selection>return null;</selection>
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -6,6 +6,6 @@ class A {
|
||||
}
|
||||
|
||||
private String bar() {
|
||||
<caret><selection>return null; //To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<caret><selection>return null;</selection>
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -15,6 +15,6 @@ class Bug {
|
||||
}
|
||||
|
||||
private void run() {
|
||||
<selection>//To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<selection></selection>
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -8,7 +8,7 @@ public class Test {
|
||||
}
|
||||
|
||||
private boolean someMethod(Object o) {
|
||||
<caret><selection>return false; //To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<caret><selection>return false;</selection>
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
+1
-1
@@ -10,6 +10,6 @@ class A {
|
||||
}
|
||||
class B {
|
||||
public static void f(Runnable runnable) {
|
||||
<caret><selection>//To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<caret><selection></selection>
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,6 +6,6 @@ class A implements I {
|
||||
}
|
||||
|
||||
private static void f() {
|
||||
<selection>//To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<selection></selection>
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -5,7 +5,7 @@ public class A {
|
||||
}
|
||||
|
||||
private static int f() {
|
||||
<caret><selection>return 0; //To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<caret><selection>return 0;</selection>
|
||||
}
|
||||
|
||||
public A(int i) {
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Create Method 'get'" "true"
|
||||
class W<T> {
|
||||
public T get(T s) {
|
||||
<selection>return null; //To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<selection>return null;</selection>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Create Method 'get'" "true"
|
||||
class Generic<T> {
|
||||
public T get() {
|
||||
<caret><selection>return null; //To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<caret><selection>return null;</selection>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ interface Int<T> {
|
||||
|
||||
class A1<T> implements Int<T> {
|
||||
public void foo(Int<T> c) {
|
||||
<caret><selection>//To change body of created methods use File | Settings | File Templates.</selection>
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ class R implements Comparable<R> {
|
||||
|
||||
class A1<T> {
|
||||
public T foo() {
|
||||
<caret><selection>return null; //To change body of created methods use File | Settings | File Templates.</selection>
|
||||
<caret><selection>return null;</selection>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ public class Seq<T> {
|
||||
public Seq() {}
|
||||
|
||||
public Seq(T x, Seq<T> xs) {
|
||||
<selection>//To change body of created methods use File | Settings | File Templates.</selection>
|
||||
|
||||
}
|
||||
|
||||
static <T> Seq<T> nil () {
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ public class IDEA100452 {
|
||||
|
||||
static class MatchOp<H> {
|
||||
public MatchOp(int i, MatchKind matchKind, Supplier<BooleanTerminalSink<H>> s) {
|
||||
//To change body of created methods use File | Settings | File Templates.
|
||||
|
||||
}
|
||||
|
||||
static enum MatchKind {}
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ public class IDEA100452 {
|
||||
|
||||
static class MatchOp<H> {
|
||||
public MatchOp(int i, MatchKind matchKind, Supplier<BooleanTerminalSink<H>> s) {
|
||||
//To change body of created methods use File | Settings | File Templates.
|
||||
|
||||
}
|
||||
|
||||
static enum MatchKind {}
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ class CCCC {
|
||||
private final static Comparator<String> <caret>TT = new Comparator<String>() {
|
||||
@Override
|
||||
public int compare(String o1, String o2) {
|
||||
return 0; //To change body of implemented methods use File | Settings | File Templates.
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ class CCCC {
|
||||
private final static Comparator <caret>TT = new Comparator<String>() {
|
||||
@Override
|
||||
public int compare(String o1, String o2) {
|
||||
return 0; //To change body of implemented methods use File | Settings | File Templates.
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
-1
@@ -3,7 +3,6 @@ public class X {
|
||||
<caret>final int fi;
|
||||
|
||||
public X(String s) {
|
||||
//To change body of created methods use File | Settings | File Templates.
|
||||
fi = 0;
|
||||
}
|
||||
|
||||
|
||||
-1
@@ -6,6 +6,5 @@ abstract class Test {
|
||||
class TImple extends Test {
|
||||
@Override
|
||||
void foo() {
|
||||
<selection>//To change body of implemented methods use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -6,6 +6,6 @@ class Test {
|
||||
class TImple extends Test {
|
||||
@Override
|
||||
protected void foo() {
|
||||
<selection>super.foo(); //To change body of overridden methods use File | Settings | File Templates.</selection>
|
||||
<selection>super.foo();</selection>
|
||||
}
|
||||
}
|
||||
-1
@@ -8,6 +8,5 @@ abstract class Test {
|
||||
class TImple extends Test {
|
||||
@Override
|
||||
public void foo(@Nullable String a) {
|
||||
<selection>//To change body of implemented methods use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -11,7 +11,7 @@ class C {
|
||||
try (MyResource r = new MyResource()) {
|
||||
}
|
||||
} catch (E1 e1) {
|
||||
<selection>e1.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.</selection>
|
||||
<selection>e1.printStackTrace();</selection>
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -9,7 +9,7 @@ public class ExTest {
|
||||
try {
|
||||
return ExTest.maybeThrow(t);
|
||||
} catch (Ex ex) {
|
||||
<selection>ex.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.</selection>
|
||||
<selection>ex.printStackTrace();</selection>
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user