Empty import list placement and comment binding (test data fixed)

This commit is contained in:
Roman Shevchenko
2010-08-09 17:36:47 +04:00
parent 88b087a894
commit 9dd2505489
20 changed files with 19 additions and 39 deletions

View File

@@ -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 {

View File

@@ -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;

View File

@@ -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");

View File

@@ -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;

View File

@@ -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;

View File

@@ -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";

View File

@@ -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");

View File

@@ -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() {

View File

@@ -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";

View File

@@ -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);

View File

@@ -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);

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);

View File

@@ -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;
}

View File

@@ -1,5 +1,4 @@
// "Replace Implements with Static Import" "true"
interface I<caret>n {
int FOO = 0;
}