8278175: Enable all doclint warnings for build of java.desktop

Reviewed-by: erikj, prr
This commit is contained in:
Joe Darcy 2021-12-04 02:12:35 +00:00
parent 24e16ac637
commit 02ee337ae0
20 changed files with 34 additions and 18 deletions

View file

@ -1,5 +1,5 @@
#
# Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@ -23,7 +23,7 @@
# questions.
#
DOCLINT += -Xdoclint:all/protected,-reference,-missing \
DOCLINT += -Xdoclint:all/protected \
'-Xdoclint/package:java.*,javax.*'
COPY += .gif .png .wav .txt .xml .css .pf
CLEAN += iio-plugin.properties cursors.properties

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -33,6 +33,7 @@ package java.awt;
* @author Michael Martak
* @since 1.4
*/
@SuppressWarnings("doclint:missing")
public class BufferCapabilities implements Cloneable {
private ImageCapabilities frontCaps;

View file

@ -214,6 +214,7 @@ import static sun.java2d.pipe.hw.ExtendedBufferCapabilities.VSyncType.VSYNC_ON;
* @author Arthur van Hoff
* @author Sami Shaio
*/
@SuppressWarnings("doclint:missing")
public abstract class Component implements ImageObserver, MenuContainer,
Serializable
{

View file

@ -151,6 +151,7 @@ import sun.awt.AWTAccessor;
*
* @since 1.1
*/
@SuppressWarnings("doclint:missing")
public class KeyEvent extends InputEvent {
/**

View file

@ -54,7 +54,7 @@ import java.util.TooManyListenersException;
* @author Laurence P. G. Cable
* @since 1.2
*/
@SuppressWarnings("doclint:missing")
public class BeanContextServicesSupport extends BeanContextSupport
implements BeanContextServices {

View file

@ -59,6 +59,7 @@ import java.util.Map;
* @author Laurence P. G. Cable
* @since 1.2
*/
@SuppressWarnings("doclint:missing")
public class BeanContextSupport extends BeanContextChildSupport
implements BeanContext,
Serializable,

View file

@ -50,7 +50,8 @@ import javax.swing.event.*;
* @see ListSelectionModel
* @since 1.2
*/
@SuppressWarnings("serial") // Same-version serialization only
@SuppressWarnings({"serial", // Same-version serialization only
"doclint:missing"})
public class DefaultListSelectionModel implements ListSelectionModel, Cloneable, Serializable
{
private static final int MIN = -1;

View file

@ -99,7 +99,8 @@ import javax.accessibility.AccessibleContext;
@Deprecated(since = "9", forRemoval = true)
@JavaBean(defaultProperty = "JMenuBar", description = "Swing's Applet subclass.")
@SwingContainer(delegate = "getContentPane")
@SuppressWarnings({"serial", "removal"}) // Same-version serialization only
@SuppressWarnings({"serial", "removal", // Same-version serialization only
"doclint:missing"})
public class JApplet extends Applet implements Accessible,
RootPaneContainer,
TransferHandler.HasGetTransferHandler

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -95,7 +95,8 @@ import javax.accessibility.*;
*/
@JavaBean(defaultProperty = "JMenuBar", description = "A toplevel window for creating dialog boxes.")
@SwingContainer(delegate = "getContentPane")
@SuppressWarnings("serial") // Same-version serialization only
@SuppressWarnings({"serial", // Same-version serialization only
"doclint:missing"})
public class JDialog extends Dialog implements WindowConstants,
Accessible,
RootPaneContainer,

View file

@ -83,7 +83,8 @@ import javax.swing.plaf.ScrollBarUI;
*/
@JavaBean(defaultProperty = "UI", description = "A component that helps determine the visible content range of an area.")
@SwingContainer(false)
@SuppressWarnings("serial") // Same-version serialization only
@SuppressWarnings({"serial", // Same-version serialization only
"doclint:missing"})
public class JScrollBar extends JComponent implements Adjustable, Accessible
{
/**

View file

@ -65,7 +65,7 @@ import sun.awt.shell.ShellFolder;
// PENDING(jeff) - need to provide a specification for
// how Mac/OS2/BeOS/etc file systems can modify FileSystemView
// to handle their particular type of file system.
@SuppressWarnings("doclint:missing")
public abstract class FileSystemView {
static FileSystemView windowsFileSystemView = null;

View file

@ -45,6 +45,7 @@ import sun.swing.*;
* @author Arnaud Weber
* @author Fredrik Lagerblad
*/
@SuppressWarnings("doclint:missing")
public class BasicMenuItemUI extends MenuItemUI
{
/**

View file

@ -46,6 +46,7 @@ import java.util.ArrayList;
* @author David Karlton
* @author Arnaud Weber
*/
@SuppressWarnings("doclint:missing")
public class BasicMenuUI extends BasicMenuItemUI
{
/**

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -47,7 +47,7 @@ import sun.swing.SwingUtilities2;
* Factory object that can vend Borders appropriate for the metal L & F.
* @author Steve Wilson
*/
@SuppressWarnings("doclint:missing")
public class MetalBorders {
/**

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -33,6 +33,7 @@ import java.awt.Shape;
* @author Timothy Prinzing
* @see Highlighter
*/
@SuppressWarnings("doclint:missing")
public abstract class LayeredHighlighter implements Highlighter {
/**
* Constructor for subclasses to call.

View file

@ -43,6 +43,7 @@ import javax.swing.text.StyleContext;
* @author Sunita Mani
*
*/
@SuppressWarnings("doclint:missing")
public class HTML {
/**

View file

@ -216,7 +216,8 @@ import static java.nio.charset.StandardCharsets.ISO_8859_1;
*
* @author Timothy Prinzing
*/
@SuppressWarnings("serial") // Same-version serialization only
@SuppressWarnings({"serial", // Same-version serialization only
"doclint:missing"})
public class HTMLEditorKit extends StyledEditorKit implements Accessible {
private JEditorPane theEditor;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -44,7 +44,8 @@ import java.io.*;
* @author Arthur Van Hoff
*
*/
@SuppressWarnings("serial") // Same-version serialization only
@SuppressWarnings({"serial", // Same-version serialization only
"doclint:missing"})
public final
class AttributeList implements DTDConstants, Serializable {

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -75,6 +75,7 @@ import java.net.URL;
* @author Arthur van Hoff
* @author Sunita Mani
*/
@SuppressWarnings("doclint:missing")
public
class Parser implements DTDConstants {

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -33,6 +33,7 @@ import java.util.*;
*
* @author Ray Ryan
*/
@SuppressWarnings("doclint:missing")
public class UndoableEditSupport {
/**
* The update level.