mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 00:20:55 +07:00
try to find referenced member inside inner class if failed try enclosing (IDEADEV-40929)
This commit is contained in:
@@ -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){}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
class Test {
|
||||
/**
|
||||
* @throws <warning>SomeClass</warning> asdfasd
|
||||
*/
|
||||
public void foo() {}
|
||||
|
||||
class SomeClass {}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
class Test {
|
||||
/**
|
||||
* @throws<EOLWarning/>
|
||||
*/
|
||||
public void foo() {}
|
||||
|
||||
class SomeClass {}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
class Test {
|
||||
/**
|
||||
* @throws IllegalArgumentException sometimes
|
||||
*/
|
||||
public void foo() {}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
class Test {
|
||||
/**
|
||||
* @throws java.io.EOFException sometimes
|
||||
*/
|
||||
public void foo() throws java.io.IOException {}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
class Test {
|
||||
/**
|
||||
* @throws <warning>Integer</warning> sometimes
|
||||
*/
|
||||
public void <warning>foo</warning>() throws Exception {}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
/**
|
||||
* <warning>@inheritDoc</warning>
|
||||
*/
|
||||
void a() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
class A {
|
||||
/**
|
||||
* @return
|
||||
* {@inheritDoc}
|
||||
**/
|
||||
int foo(){
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
class B {
|
||||
/**
|
||||
* @return bar
|
||||
**/
|
||||
int foo(){
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
<warning>/**</warning>
|
||||
* Missing dot
|
||||
*/
|
||||
class Test {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
/**
|
||||
* Do smth @linkplain #link}.
|
||||
*/
|
||||
public class Test {
|
||||
private void link(){}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<warning>/**</warning>
|
||||
* Do smth
|
||||
* @author me.
|
||||
*/
|
||||
public class Test {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
class Test {
|
||||
/**
|
||||
* @param ppp see {@link <error>#Test</error>}
|
||||
*/
|
||||
public void i(int ppp) {}
|
||||
|
||||
class A{ public void foo() {}}
|
||||
}
|
||||
@@ -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() {}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
class MissingRetunDescription {
|
||||
/**
|
||||
* @return<EOLWarning/>
|
||||
* @throws Exception in some case
|
||||
*/
|
||||
public boolean foo() throws Exception {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
/**
|
||||
* @param <error>myParam</error> paramDescription
|
||||
*/
|
||||
class Test {
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
/**
|
||||
* @param<EOLWarning/>
|
||||
*/
|
||||
public void foo() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
/**
|
||||
* @param <error>param</error> some param
|
||||
*/
|
||||
public void foo() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
/**
|
||||
* @param param some param
|
||||
*/
|
||||
public void foo(int param) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
class Test {
|
||||
|
||||
/**
|
||||
* @param <error>i</error> here description goes
|
||||
* @return<EOLWarning/>
|
||||
*/
|
||||
int d(){return 1;}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
class Test {
|
||||
/**
|
||||
* <warning>@return</warning> returns
|
||||
*/
|
||||
public void foo() {}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
class Test {
|
||||
/**
|
||||
* @see <error>A#someField</error>
|
||||
*/
|
||||
public void i() {}
|
||||
|
||||
class A{ public void foo() {}}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
class Test {
|
||||
/**
|
||||
* @see A#foo
|
||||
*/
|
||||
public void i() {}
|
||||
|
||||
class A{ public void foo() {}}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
class Test {
|
||||
/**
|
||||
* @see A#<EOLWarning/>
|
||||
*/
|
||||
public void i() {}
|
||||
|
||||
class A{ public void foo() {}}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
class Test {
|
||||
/**
|
||||
* @see <error>#perform(int)</error>
|
||||
*/
|
||||
public void i() {}
|
||||
|
||||
public void perform() {}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
class Test {
|
||||
/**
|
||||
* @see #perform(int)
|
||||
*/
|
||||
public void i() {}
|
||||
|
||||
public void perform(int a) {}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
class Test {
|
||||
/**
|
||||
* @see #perform(String, int)
|
||||
*/
|
||||
public void i() {}
|
||||
|
||||
public void perform(String s, int a) {}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
class Foo {
|
||||
/**
|
||||
* {<warning>@link</warning> #foo()}
|
||||
*/
|
||||
void foo(){}
|
||||
}
|
||||
@@ -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) {
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* <warning>@foo</warning>
|
||||
*/
|
||||
public class Foo {
|
||||
/**
|
||||
* <warning>@foo</warning>
|
||||
*/
|
||||
void foo() {}
|
||||
|
||||
/**
|
||||
* <warning>@foo</warning>
|
||||
*/
|
||||
int field;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
/**
|
||||
* Value is {@value <error>#badReference</error>}
|
||||
* @param ppp .
|
||||
*/
|
||||
public void i(int ppp) {}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
class Test {
|
||||
/**
|
||||
* Value is {@value }
|
||||
*/
|
||||
public static final int A = 1;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
class Test {
|
||||
public static final int A = 1;
|
||||
|
||||
/**
|
||||
* Value is {@value #A}
|
||||
* @param ppp .
|
||||
*/
|
||||
public void i(int ppp) {}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
class Test {
|
||||
/**
|
||||
* Value is {@value <error>#g</error>}
|
||||
*/
|
||||
public void i() {}
|
||||
|
||||
public void g() {}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
class Test {
|
||||
public int A = 1;
|
||||
|
||||
/**
|
||||
* Value is {@value <error>#A</error>}
|
||||
*/
|
||||
public void i() {}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
class Test {
|
||||
public static int A;
|
||||
|
||||
/**
|
||||
* Value is {@value <error>#A</error>}
|
||||
*/
|
||||
public void i() {}
|
||||
}
|
||||
@@ -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) {}
|
||||
}
|
||||
@@ -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) {}
|
||||
}
|
||||
Reference in New Issue
Block a user