mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-20 13:31:28 +07:00
Empty import list placement and comment binding (test data fixed)
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
// "Add Catch Clause(s)" "true"
|
||||
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
|
||||
// "Add Catch Clause(s)" "true"
|
||||
class CatchExceptions {
|
||||
|
||||
void foo() throws java.io.IOException, java.io.FileNotFoundException {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// "Annotate variable 'a' as @NonNls" "true"
|
||||
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
|
||||
// "Annotate variable 'a' as @NonNls" "true"
|
||||
class Foo {
|
||||
public boolean doTest() {
|
||||
@NonNls String a;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// "Annotate variable 'a' as @NonNls" "true"
|
||||
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
|
||||
// "Annotate variable 'a' as @NonNls" "true"
|
||||
class Foo {
|
||||
public void doTest() {
|
||||
@NonNls String a = new String("test");
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// "Annotate variable 'a' as @NonNls" "true"
|
||||
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
|
||||
// "Annotate variable 'a' as @NonNls" "true"
|
||||
class Foo {
|
||||
public void doTest() {
|
||||
@NonNls String a;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// "Annotate variable 'a' as @NonNls" "true"
|
||||
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
|
||||
// "Annotate variable 'a' as @NonNls" "true"
|
||||
class Foo {
|
||||
public boolean doTest() {
|
||||
@NonNls String a;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// "Annotate field 'field' as @NonNls" "true"
|
||||
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
|
||||
// "Annotate field 'field' as @NonNls" "true"
|
||||
class Foo {
|
||||
@NonNls
|
||||
String field = "text";
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// "Annotate parameter 's' as @NonNls" "true"
|
||||
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
|
||||
// "Annotate parameter 's' as @NonNls" "true"
|
||||
class Foo {
|
||||
public void doTest() {
|
||||
doStringTest("test");
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// "Annotate method 'doTest' as @NonNls" "true"
|
||||
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
|
||||
// "Annotate method 'doTest' as @NonNls" "true"
|
||||
class Foo {
|
||||
@NonNls
|
||||
public String doTest() {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// "Annotate variable 'a' as @NonNls" "true"
|
||||
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
|
||||
// "Annotate variable 'a' as @NonNls" "true"
|
||||
class Foo {
|
||||
public void doTest() {
|
||||
@NonNls String a = "test";
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// "Static Import Method 'java.lang.Integer.parseInt'" "true"
|
||||
|
||||
import static java.lang.Integer.parseInt;
|
||||
|
||||
// "Static Import Method 'java.lang.Integer.parseInt'" "true"
|
||||
public class X {
|
||||
{
|
||||
<caret>parseInt("",10);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// "Replace Implements with Static Import" "true"
|
||||
|
||||
import static I.FOO;
|
||||
|
||||
// "Replace Implements with Static Import" "true"
|
||||
public class X {
|
||||
void foo() {
|
||||
System.out.println(FOO);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// "Replace Implements with Static Import" "true"
|
||||
|
||||
import static In.FOO;
|
||||
|
||||
// "Replace Implements with Static Import" "true"
|
||||
interface In {
|
||||
int FOO = 0;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// "Replace Implements with Static Import" "true"
|
||||
|
||||
import static In.FOO;
|
||||
|
||||
// "Replace Implements with Static Import" "true"
|
||||
interface In {
|
||||
int FOO = 0;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// "Replace Implements with Static Import" "true"
|
||||
|
||||
import static In.FOO;
|
||||
|
||||
// "Replace Implements with Static Import" "true"
|
||||
interface In {
|
||||
int FOO = 0;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// "Replace Implements with Static Import" "true"
|
||||
|
||||
import static I.*;
|
||||
|
||||
// "Replace Implements with Static Import" "true"
|
||||
public class X {
|
||||
void foo() {
|
||||
System.out.println(FOO);
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
// "Replace Implements with Static Import" "true"
|
||||
|
||||
import static I.FOO;
|
||||
import static I1.BAZZ;
|
||||
|
||||
// "Replace Implements with Static Import" "true"
|
||||
public class X {
|
||||
void bar() {
|
||||
System.out.println(FOO);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// "Replace Implements with Static Import" "true"
|
||||
|
||||
import static I1.BAZZ;
|
||||
|
||||
// "Replace Implements with Static Import" "true"
|
||||
public class X implements I {
|
||||
void bar() {
|
||||
System.out.println(FOO);
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
// "Replace Implements with Static Import" "true"
|
||||
|
||||
import static I1.BAZZ;
|
||||
import static II.FOO;
|
||||
|
||||
// "Replace Implements with Static Import" "true"
|
||||
public class X {
|
||||
void bar() {
|
||||
System.out.println(FOO);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// "Replace Implements with Static Import" "true"
|
||||
|
||||
import static In.FOO;
|
||||
|
||||
// "Replace Implements with Static Import" "true"
|
||||
interface In {
|
||||
int FOO = 0;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// "Replace Implements with Static Import" "true"
|
||||
|
||||
interface I<caret>n {
|
||||
int FOO = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user