8280534: Enable compile-time doclint reference checking
Reviewed-by: serb, naoto, mchung, lancea, iris
This commit is contained in:
parent
4191b2b9b9
commit
4dbebb62aa
@ -23,7 +23,7 @@
|
||||
# questions.
|
||||
#
|
||||
|
||||
DOCLINT += -Xdoclint:all/protected,-reference \
|
||||
DOCLINT += -Xdoclint:all/protected \
|
||||
'-Xdoclint/package:java.*,javax.*'
|
||||
JAVAC_FLAGS += -XDstringConcat=inline
|
||||
COPY += .icu .dat .spp .nrm content-types.properties \
|
||||
|
@ -23,6 +23,6 @@
|
||||
# questions.
|
||||
#
|
||||
|
||||
DOCLINT += -Xdoclint:all/protected,-reference \
|
||||
DOCLINT += -Xdoclint:all/protected \
|
||||
'-Xdoclint/package:java.*,javax.*'
|
||||
COPY += flavormap.properties
|
||||
|
@ -23,5 +23,5 @@
|
||||
# questions.
|
||||
#
|
||||
|
||||
DOCLINT += -Xdoclint:all/protected,-reference \
|
||||
DOCLINT += -Xdoclint:all/protected \
|
||||
'-Xdoclint/package:java.*,javax.*'
|
||||
|
@ -23,5 +23,5 @@
|
||||
# questions.
|
||||
#
|
||||
|
||||
DOCLINT += -Xdoclint:all/protected,-reference \
|
||||
DOCLINT += -Xdoclint:all/protected \
|
||||
'-Xdoclint/package:java.*,javax.*'
|
||||
|
@ -39,6 +39,7 @@ package java.io;
|
||||
* @see java.io.File#list(java.io.FilenameFilter)
|
||||
* @since 1.0
|
||||
*/
|
||||
@SuppressWarnings("doclint:reference") // cross-module links
|
||||
@FunctionalInterface
|
||||
public interface FilenameFilter {
|
||||
/**
|
||||
|
@ -10305,6 +10305,7 @@ class Character implements java.io.Serializable, Comparable<Character>, Constabl
|
||||
* @see java.compiler/javax.lang.model.SourceVersion#isIdentifier(CharSequence)
|
||||
* @since 1.1
|
||||
*/
|
||||
@SuppressWarnings("doclint:reference") // cross-module links
|
||||
public static boolean isJavaIdentifierStart(char ch) {
|
||||
return isJavaIdentifierStart((int)ch);
|
||||
}
|
||||
@ -10334,6 +10335,7 @@ class Character implements java.io.Serializable, Comparable<Character>, Constabl
|
||||
* @see java.compiler/javax.lang.model.SourceVersion#isIdentifier(CharSequence)
|
||||
* @since 1.5
|
||||
*/
|
||||
@SuppressWarnings("doclint:reference") // cross-module links
|
||||
public static boolean isJavaIdentifierStart(int codePoint) {
|
||||
return CharacterData.of(codePoint).isJavaIdentifierStart(codePoint);
|
||||
}
|
||||
@ -10371,6 +10373,7 @@ class Character implements java.io.Serializable, Comparable<Character>, Constabl
|
||||
* @see java.compiler/javax.lang.model.SourceVersion#isIdentifier(CharSequence)
|
||||
* @since 1.1
|
||||
*/
|
||||
@SuppressWarnings("doclint:reference") // cross-module links
|
||||
public static boolean isJavaIdentifierPart(char ch) {
|
||||
return isJavaIdentifierPart((int)ch);
|
||||
}
|
||||
@ -10404,6 +10407,7 @@ class Character implements java.io.Serializable, Comparable<Character>, Constabl
|
||||
* @see java.compiler/javax.lang.model.SourceVersion#isIdentifier(CharSequence)
|
||||
* @since 1.5
|
||||
*/
|
||||
@SuppressWarnings("doclint:reference") // cross-module links
|
||||
public static boolean isJavaIdentifierPart(int codePoint) {
|
||||
return CharacterData.of(codePoint).isJavaIdentifierPart(codePoint);
|
||||
}
|
||||
|
@ -1240,6 +1240,7 @@ public final class System {
|
||||
* @see java.lang.System.LoggerFinder
|
||||
* @see java.lang.System.Logger
|
||||
*/
|
||||
@SuppressWarnings("doclint:reference") // cross-module links
|
||||
public enum Level {
|
||||
|
||||
// for convenience, we're reusing java.util.logging.Level int values
|
||||
@ -1600,6 +1601,7 @@ public final class System {
|
||||
*
|
||||
* @since 9
|
||||
*/
|
||||
@SuppressWarnings("doclint:reference") // cross-module links
|
||||
public abstract static class LoggerFinder {
|
||||
/**
|
||||
* The {@code RuntimePermission("loggerFinder")} is
|
||||
|
@ -154,7 +154,8 @@ public class MethodHandleProxies {
|
||||
// entry points, must be covered by hand-written or automatically
|
||||
// generated adapter classes.
|
||||
//
|
||||
@SuppressWarnings("removal")
|
||||
@SuppressWarnings({"removal",
|
||||
"doclint:reference"}) // cross-module links
|
||||
@CallerSensitive
|
||||
public static <T> T asInterfaceInstance(final Class<T> intfc, final MethodHandle target) {
|
||||
if (!intfc.isInterface() || !Modifier.isPublic(intfc.getModifiers()))
|
||||
|
@ -2105,6 +2105,7 @@ public class MethodHandles {
|
||||
* @jvms 5.5 Initialization
|
||||
* @jls 12.7 Unloading of Classes and Interfaces
|
||||
*/
|
||||
@SuppressWarnings("doclint:reference") // cross-module links
|
||||
public Lookup defineHiddenClass(byte[] bytes, boolean initialize, ClassOption... options)
|
||||
throws IllegalAccessException
|
||||
{
|
||||
|
@ -157,4 +157,5 @@
|
||||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
@SuppressWarnings("doclint:reference") // cross-module links
|
||||
package java.net;
|
||||
|
@ -75,7 +75,7 @@ import java.util.Set;
|
||||
* @see Annotation
|
||||
* @since 1.2
|
||||
*/
|
||||
|
||||
@SuppressWarnings("doclint:reference") // cross-module links
|
||||
public interface AttributedCharacterIterator extends CharacterIterator {
|
||||
|
||||
/**
|
||||
|
@ -125,6 +125,7 @@ public final class Bidi {
|
||||
* @see java.desktop/java.awt.font.TextAttribute#NUMERIC_SHAPING
|
||||
* @see java.desktop/java.awt.font.TextAttribute#RUN_DIRECTION
|
||||
*/
|
||||
@SuppressWarnings("doclint:reference") // cross-module links
|
||||
public Bidi(AttributedCharacterIterator paragraph) {
|
||||
if (paragraph == null) {
|
||||
throw new IllegalArgumentException("paragraph is null");
|
||||
|
@ -73,6 +73,7 @@ package java.util;
|
||||
* {@link java.util.concurrent.Flow} API.
|
||||
*/
|
||||
@Deprecated(since="9")
|
||||
@SuppressWarnings("doclint:reference") // cross-module links
|
||||
public class Observable {
|
||||
private boolean changed = false;
|
||||
private Vector<Observer> obs;
|
||||
|
@ -1647,6 +1647,7 @@ public final class ServiceLoader<S>
|
||||
* @revised 9
|
||||
*/
|
||||
@CallerSensitive
|
||||
@SuppressWarnings("doclint:reference") // cross-module links
|
||||
public static <S> ServiceLoader<S> load(Class<S> service,
|
||||
ClassLoader loader)
|
||||
{
|
||||
|
@ -47,6 +47,7 @@ import sun.datatransfer.DataFlavorUtil;
|
||||
* @see java.desktop/java.awt.Toolkit#getSystemSelection
|
||||
* @since 1.1
|
||||
*/
|
||||
@SuppressWarnings("doclint:reference") // cross-module links
|
||||
public class Clipboard {
|
||||
|
||||
String name;
|
||||
|
@ -2563,6 +2563,7 @@ public class LogManager {
|
||||
*
|
||||
* @since 1.5
|
||||
*/
|
||||
@SuppressWarnings("doclint:reference")
|
||||
public static final String LOGGING_MXBEAN_NAME
|
||||
= "java.util.logging:type=Logging";
|
||||
|
||||
@ -2581,6 +2582,7 @@ public class LogManager {
|
||||
* @since 1.5
|
||||
*/
|
||||
@Deprecated(since="9")
|
||||
@SuppressWarnings("doclint:reference")
|
||||
public static synchronized LoggingMXBean getLoggingMXBean() {
|
||||
return Logging.getInstance();
|
||||
}
|
||||
|
@ -52,6 +52,7 @@ package java.util.logging;
|
||||
* @see java.management/java.lang.management.PlatformLoggingMXBean
|
||||
*/
|
||||
@Deprecated(since="9")
|
||||
@SuppressWarnings("doclint:reference")
|
||||
public interface LoggingMXBean {
|
||||
|
||||
/**
|
||||
|
@ -246,7 +246,8 @@ import sun.management.spi.PlatformMBeanProvider.PlatformComponent;
|
||||
* @author Mandy Chung
|
||||
* @since 1.5
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
@SuppressWarnings({"removal",
|
||||
"doclint:reference"}) // cross-module links
|
||||
public class ManagementFactory {
|
||||
// A class with only static fields and methods.
|
||||
private ManagementFactory() {};
|
||||
|
@ -46,6 +46,7 @@ package java.lang.management;
|
||||
*
|
||||
* @since 1.7
|
||||
*/
|
||||
@SuppressWarnings("doclint:reference") // cross-module links
|
||||
public interface PlatformLoggingMXBean extends PlatformManagedObject {
|
||||
|
||||
/**
|
||||
|
@ -41,6 +41,7 @@ package javax.management.remote;
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
@SuppressWarnings("doclint:reference") // cross-module links
|
||||
public interface JMXAddressable {
|
||||
/**
|
||||
* <p>The address of this object.</p>
|
||||
|
@ -41,6 +41,7 @@ import javax.management.MBeanServer;
|
||||
* @see java.rmi/java.rmi.ServerError
|
||||
* @since 1.5
|
||||
*/
|
||||
@SuppressWarnings("doclint:reference") // cross-module links
|
||||
public class JMXServerErrorException extends IOException {
|
||||
|
||||
private static final long serialVersionUID = 3996732239558744666L;
|
||||
|
Loading…
x
Reference in New Issue
Block a user