try to find referenced member inside inner class if failed try enclosing (IDEADEV-40929)

This commit is contained in:
anna
2009-10-21 13:37:49 +04:00
parent d349ae724f
commit 58ccc4c14b
41 changed files with 465 additions and 7 deletions

View File

@@ -0,0 +1,8 @@
class Test {
/**
* This element was written by {@link Test#write(Object, <error>XmlWriter</error>)}
* method. So <code>read</code> and <code>write</code> methods should be consistent.
*/
public void read(){}
public void write(Object o, <error>XmlWriter</error> writer){}
}

View File

@@ -0,0 +1,8 @@
class Test {
/**
* @throws <warning>SomeClass</warning> asdfasd
*/
public void foo() {}
class SomeClass {}
}

View File

@@ -0,0 +1,8 @@
class Test {
/**
* @throws<EOLWarning/>
*/
public void foo() {}
class SomeClass {}
}

View File

@@ -0,0 +1,6 @@
class Test {
/**
* @throws IllegalArgumentException sometimes
*/
public void foo() {}
}

View File

@@ -0,0 +1,6 @@
class Test {
/**
* @throws java.io.EOFException sometimes
*/
public void foo() throws java.io.IOException {}
}

View File

@@ -0,0 +1,6 @@
class Test {
/**
* @throws <warning>Integer</warning> sometimes
*/
public void <warning>foo</warning>() throws Exception {}
}

View File

@@ -0,0 +1,7 @@
class Test {
/**
* <warning>@inheritDoc</warning>
*/
void a() {
}
}

View File

@@ -0,0 +1,18 @@
class A {
/**
* @return
* {@inheritDoc}
**/
int foo(){
return 0;
}
}
class B {
/**
* @return bar
**/
int foo(){
return 0;
}
}

View File

@@ -0,0 +1,6 @@
<warning>/**</warning>
* Missing dot
*/
class Test {
}

View File

@@ -0,0 +1,6 @@
/**
* Do smth @linkplain #link}.
*/
public class Test {
private void link(){}
}

View File

@@ -0,0 +1,7 @@
<warning>/**</warning>
* Do smth
* @author me.
*/
public class Test {
}

View File

@@ -0,0 +1,8 @@
class Test {
/**
* @param ppp see {@link <error>#Test</error>}
*/
public void i(int ppp) {}
class A{ public void foo() {}}
}

View File

@@ -0,0 +1,13 @@
class Test {
public void i(int ppp) {}
/**
* {@link <error>#foo(int)</error>}
* {@link #foo()}
* {@link #i(int)}
*/
class A{
public void foo() {}
}
}

View File

@@ -0,0 +1,9 @@
class MissingRetunDescription {
/**
* @return<EOLWarning/>
* @throws Exception in some case
*/
public boolean foo() throws Exception {
return false;
}
}

View File

@@ -0,0 +1,10 @@
import java.io.IOException;
class Test {
/**
* @throws IOException in some case
* <warning>@throws</warning> IOException
*/
void a() throws IOException{
throw new IOException();
}
}

View File

@@ -0,0 +1,5 @@
/**
* @param <error>myParam</error> paramDescription
*/
class Test {
}

View File

@@ -0,0 +1,7 @@
class Test {
/**
* @param<EOLWarning/>
*/
public void foo() {
}
}

View File

@@ -0,0 +1,7 @@
class Test {
/**
* @param <error>param</error> some param
*/
public void foo() {
}
}

View File

@@ -0,0 +1,7 @@
class Test {
/**
* @param param some param
*/
public void foo(int param) {
}
}

View File

@@ -0,0 +1,8 @@
class Test {
/**
* @param <error>i</error> here description goes
* @return<EOLWarning/>
*/
int d(){return 1;}
}

View File

@@ -0,0 +1,6 @@
class Test {
/**
* <warning>@return</warning> returns
*/
public void foo() {}
}

View File

@@ -0,0 +1,8 @@
class Test {
/**
* @see <error>A#someField</error>
*/
public void i() {}
class A{ public void foo() {}}
}

View File

@@ -0,0 +1,8 @@
class Test {
/**
* @see A#foo
*/
public void i() {}
class A{ public void foo() {}}
}

View File

@@ -0,0 +1,8 @@
class Test {
/**
* @see A#<EOLWarning/>
*/
public void i() {}
class A{ public void foo() {}}
}

View File

@@ -0,0 +1,8 @@
class Test {
/**
* @see <error>#perform(int)</error>
*/
public void i() {}
public void perform() {}
}

View File

@@ -0,0 +1,8 @@
class Test {
/**
* @see #perform(int)
*/
public void i() {}
public void perform(int a) {}
}

View File

@@ -0,0 +1,8 @@
class Test {
/**
* @see #perform(String, int)
*/
public void i() {}
public void perform(String s, int a) {}
}

View File

@@ -0,0 +1,6 @@
class Foo {
/**
* {<warning>@link</warning> #foo()}
*/
void foo(){}
}

View File

@@ -0,0 +1,12 @@
public class SeeConstants {
public static final String III = "";
public static final String UUU="";
/**
* @see <error>SeeConstants.III</error>
* @see SeeConstants#UUU
* @param args blah-blah
*/
public static void main(String[] args) {
}
}

View File

@@ -0,0 +1,14 @@
/**
* {<warning>@linked</warning>}
*/
public class Foo {
/**
* @param i some param {<warning>@vaaalue</warning> #field}
*/
void foo(int i) {}
/**
* {<warning>@linke</warning>}
*/
int field;
}

View File

@@ -0,0 +1,14 @@
/**
* <warning>@foo</warning>
*/
public class Foo {
/**
* <warning>@foo</warning>
*/
void foo() {}
/**
* <warning>@foo</warning>
*/
int field;
}

View File

@@ -0,0 +1,7 @@
class Test {
/**
* Value is {@value <error>#badReference</error>}
* @param ppp .
*/
public void i(int ppp) {}
}

View File

@@ -0,0 +1,6 @@
class Test {
/**
* Value is {@value }
*/
public static final int A = 1;
}

View File

@@ -0,0 +1,9 @@
class Test {
public static final int A = 1;
/**
* Value is {@value #A}
* @param ppp .
*/
public void i(int ppp) {}
}

View File

@@ -0,0 +1,8 @@
class Test {
/**
* Value is {@value <error>#g</error>}
*/
public void i() {}
public void g() {}
}

View File

@@ -0,0 +1,8 @@
class Test {
public int A = 1;
/**
* Value is {@value <error>#A</error>}
*/
public void i() {}
}

View File

@@ -0,0 +1,8 @@
class Test {
public static int A;
/**
* Value is {@value <error>#A</error>}
*/
public void i() {}
}

View File

@@ -0,0 +1,9 @@
class Test {
public static final int A = 1;
/**
* Value is {@value <error>#A</error>}
* @param ppp .
*/
public void i(int ppp) {}
}

View File

@@ -0,0 +1,9 @@
public class Test {
/**
* @see Test#test(String, int...)
* @see <error>Test#test(String, long...)</error>
**/
void foo() {}
void test (String u, int ... i) {}
}