create annotation method from usage (IDEA-75910 )

This commit is contained in:
anna
2011-10-25 18:15:40 +02:00
parent 78e0fb21bb
commit ed24c9b396
11 changed files with 246 additions and 5 deletions

View File

@@ -0,0 +1,10 @@
// "Create Method 'test'" "true"
public class Test {
@Attr(test= "")
public Test() {
}
}
@interface Attr {
String test();
}

View File

@@ -0,0 +1,10 @@
// "Create Method 'test'" "true"
public class Test {
@Attr(test= {""})
public Test() {
}
}
@interface Attr {
String[] test();
}

View File

@@ -0,0 +1,9 @@
// "Create Method 'test'" "true"
public class Test {
@Attr(te<caret>st= "")
public Test() {
}
}
@interface Attr {
}

View File

@@ -0,0 +1,9 @@
// "Create Method 'test'" "true"
public class Test {
@Attr(te<caret>st= {""})
public Test() {
}
}
@interface Attr {
}

View File

@@ -0,0 +1,9 @@
// "Create Method 'test'" "false"
public class Test {
@Attr(te<caret>st= {"", 1})
public Test() {
}
}
@interface Attr {
}

View File

@@ -0,0 +1,9 @@
// "Create Method 'test'" "false"
public class Test {
@Attr(te<caret>st= {new String[]{""}})
public Test() {
}
}
@interface Attr {
}