使用Java8,javadoc检查变得更加严格.常见的解决方案是禁用严格的javadoc检查.不过,我开始尝试修复某些项目中的错误.
但有一个错误我没有修复.
相应的课程:
package foo;
import com.google.gwt.user.client.ui.TextArea;
[...]
public class MyClass {
[...]
/**
* @see TextArea#getValue()
*/
public String getValue() {
[...]
}
/**
* @see TextArea#setValue(String value)
*/
public void setValue(String value) {
[...]
}
/**
* @see TextArea#setValue(String, boolean)
*/
public void setValue(String value, boolean fireEvents) {
[...]
}
}
Run Code Online (Sandbox Code Playgroud)
并且错误消息:
[ERROR] ...\MyClass.java:44: error: reference not found
[ERROR] * @see TextArea#setValue(String value)
[ERROR] ^
[ERROR] ...\MyClass.java:51: error: reference not found
[ERROR] * @see TextArea#setValue(String, boolean)
Run Code Online (Sandbox Code Playgroud)
该错误消息指出它无法找到TextArea …