mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
detect generated method name: allow annotations with parameters (IDEA-167480)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class Test {
|
||||
@NotNull
|
||||
@NotNull()
|
||||
public String toString() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ import java.util.Collections;
|
||||
public class GenerateToStringTest extends LightCodeInsightTestCase {
|
||||
|
||||
public void testAnnotationOnMethod() throws Exception {
|
||||
doTest(new TemplateResource("a.java", "@NotNull public String toString() {return null;}", false));
|
||||
doTest(new TemplateResource("a.java", "@NotNull() public String toString() {return null;}", false));
|
||||
}
|
||||
|
||||
public void testJavadocOnMethod() throws Exception {
|
||||
|
||||
+1
-1
@@ -87,7 +87,7 @@ public class TemplateResource implements Serializable {
|
||||
return null;
|
||||
}
|
||||
|
||||
int i = s.indexOf(token);
|
||||
int i = s.lastIndexOf(token);
|
||||
if (i == -1) {
|
||||
return s;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user