--- old/src/java.desktop/macosx/classes/com/apple/eawt/Application.java 2015-10-04 22:51:41.141276958 +0400 +++ new/src/java.desktop/macosx/classes/com/apple/eawt/Application.java 2015-10-04 22:51:40.937276967 +0400 @@ -39,7 +39,7 @@ import sun.lwawt.macosx.CPlatformWindow; /** - * The Application class allows you to integrate your Java application with the native Mac OS X environment. + * The {@code Application} class allows you to integrate your Java application with the native Mac OS X environment. * You can provide your Mac OS X users a greatly enhanced experience by implementing a few basic handlers for standard system events. * * For example: @@ -142,7 +142,7 @@ /** * Installs a handler to show a custom About window for your application. * - * Setting the {@link AboutHandler} to null reverts it to the default Cocoa About window. + * Setting the {@link AboutHandler} to {@code null} reverts it to the default Cocoa About window. * * @param aboutHandler the handler to respond to the {@link AboutHandler#handleAbout()} message * @since Java for Mac OS X 10.6 Update 3 @@ -155,7 +155,7 @@ /** * Installs a handler to create the Preferences menu item in your application's app menu. * - * Setting the {@link PreferencesHandler} to null will remove the Preferences item from the app menu. + * Setting the {@link PreferencesHandler} to {@code null} will remove the Preferences item from the app menu. * * @param preferencesHandler * @since Java for Mac OS X 10.6 Update 3 @@ -167,8 +167,8 @@ /** * Installs the handler which is notified when the application is asked to open a list of files. - * The {@link OpenFilesHandler#openFiles(AppEvent.OpenFilesEvent)} notifications are only sent if the Java app is a bundled application, with a CFBundleDocumentTypes array present in it's Info.plist. - * See the Info.plist Key Reference for more information about adding a CFBundleDocumentTypes key to your app's Info.plist. + * The {@link OpenFilesHandler#openFiles(AppEvent.OpenFilesEvent)} notifications are only sent if the Java app is a bundled application, with a {@code CFBundleDocumentTypes} array present in it's Info.plist. + * See the Info.plist Key Reference for more information about adding a {@code CFBundleDocumentTypes} key to your app's Info.plist. * * @param openFileHandler * @since Java for Mac OS X 10.6 Update 3 @@ -180,8 +180,8 @@ /** * Installs the handler which is notified when the application is asked to print a list of files. - * The {@link PrintFilesHandler#printFiles(AppEvent.PrintFilesEvent)} notifications are only sent if the Java app is a bundled application, with a CFBundleDocumentTypes array present in it's Info.plist. - * See the Info.plist Key Reference for more information about adding a CFBundleDocumentTypes key to your app's Info.plist. + * The {@link PrintFilesHandler#printFiles(AppEvent.PrintFilesEvent)} notifications are only sent if the Java app is a bundled application, with a {@code CFBundleDocumentTypes} array present in it's Info.plist. + * See the Info.plist Key Reference for more information about adding a {@code CFBundleDocumentTypes} key to your app's Info.plist. * * @param printFileHandler * @since Java for Mac OS X 10.6 Update 3 @@ -193,10 +193,10 @@ /** * Installs the handler which is notified when the application is asked to open a URL. - * The {@link OpenURIHandler#openURI(AppEvent.OpenURIEvent)} notifications are only sent if the Java app is a bundled application, with a CFBundleURLTypes array present in it's Info.plist. - * See the Info.plist Key Reference for more information about adding a CFBundleURLTypes key to your app's Info.plist. + * The {@link OpenURIHandler#openURI(AppEvent.OpenURIEvent)} notifications are only sent if the Java app is a bundled application, with a {@code CFBundleURLTypes} array present in it's Info.plist. + * See the Info.plist Key Reference for more information about adding a {@code CFBundleURLTypes} key to your app's Info.plist. * - * Setting the handler to null causes all {@link OpenURIHandler#openURI(AppEvent.OpenURIEvent)} requests to be enqueued until another handler is set. + * Setting the handler to {@code null} causes all {@link OpenURIHandler#openURI(AppEvent.OpenURIEvent)} requests to be enqueued until another handler is set. * * @param openURIHandler * @since Java for Mac OS X 10.6 Update 3 @@ -209,7 +209,7 @@ /** * Installs the handler which determines if the application should quit. * The handler is passed a one-shot {@link QuitResponse} which can cancel or proceed with the quit. - * Setting the handler to null causes all quit requests to directly perform the default {@link QuitStrategy}. + * Setting the handler to {@code null} causes all quit requests to directly perform the default {@link QuitStrategy}. * * @param quitHandler the handler that is called when the application is asked to quit * @since Java for Mac OS X 10.6 Update 3 @@ -432,11 +432,11 @@ /** * Enables the Preferences item in the application menu. The ApplicationListener receives a callback for - * selection of the Preferences item in the application menu only if this is set to true. + * selection of the Preferences item in the application menu only if this is set to {@code true}. * * If a Preferences item isn't present, this method adds and enables it. * - * @param enable specifies whether the Preferences item in the application menu should be enabled (true) or not (false) + * @param enable specifies whether the Preferences item in the application menu should be enabled ({@code true}) or not ({@code false}) * * @deprecated no replacement * @since 1.4 @@ -449,12 +449,12 @@ /** * Enables the About item in the application menu. The ApplicationListener receives a callback for - * selection of the About item in the application menu only if this is set to true. Because AWT supplies - * a standard About window when an application may not, by default this is set to true. + * selection of the About item in the application menu only if this is set to {@code true}. Because AWT supplies + * a standard About window when an application may not, by default this is set to {@code true}. * * If the About item isn't present, this method adds and enables it. * - * @param enable specifies whether the About item in the application menu should be enabled (true) or not (false) + * @param enable specifies whether the About item in the application menu should be enabled ({@code true}) or not ({@code false}) * * @deprecated no replacement * @since 1.4 @@ -553,7 +553,7 @@ } /** - * @deprecated Use java.awt.MouseInfo.getPointerInfo().getLocation(). + * @deprecated Use {@code java.awt.MouseInfo.getPointerInfo().getLocation()}. * * @since 1.4 */ --- old/src/java.desktop/macosx/classes/com/apple/eawt/ApplicationAdapter.java 2015-10-04 22:51:41.693276933 +0400 +++ new/src/java.desktop/macosx/classes/com/apple/eawt/ApplicationAdapter.java 2015-10-04 22:51:41.505276942 +0400 @@ -26,7 +26,7 @@ package com.apple.eawt; /** - * An abstract adapter class for receiving ApplicationEvents. + * An abstract adapter class for receiving {@code ApplicationEvents}. * * ApplicationEvents are deprecated. Use individual app event listeners or handlers instead. * --- old/src/java.desktop/macosx/classes/com/apple/eawt/ApplicationEvent.java 2015-10-04 22:51:42.229276909 +0400 +++ new/src/java.desktop/macosx/classes/com/apple/eawt/ApplicationEvent.java 2015-10-04 22:51:42.041276918 +0400 @@ -50,9 +50,9 @@ /** * Determines whether an ApplicationListener has acted on a particular event. - * An event is marked as having been handled with setHandled(true). + * An event is marked as having been handled with {@code setHandled(true)}. * - * @return true if the event has been handled, otherwise false + * @return {@code true} if the event has been handled, otherwise {@code false} * * @since 1.4 * @deprecated @@ -65,10 +65,10 @@ /** * Marks the event as handled. * After this method handles an ApplicationEvent, it may be useful to specify that it has been handled. - * This is usually used in conjunction with getHandled(). - * Set to true to designate that this event has been handled. By default it is false. + * This is usually used in conjunction with {@code getHandled()}. + * Set to {@code true} to designate that this event has been handled. By default it is {@code false}. * - * @param state true if the event has been handled, otherwise false. + * @param state {@code true} if the event has been handled, otherwise {@code false}. * * @since 1.4 * @deprecated @@ -84,7 +84,7 @@ * For example, the Print and Open events refer to specific files. * For these cases, this returns the appropriate file name. * - * @return the full path to the file associated with the event, if applicable, otherwise null + * @return the full path to the file associated with the event, if applicable, otherwise {@code null} * * @since 1.4 * @deprecated use {@link OpenFilesHandler} or {@link PrintFilesHandler} instead --- old/src/java.desktop/macosx/classes/com/apple/eawt/ApplicationListener.java 2015-10-04 22:51:42.749276886 +0400 +++ new/src/java.desktop/macosx/classes/com/apple/eawt/ApplicationListener.java 2015-10-04 22:51:42.561276894 +0400 @@ -53,9 +53,9 @@ @Deprecated public interface ApplicationListener extends EventListener { /** - * Called when the user selects the About item in the application menu. If event is not handled by - * setting isHandled(true), a default About window consisting of the application's name and icon is - * displayed. To display a custom About window, designate the event as being handled and display the + * Called when the user selects the About item in the application menu. If {@code event} is not handled by + * setting {@code isHandled(true)}, a default About window consisting of the application's name and icon is + * displayed. To display a custom About window, designate the {@code event} as being handled and display the * appropriate About window. * * @param event an ApplicationEvent initiated by the user choosing About in the application menu @@ -99,7 +99,7 @@ * Called when the Preference item in the application menu is selected. Native Mac OS X applications make their * Preferences window available through the application menu. Java applications are automatically given an application * menu in Mac OS X. By default, the Preferences item is disabled in that menu. If you are deploying an application - * on Mac OS X, you should enable the preferences item with setEnabledPreferencesMenu(true) in the + * on Mac OS X, you should enable the preferences item with {@code setEnabledPreferencesMenu(true)} in the * Application object and then display your Preferences window in this handler. * * @param event triggered when the user selects Preferences from the application menu @@ -130,8 +130,8 @@ * application menu, when the user types Command-Q, or when the user control clicks on your application icon in the * Dock and chooses Quit. You can either accept or reject the request to quit. You might want to reject the request * to quit if the user has unsaved work. Reject the request, move into your code to save changes, then quit your - * application. To accept the request to quit, and terminate the application, set isHandled(true) for the - * event. To reject the quit, set isHandled(false). + * application. To accept the request to quit, and terminate the application, set {@code isHandled(true)} for the + * {@code event}. To reject the quit, set {@code isHandled(false)}. * * @param event a Quit Application event * @deprecated use {@link QuitHandler} and {@link QuitResponse} --- old/src/java.desktop/macosx/classes/com/apple/eawt/OpenURIHandler.java 2015-10-04 22:51:43.273276862 +0400 +++ new/src/java.desktop/macosx/classes/com/apple/eawt/OpenURIHandler.java 2015-10-04 22:51:43.085276871 +0400 @@ -29,8 +29,8 @@ /** * An implementor is notified when the application is asked to open a URI. - * The application only sends {@link com.apple.eawt.EAWTEvent.OpenURIEvent}s when it has been launched as a bundled Mac application, and it's Info.plist claims URL schemes in it's CFBundleURLTypes entry. - * See the Info.plist Key Reference for more information about adding a CFBundleURLTypes key to your app's Info.plist. + * The application only sends {@link com.apple.eawt.EAWTEvent.OpenURIEvent}s when it has been launched as a bundled Mac application, and it's Info.plist claims URL schemes in it's {@code CFBundleURLTypes} entry. + * See the Info.plist Key Reference for more information about adding a {@code CFBundleURLTypes} key to your app's Info.plist. * * @see Application#setOpenURIHandler(OpenURIHandler) * --- old/src/java.desktop/macosx/classes/com/apple/eawt/QuitStrategy.java 2015-10-04 22:51:43.797276839 +0400 +++ new/src/java.desktop/macosx/classes/com/apple/eawt/QuitStrategy.java 2015-10-04 22:51:43.601276848 +0400 @@ -38,7 +38,7 @@ */ public enum QuitStrategy { /** - * Shuts down the application by calling System.exit(0). This is the default strategy. + * Shuts down the application by calling {@code System.exit(0)}. This is the default strategy. */ SYSTEM_EXIT_0, --- old/src/java.desktop/macosx/classes/com/apple/eio/FileManager.java 2015-10-04 22:51:44.317276815 +0400 +++ new/src/java.desktop/macosx/classes/com/apple/eio/FileManager.java 2015-10-04 22:51:44.129276824 +0400 @@ -32,19 +32,19 @@ * attributes. These attributes in turn are dependent on HFS and HFS+ file systems. As such, it is important to recognize * their limitation when writing code that must function well across multiple platforms.

* - * In addition to file name suffixes, Mac OS X can use Finder attributes like file type and creator codes to - * identify and handle files. These codes are unique 4-byte identifiers. The file type is a string that describes the - * contents of a file. For example, the file type APPL identifies the file as an application and therefore - * executable. A file type of TEXT means that the file contains raw text. Any application that can read raw - * text can open a file of type TEXT. Applications that use proprietary file types might assign their files a proprietary - * file type code. + * In addition to file name suffixes, Mac OS X can use Finder attributes like file {@code type} and {@code creator} codes to + * identify and handle files. These codes are unique 4-byte identifiers. The file {@code type} is a string that describes the + * contents of a file. For example, the file type {@code APPL} identifies the file as an application and therefore + * executable. A file type of {@code TEXT} means that the file contains raw text. Any application that can read raw + * text can open a file of type {@code TEXT}. Applications that use proprietary file types might assign their files a proprietary + * file {@code type} code. *

- * To identify the application that can handle a document, the Finder can look at the creator. For example, if a user - * double-clicks on a document with the ttxt creator, it opens up in Text Edit, the application registered - * with the ttxt creator code. Note that the creator + * To identify the application that can handle a document, the Finder can look at the {@code creator}. For example, if a user + * double-clicks on a document with the {@code ttxt creator}, it opens up in Text Edit, the application registered + * with the {@code ttxt creator} code. Note that the {@code creator} * code can be set to any application, not necessarily the application that created it. For example, if you - * use an editor to create an HTML document, you might want to assign a browser's creator code for the file rather than - * the HTML editor's creator code. Double-clicking on the document then opens the appropriate browser rather than the + * use an editor to create an HTML document, you might want to assign a browser's {@code creator} code for the file rather than + * the HTML editor's {@code creator} code. Double-clicking on the document then opens the appropriate browser rather than the *HTML editor. *

* If you plan to publicly distribute your application, you must register its creator and any proprietary file types with the Apple @@ -126,7 +126,7 @@ } /** - * Sets the file type and creator codes for a file or folder. + * Sets the file {@code type} and {@code creator} codes for a file or folder. * * @since 1.4 */ @@ -140,7 +140,7 @@ private static native void _setFileTypeAndCreator(String filename, int type, int creator) throws IOException; /** - * Sets the file type code for a file or folder. + * Sets the file {@code type} code for a file or folder. * * @since 1.4 */ @@ -154,7 +154,7 @@ private static native void _setFileType(String filename, int type) throws IOException; /** - * Sets the file creator code for a file or folder. + * Sets the file {@code creator} code for a file or folder. * * @since 1.4 */ @@ -168,7 +168,7 @@ private static native void _setFileCreator(String filename, int creator) throws IOException; /** - * Obtains the file type code for a file or folder. + * Obtains the file {@code type} code for a file or folder. * * @since 1.4 */ @@ -182,7 +182,7 @@ private static native int _getFileType(String filename) throws IOException; /** - * Obtains the file creator code for a file or folder. + * Obtains the file {@code creator} code for a file or folder. * * @since 1.4 */ @@ -200,11 +200,11 @@ * Locates a folder of a particular type. Mac OS X recognizes certain specific folders that have distinct purposes. * For example, the user's desktop or temporary folder. These folders have corresponding codes. Given one of these codes, * this method returns the path to that particular folder. Certain folders of a given type may appear in more than - * one domain. For example, although there is only one root folder, there are multiple pref - * folders. If this method is called to find the pref folder, it will return the first one it finds, - * the user's preferences folder in ~/Library/Preferences. To explicitly locate a folder in a certain - * domain use findFolder(short domain, int folderType) or findFolder(short domain, int folderType, - * boolean createIfNeeded). + * one domain. For example, although there is only one {@code root} folder, there are multiple {@code pref} + * folders. If this method is called to find the {@code pref} folder, it will return the first one it finds, + * the user's preferences folder in {@code ~/Library/Preferences}. To explicitly locate a folder in a certain + * domain use {@code findFolder(short domain, int folderType)} or + * {@code findFolder(short domain, int folderType, boolean createIfNeeded)}. * * @return the path to the folder searched for * @@ -215,8 +215,8 @@ } /** - * Locates a folder of a particular type, within a given domain. Similar to findFolder(int folderType) - * except that the domain to look in can be specified. Valid values for domaininclude: + * Locates a folder of a particular type, within a given domain. Similar to {@code findFolder(int folderType)} + * except that the domain to look in can be specified. Valid values for {@code domain} include: *

*
user
*
The User domain contains resources specific to the user who is currently logged in
@@ -239,12 +239,12 @@ /** * Locates a folder of a particular type within a given domain and optionally creating the folder if it does - * not exist. The behavior is similar to findFolder(int folderType) and - * findFolder(short domain, int folderType) except that it can create the folder if it does not already exist. + * not exist. The behavior is similar to {@code findFolder(int folderType)} and + * {@code findFolder(short domain, int folderType)} except that it can create the folder if it does not already exist. * * @param createIfNeeded - * set to true, by setting to false the behavior will be the - * same as findFolder(short domain, int folderType, boolean createIfNeeded) + * set to {@code true}, by setting to {@code false} the behavior will be the + * same as {@code findFolder(short domain, int folderType, boolean createIfNeeded)} * @return the path to the folder searched for * * @since 1.4 @@ -263,9 +263,9 @@ /** - * Opens the path specified by a URL in the appropriate application for that URL. HTTP URL's (http://) - * open in the default browser as set in the Internet pane of System Preferences. File (file://) and - * FTP URL's (ftp://) open in the Finder. Note that opening an FTP URL will prompt the user for where + * Opens the path specified by a URL in the appropriate application for that URL. HTTP URL's ({@code http://}) + * open in the default browser as set in the Internet pane of System Preferences. File ({@code file://}) and + * FTP URL's ({@code ftp://}) open in the Finder. Note that opening an FTP URL will prompt the user for where * they want to save the downloaded file(s). * * @param url --- old/src/java.desktop/macosx/classes/com/apple/laf/AquaInternalFrameUI.java 2015-10-04 22:51:44.849276792 +0400 +++ new/src/java.desktop/macosx/classes/com/apple/laf/AquaInternalFrameUI.java 2015-10-04 22:51:44.661276800 +0400 @@ -295,9 +295,9 @@ } /** - * Installs necessary mouse handlers on newPane + * Installs necessary mouse handlers on {@code newPane} * and adds it to the frame. - * Reverse process for the currentPane. + * Reverse process for the {@code currentPane}. */ @Override protected void replacePane(final JComponent currentPane, final JComponent newPane) { --- old/src/java.desktop/macosx/classes/com/apple/laf/AquaLookAndFeel.java 2015-10-04 22:51:45.393276767 +0400 +++ new/src/java.desktop/macosx/classes/com/apple/laf/AquaLookAndFeel.java 2015-10-04 22:51:45.205276776 +0400 @@ -82,9 +82,9 @@ } /** - * Returns true if the LookAndFeel returned - * RootPaneUI instances support providing Window decorations - * in a JRootPane. + * Returns true if the {@code LookAndFeel} returned + * {@code RootPaneUI} instances support providing Window decorations + * in a {@code JRootPane}. *

* The default implementation returns false, subclasses that support * Window decorations should override this and return true. @@ -174,20 +174,20 @@ } /** - * Returns an ActionMap. + * Returns an {@code ActionMap}. *

- * This ActionMap contains Actions that + * This {@code ActionMap} contains {@code Actions} that * embody the ability to render an auditory cue. These auditory * cues map onto user and system activities that may be useful * for an end user to know about (such as a dialog box appearing). *

- * At the appropriate time in a JComponent UI's lifecycle, + * At the appropriate time in a {@code JComponent} UI's lifecycle, * the ComponentUI is responsible for getting the appropriate - * Action out of the ActionMap and passing - * it on to playSound. + * {@code Action} out of the {@code ActionMap} and passing + * it on to {@code playSound}. *

- * The Actions in this ActionMap are - * created by the createAudioAction method. + * The {@code Actions} in this {@code ActionMap} are + * created by the {@code createAudioAction} method. * * @return an ActionMap containing Actions * responsible for rendering auditory cues --- old/src/java.desktop/macosx/classes/com/apple/laf/AquaOptionPaneUI.java 2015-10-04 22:51:45.925276743 +0400 +++ new/src/java.desktop/macosx/classes/com/apple/laf/AquaOptionPaneUI.java 2015-10-04 22:51:45.737276752 +0400 @@ -47,7 +47,7 @@ /** * Creates and returns a Container containin the buttons. The buttons - * are created by calling getButtons. + * are created by calling {@code getButtons}. */ protected Container createButtonArea() { final Container bottom = super.createButtonArea(); --- old/src/java.desktop/macosx/classes/com/apple/laf/AquaRootPaneUI.java 2015-10-04 22:51:46.457276719 +0400 +++ new/src/java.desktop/macosx/classes/com/apple/laf/AquaRootPaneUI.java 2015-10-04 22:51:46.257276728 +0400 @@ -164,7 +164,7 @@ /** * Invoked when a property changes on the root pane. If the event - * indicates the defaultButton has changed, this will + * indicates the {@code defaultButton} has changed, this will * update the animation. * If the enabled state changed, it will start or stop the animation */ --- old/src/java.desktop/macosx/classes/com/apple/laf/AquaTabbedPaneCopyFromBasicUI.java 2015-10-04 22:51:46.981276696 +0400 +++ new/src/java.desktop/macosx/classes/com/apple/laf/AquaTabbedPaneCopyFromBasicUI.java 2015-10-04 22:51:46.789276704 +0400 @@ -235,9 +235,9 @@ } /** - * Invoked by installUI to create + * Invoked by {@code installUI} to create * a layout manager object to manage - * the JTabbedPane. + * the {@code JTabbedPane}. * * @return a layout manager object * @@ -536,7 +536,7 @@ /** * Sets the tab the mouse is over by location. This is a cover method - * for setRolloverTab(tabForCoordinate(x, y, false)). + * for {@code setRolloverTab(tabForCoordinate(x, y, false))}. */ private void setRolloverTab(final int x, final int y) { // NOTE: @@ -547,8 +547,8 @@ } /** - * Sets the tab the mouse is currently over to index. - * index will be -1 if the mouse is no longer over any + * Sets the tab the mouse is currently over to {@code index}. + * {@code index} will be -1 if the mouse is no longer over any * tab. No checking is done to ensure the passed in index identifies a * valid tab. * @@ -676,7 +676,7 @@ /** * Returns the amount the baseline is offset by. This is typically - * the same as getTabLabelShiftY. + * the same as {@code getTabLabelShiftY}. * * @return amount to offset the baseline by * @since 1.6 @@ -765,10 +765,10 @@ /** * Paints the tabs in the tab area. * Invoked by paint(). - * The graphics parameter must be a valid Graphics + * The graphics parameter must be a valid {@code Graphics} * object. Tab placement may be either: - * JTabbedPane.TOP, JTabbedPane.BOTTOM, - * JTabbedPane.LEFT, or JTabbedPane.RIGHT. + * {@code JTabbedPane.TOP}, {@code JTabbedPane.BOTTOM}, + * {@code JTabbedPane.LEFT}, or {@code JTabbedPane.RIGHT}. * The selected index must be a valid tabbed pane tab index (0 to * tab count - 1, inclusive) or -1 if no tab is currently selected. * The handling of invalid parameters is unspecified. @@ -1406,7 +1406,7 @@ * designated Rectangle object (rather than instantiating and returning * a new Rectangle each time). The tab index parameter must be a valid * tabbed pane tab index (0 to tab count - 1, inclusive). The destination - * rectangle parameter must be a valid Rectangle instance. + * rectangle parameter must be a valid {@code Rectangle} instance. * The handling of invalid parameters is unspecified. * * @param tabIndex the index of the tab @@ -3717,7 +3717,7 @@ /** * An ActionMap that populates its contents as necessary. The - * contents are populated by invoking the loadActionMap + * contents are populated by invoking the {@code loadActionMap} * method on the passed in Object. * * @version 1.6, 11/17/05 @@ -3726,14 +3726,14 @@ @SuppressWarnings("serial") // Superclass is not serializable across versions static class LazyActionMap extends ActionMapUIResource { /** - * Object to invoke loadActionMap on. This may be + * Object to invoke {@code loadActionMap} on. This may be * a Class object. */ private transient Object _loader; /** * Installs an ActionMap that will be populated by invoking the - * loadActionMap method on the specified Class + * {@code loadActionMap} method on the specified Class * when necessary. *

* This should be used if the ActionMap can be shared. @@ -3755,7 +3755,7 @@ /** * Returns an ActionMap that will be populated by invoking the - * loadActionMap method on the specified Class + * {@code loadActionMap} method on the specified Class * when necessary. *

* This should be used if the ActionMap can be shared. --- old/src/java.desktop/macosx/classes/com/apple/laf/AquaTreeUI.java 2015-10-04 22:51:47.541276671 +0400 +++ new/src/java.desktop/macosx/classes/com/apple/laf/AquaTreeUI.java 2015-10-04 22:51:47.353276679 +0400 @@ -179,8 +179,8 @@ } /** - * Paints the expand (toggle) part of a row. The receiver should NOT modify clipBounds, or - * insets. + * Paints the expand (toggle) part of a row. The receiver should NOT modify {@code clipBounds}, or + * {@code insets}. */ protected void paintExpandControl(final Graphics g, final Rectangle clipBounds, final Insets insets, final Rectangle bounds, final TreePath path, final int row, final boolean isExpanded, final boolean hasBeenExpanded, final boolean isLeaf) { final Object value = path.getLastPathComponent(); --- old/src/java.desktop/macosx/classes/sun/font/NativeFont.java 2015-10-04 22:51:48.117276645 +0400 +++ new/src/java.desktop/macosx/classes/sun/font/NativeFont.java 2015-10-04 22:51:47.877276656 +0400 @@ -41,7 +41,7 @@ /** * Verifies native font is accessible. - * @throws FontFormatException - if the font can't be located. + * @throws FontFormatException if the font can't be located. */ public NativeFont(String platName, boolean isBitmapDelegate) throws FontFormatException { --- old/src/java.desktop/macosx/classes/sun/java2d/DataBufferNIOInt.java 2015-10-04 22:51:48.637276621 +0400 +++ new/src/java.desktop/macosx/classes/sun/java2d/DataBufferNIOInt.java 2015-10-04 22:51:48.449276630 +0400 @@ -37,10 +37,10 @@ IntBuffer bankdata[]; /** - * Constructs an integer-based DataBuffer with a single bank + * Constructs an integer-based {@code DataBuffer} with a single bank * and the specified size. * - * @param size The size of the DataBuffer. + * @param size The size of the {@code DataBuffer}. */ public DataBufferNIOInt(int size) { super(TYPE_INT,size); @@ -51,7 +51,7 @@ } /** - * Returns the default (first) IntBuffer in DataBuffer. + * Returns the default (first) IntBuffer in {@code DataBuffer}. * * @return The first IntBuffer. */ @@ -70,7 +70,7 @@ } /** - * Returns the default (first) int data array in DataBuffer. + * Returns the default (first) int data array in {@code DataBuffer}. * * @return The first integer data array. */ @@ -137,7 +137,7 @@ /** * Sets the requested data array element in the specified bank - * to the integer value i. + * to the integer value {@code i}. * @param bank The bank in which you want to set the data array element. * @param i The data array element you want to set. * @param val The integer value to which you want to set the specified data array element. --- old/src/java.desktop/macosx/classes/sun/lwawt/macosx/CDesktopPeer.java 2015-10-04 22:51:49.157276598 +0400 +++ new/src/java.desktop/macosx/classes/sun/lwawt/macosx/CDesktopPeer.java 2015-10-04 22:51:48.969276607 +0400 @@ -33,7 +33,7 @@ /** - * Concrete implementation of the interface DesktopPeer for MacOS X + * Concrete implementation of the interface {@code DesktopPeer} for MacOS X * * @see DesktopPeer */ --- old/src/java.desktop/macosx/classes/sun/lwawt/macosx/CInputMethod.java 2015-10-04 22:51:49.677276575 +0400 +++ new/src/java.desktop/macosx/classes/sun/lwawt/macosx/CInputMethod.java 2015-10-04 22:51:49.489276583 +0400 @@ -101,7 +101,7 @@ * method. * * @param context the input method context for this input method - * @exception NullPointerException if context is null + * @exception NullPointerException if {@code context} is null */ public void setInputMethodContext(InputMethodContext context) { fIMContext = context; @@ -124,7 +124,7 @@ * * @param lang locale to input * @return whether the specified locale is supported - * @exception NullPointerException if locale is null + * @exception NullPointerException if {@code locale} is null */ public boolean setLocale(Locale lang) { return setLocale(lang, false); @@ -205,7 +205,7 @@ * are dispatched to the current input method for this component before * they are dispatched to the component's methods or event listeners. * The input method decides whether it needs to handle the event. If it - * does, it also calls the event's consume method; this + * does, it also calls the event's {@code consume} method; this * causes the event to not get dispatched to the component's event * processing methods or event listeners. *

@@ -216,7 +216,7 @@ * This method is called by {@link java.awt.im.InputContext#dispatchEvent InputContext.dispatchEvent}. * * @param event the event being dispatched to the input method - * @exception NullPointerException if event is null + * @exception NullPointerException if {@code event} is null */ public void dispatchEvent(final AWTEvent event) { // No-op for Mac OS X. --- old/src/java.desktop/macosx/classes/sun/lwawt/macosx/CPrinterDevice.java 2015-10-04 22:51:50.209276551 +0400 +++ new/src/java.desktop/macosx/classes/sun/lwawt/macosx/CPrinterDevice.java 2015-10-04 22:51:50.021276559 +0400 @@ -35,8 +35,8 @@ } /** - * Returns the type of this GraphicsDevice. - * @return the type of this GraphicsDevice, which can + * Returns the type of this {@code GraphicsDevice}. + * @return the type of this {@code GraphicsDevice}, which can * either be TYPE_RASTER_SCREEN, TYPE_PRINTER or TYPE_IMAGE_BUFFER. * @see #TYPE_RASTER_SCREEN * @see #TYPE_PRINTER @@ -48,30 +48,30 @@ /** * Returns the identification string associated with this - * GraphicsDevice. - * @return a String that is the identification - * of this GraphicsDevice. + * {@code GraphicsDevice}. + * @return a {@code String} that is the identification + * of this {@code GraphicsDevice}. */ public String getIDstring() { return ("Printer"); } /** - * Returns all of the GraphicsConfiguration - * objects associated with this GraphicsDevice. - * @return an array of GraphicsConfiguration + * Returns all of the {@code GraphicsConfiguration} + * objects associated with this {@code GraphicsDevice}. + * @return an array of {@code GraphicsConfiguration} * objects that are associated with this - * GraphicsDevice. + * {@code GraphicsDevice}. */ public GraphicsConfiguration[] getConfigurations() { return new GraphicsConfiguration[] { gc }; } /** - * Returns the default GraphicsConfiguration - * associated with this GraphicsDevice. - * @return the default GraphicsConfiguration - * of this GraphicsDevice. + * Returns the default {@code GraphicsConfiguration} + * associated with this {@code GraphicsDevice}. + * @return the default {@code GraphicsConfiguration} + * of this {@code GraphicsDevice}. */ public GraphicsConfiguration getDefaultConfiguration() { return gc; --- old/src/java.desktop/macosx/classes/sun/lwawt/macosx/CPrinterGraphicsConfig.java 2015-10-04 22:51:50.729276528 +0400 +++ new/src/java.desktop/macosx/classes/sun/lwawt/macosx/CPrinterGraphicsConfig.java 2015-10-04 22:51:50.541276536 +0400 @@ -49,9 +49,9 @@ /** * Returns the {@link GraphicsDevice} associated with this - * GraphicsConfiguration. - * @return a GraphicsDevice object that is - * associated with this GraphicsConfiguration. + * {@code GraphicsConfiguration}. + * @return a {@code GraphicsDevice} object that is + * associated with this {@code GraphicsConfiguration}. */ public GraphicsDevice getDevice() { return gd; @@ -59,16 +59,16 @@ /** * Returns a {@link BufferedImage} with a data layout and color model - * compatible with this GraphicsConfiguration. This + * compatible with this {@code GraphicsConfiguration}. This * method has nothing to do with memory-mapping - * a device. The returned BufferedImage has + * a device. The returned {@code BufferedImage} has * a layout and color model that is closest to this native device * configuration and can therefore be optimally blitted to this * device. - * @param width the width of the returned BufferedImage - * @param height the height of the returned BufferedImage - * @return a BufferedImage whose data layout and color - * model is compatible with this GraphicsConfiguration. + * @param width the width of the returned {@code BufferedImage} + * @param height the height of the returned {@code BufferedImage} + * @return a {@code BufferedImage} whose data layout and color + * model is compatible with this {@code GraphicsConfiguration}. */ public BufferedImage createCompatibleImage(int width, int height) { return createCompatibleImage(width, height, Transparency.OPAQUE); @@ -76,15 +76,15 @@ /** * Returns a {@link VolatileImage} with a data layout and color model - * compatible with this GraphicsConfiguration. - * The returned VolatileImage + * compatible with this {@code GraphicsConfiguration}. + * The returned {@code VolatileImage} * may have data that is stored optimally for the underlying graphics * device and may therefore benefit from platform-specific rendering * acceleration. - * @param width the width of the returned VolatileImage - * @param height the height of the returned VolatileImage - * @return a VolatileImage whose data layout and color - * model is compatible with this GraphicsConfiguration. + * @param width the width of the returned {@code VolatileImage} + * @param height the height of the returned {@code VolatileImage} + * @return a {@code VolatileImage} whose data layout and color + * model is compatible with this {@code GraphicsConfiguration}. * @see Component#createVolatileImage(int, int) */ public VolatileImage createCompatibleVolatileImage(int width, int height) { @@ -97,18 +97,18 @@ } /** - * Returns a BufferedImage that supports the specified + * Returns a {@code BufferedImage} that supports the specified * transparency and has a data layout and color model - * compatible with this GraphicsConfiguration. This + * compatible with this {@code GraphicsConfiguration}. This * method has nothing to do with memory-mapping - * a device. The returned BufferedImage has a layout and + * a device. The returned {@code BufferedImage} has a layout and * color model that can be optimally blitted to a device - * with this GraphicsConfiguration. - * @param width the width of the returned BufferedImage - * @param height the height of the returned BufferedImage + * with this {@code GraphicsConfiguration}. + * @param width the width of the returned {@code BufferedImage} + * @param height the height of the returned {@code BufferedImage} * @param transparency the specified transparency mode - * @return a BufferedImage whose data layout and color - * model is compatible with this GraphicsConfiguration + * @return a {@code BufferedImage} whose data layout and color + * model is compatible with this {@code GraphicsConfiguration} * and also supports the specified transparency. * @see Transparency#OPAQUE * @see Transparency#BITMASK @@ -121,21 +121,21 @@ /** * Returns the {@link ColorModel} associated with this - * GraphicsConfiguration. - * @return a ColorModel object that is associated with - * this GraphicsConfiguration. + * {@code GraphicsConfiguration}. + * @return a {@code ColorModel} object that is associated with + * this {@code GraphicsConfiguration}. */ public ColorModel getColorModel() { return getColorModel(Transparency.OPAQUE); } /** - * Returns the ColorModel associated with this - * GraphicsConfiguration that supports the specified + * Returns the {@code ColorModel} associated with this + * {@code GraphicsConfiguration} that supports the specified * transparency. * @param transparency the specified transparency mode - * @return a ColorModel object that is associated with - * this GraphicsConfiguration and supports the + * @return a {@code ColorModel} object that is associated with + * this {@code GraphicsConfiguration} and supports the * specified transparency. */ public ColorModel getColorModel(int transparency) { @@ -144,22 +144,22 @@ /** * Returns the default {@link AffineTransform} for this - * GraphicsConfiguration. This - * AffineTransform is typically the Identity transform - * for most normal screens. The default AffineTransform + * {@code GraphicsConfiguration}. This + * {@code AffineTransform} is typically the Identity transform + * for most normal screens. The default {@code AffineTransform} * maps coordinates onto the device such that 72 user space * coordinate units measure approximately 1 inch in device * space. The normalizing transform can be used to make * this mapping more exact. Coordinates in the coordinate space - * defined by the default AffineTransform for screen and + * defined by the default {@code AffineTransform} for screen and * printer devices have the origin in the upper left-hand corner of * the target region of the device, with X coordinates * increasing to the right and Y coordinates increasing downwards. * For image buffers not associated with a device, such as those not - * created by createCompatibleImage, - * this AffineTransform is the Identity transform. - * @return the default AffineTransform for this - * GraphicsConfiguration. + * created by {@code createCompatibleImage}, + * this {@code AffineTransform} is the Identity transform. + * @return the default {@code AffineTransform} for this + * {@code GraphicsConfiguration}. */ public AffineTransform getDefaultTransform() { return new AffineTransform(); @@ -167,9 +167,9 @@ /** * - * Returns a AffineTransform that can be concatenated - * with the default AffineTransform - * of a GraphicsConfiguration so that 72 units in user + * Returns a {@code AffineTransform} that can be concatenated + * with the default {@code AffineTransform} + * of a {@code GraphicsConfiguration} so that 72 units in user * space equals 1 inch in device space. *

* For a particular {@link Graphics2D}, g, one @@ -181,16 +181,16 @@ * g.setTransform(gc.getDefaultTransform()); * g.transform(gc.getNormalizingTransform()); * - * Note that sometimes this AffineTransform is identity, + * Note that sometimes this {@code AffineTransform} is identity, * such as for printers or metafile output, and that this - * AffineTransform is only as accurate as the information + * {@code AffineTransform} is only as accurate as the information * supplied by the underlying system. For image buffers not * associated with a device, such as those not created by - * createCompatibleImage, this - * AffineTransform is the Identity transform + * {@code createCompatibleImage}, this + * {@code AffineTransform} is the Identity transform * since there is no valid distance measurement. - * @return an AffineTransform to concatenate to the - * default AffineTransform so that 72 units in user + * @return an {@code AffineTransform} to concatenate to the + * default {@code AffineTransform} so that 72 units in user * space is mapped to 1 inch in device space. */ public AffineTransform getNormalizingTransform() { @@ -198,12 +198,12 @@ } /** - * Returns the bounds of the GraphicsConfiguration + * Returns the bounds of the {@code GraphicsConfiguration} * in the device coordinates. In a multi-screen environment * with a virtual device, the bounds can have negative X * or Y origins. * @return the bounds of the area covered by this - * GraphicsConfiguration. + * {@code GraphicsConfiguration}. * @since 1.3 */ public Rectangle getBounds() { --- old/src/java.desktop/macosx/classes/sun/lwawt/macosx/CPrinterJob.java 2015-10-04 22:51:51.253276504 +0400 +++ new/src/java.desktop/macosx/classes/sun/lwawt/macosx/CPrinterJob.java 2015-10-04 22:51:51.065276512 +0400 @@ -83,13 +83,13 @@ * to these native print services. * To present the cross platform print dialog for all services, * including native ones instead use - * printDialog(PrintRequestAttributeSet). + * {@code printDialog(PrintRequestAttributeSet)}. *

* PrinterJob implementations which can use PrintService's will update * the PrintService for this PrinterJob to reflect the new service * selected by the user. - * @return true if the user does not cancel the dialog; - * false otherwise. + * @return {@code true} if the user does not cancel the dialog; + * {@code false} otherwise. * @exception HeadlessException if GraphicsEnvironment.isHeadless() * returns true. * @see java.awt.GraphicsEnvironment#isHeadless @@ -117,19 +117,19 @@ /** * Displays a dialog that allows modification of a - * PageFormat instance. - * The page argument is used to initialize controls + * {@code PageFormat} instance. + * The {@code page} argument is used to initialize controls * in the page setup dialog. * If the user cancels the dialog then this method returns the - * original page object unmodified. + * original {@code page} object unmodified. * If the user okays the dialog then this method returns a new - * PageFormat object with the indicated changes. - * In either case, the original page object is + * {@code PageFormat} object with the indicated changes. + * In either case, the original {@code page} object is * not modified. - * @param page the default PageFormat presented to the + * @param page the default {@code PageFormat} presented to the * user for modification - * @return the original page object if the dialog - * is cancelled; a new PageFormat object + * @return the original {@code page} object if the dialog + * is cancelled; a new {@code PageFormat} object * containing the format indicated by the user if the * dialog is acknowledged. * @exception HeadlessException if GraphicsEnvironment.isHeadless() @@ -157,11 +157,11 @@ } /** - * Clones the PageFormat argument and alters the + * Clones the {@code PageFormat} argument and alters the * clone to describe a default page size and orientation. - * @param page the PageFormat to be cloned and altered - * @return clone of page, altered to describe a default - * PageFormat. + * @param page the {@code PageFormat} to be cloned and altered + * @return clone of {@code page}, altered to describe a default + * {@code PageFormat}. */ @Override public PageFormat defaultPage(PageFormat page) { --- old/src/java.desktop/macosx/classes/sun/lwawt/macosx/CRobot.java 2015-10-04 22:51:51.781276480 +0400 +++ new/src/java.desktop/macosx/classes/sun/lwawt/macosx/CRobot.java 2015-10-04 22:51:51.593276489 +0400 @@ -73,7 +73,7 @@ * Presses one or more mouse buttons. * * @param buttons the button mask (combination of - * InputEvent.BUTTON1/2/3_MASK) + * {@code InputEvent.BUTTON1/2/3_MASK}) */ @Override public void mousePress(int buttons) { @@ -87,7 +87,7 @@ * Releases one or more mouse buttons. * * @param buttons the button mask (combination of - * InputEvent.BUTTON1/2/3_MASK) + * {@code InputEvent.BUTTON1/2/3_MASK}) */ @Override public void mouseRelease(int buttons) { @@ -133,14 +133,14 @@ * Presses a given key. *

* Key codes that have more than one physical key associated with them - * (e.g. KeyEvent.VK_SHIFT could mean either the + * (e.g. {@code KeyEvent.VK_SHIFT} could mean either the * left or right shift key) will map to the left key. *

* Assumes that the * peer implementations will throw an exception for other bogus * values e.g. -1, 999999 * - * @param keycode the key to press (e.g. KeyEvent.VK_A) + * @param keycode the key to press (e.g. {@code KeyEvent.VK_A}) */ @Override public void keyPress(final int keycode) { @@ -151,14 +151,14 @@ * Releases a given key. *

* Key codes that have more than one physical key associated with them - * (e.g. KeyEvent.VK_SHIFT could mean either the + * (e.g. {@code KeyEvent.VK_SHIFT} could mean either the * left or right shift key) will map to the left key. *

* Assumes that the * peer implementations will throw an exception for other bogus * values e.g. -1, 999999 * - * @param keycode the key to release (e.g. KeyEvent.VK_A) + * @param keycode the key to release (e.g. {@code KeyEvent.VK_A}) */ @Override public void keyRelease(final int keycode) { --- old/src/java.desktop/macosx/classes/sun/lwawt/macosx/LWCToolkit.java 2015-10-04 22:51:52.301276457 +0400 +++ new/src/java.desktop/macosx/classes/sun/lwawt/macosx/LWCToolkit.java 2015-10-04 22:51:52.113276465 +0400 @@ -515,13 +515,13 @@ * key for menu shortcuts. *

* Menu shortcuts, which are embodied in the - * MenuShortcut class, are handled by the - * MenuBar class. + * {@code MenuShortcut} class, are handled by the + * {@code MenuBar} class. *

- * By default, this method returns Event.CTRL_MASK. + * By default, this method returns {@code Event.CTRL_MASK}. * Toolkit implementations should override this method if the * Control key isn't the correct key for accelerators. - * @return the modifier mask on the Event class + * @return the modifier mask on the {@code Event} class * that is used for menu shortcuts on this toolkit. * @see java.awt.MenuBar * @see java.awt.MenuShortcut --- old/src/java.desktop/share/classes/com/sun/imageio/plugins/bmp/BMPImageReader.java 2015-10-04 22:51:52.829276433 +0400 +++ new/src/java.desktop/share/classes/com/sun/imageio/plugins/bmp/BMPImageReader.java 2015-10-04 22:51:52.637276442 +0400 @@ -74,7 +74,7 @@ /** This class is the Java Image IO plugin reader for BMP images. * It may subsample the image, clip the image, select sub-bands, * and shift the decoded image origin if the proper decoding parameter - * are set in the provided ImageReadParam. + * are set in the provided {@code ImageReadParam}. * * This class supports Microsoft Windows Bitmap Version 3-5, * as well as OS/2 Bitmap Version 2.x (for single-image BMP file). @@ -159,8 +159,8 @@ /** source and destination bands. */ private int[] sourceBands, destBands; - /** Constructs BMPImageReader from the provided - * ImageReaderSpi. + /** Constructs {@code BMPImageReader} from the provided + * {@code ImageReaderSpi}. */ public BMPImageReader(ImageReaderSpi originator) { super(originator); @@ -1670,8 +1670,8 @@ /** Decodes the jpeg/png image embedded in the bitmap using any jpeg * ImageIO-style plugin. * - * @param bi The destination BufferedImage. - * @param bmpParam The ImageReadParam for decoding this + * @param bi The destination {@code BufferedImage}. + * @param bmpParam The {@code ImageReadParam} for decoding this * BMP image. The parameters for subregion, band selection and * subsampling are used in decoding the jpeg image. */ --- old/src/java.desktop/share/classes/com/sun/imageio/plugins/bmp/BMPImageWriter.java 2015-10-04 22:51:53.369276409 +0400 +++ new/src/java.desktop/share/classes/com/sun/imageio/plugins/bmp/BMPImageWriter.java 2015-10-04 22:51:53.181276417 +0400 @@ -69,7 +69,7 @@ * a BMP format. * * The encoding process may clip, subsample using the parameters - * specified in the ImageWriteParam. + * specified in the {@code ImageWriteParam}. * * @see javax.imageio.plugins.bmp.BMPImageWriteParam */ @@ -88,8 +88,8 @@ private short[] spixels; private int[] ipixels; - /** Constructs BMPImageWriter based on the provided - * ImageWriterSpi. + /** Constructs {@code BMPImageWriter} based on the provided + * {@code ImageWriterSpi}. */ public BMPImageWriter(ImageWriterSpi originator) { super(originator); --- old/src/java.desktop/share/classes/com/sun/imageio/plugins/common/BogusColorSpace.java 2015-10-04 22:51:53.901276385 +0400 +++ new/src/java.desktop/share/classes/com/sun/imageio/plugins/common/BogusColorSpace.java 2015-10-04 22:51:53.713276394 +0400 @@ -28,7 +28,7 @@ import java.awt.color.ColorSpace; /** - * A dummy ColorSpace to enable ColorModel + * A dummy {@code ColorSpace} to enable {@code ColorModel} * for image data which do not have an innate color representation. */ @SuppressWarnings("serial") // JDK-implementation class @@ -37,8 +37,8 @@ * Return the type given the number of components. * * @param numComponents The number of components in the - * ColorSpace. - * @exception IllegalArgumentException if numComponents + * {@code ColorSpace}. + * @exception IllegalArgumentException if {@code numComponents} * is less than 1. */ private static int getType(int numComponents) { @@ -62,11 +62,11 @@ } /** - * Constructs a bogus ColorSpace. + * Constructs a bogus {@code ColorSpace}. * * @param numComponents The number of components in the - * ColorSpace. - * @exception IllegalArgumentException if numComponents + * {@code ColorSpace}. + * @exception IllegalArgumentException if {@code numComponents} * is less than 1. */ public BogusColorSpace(int numComponents) { --- old/src/java.desktop/share/classes/com/sun/imageio/plugins/common/I18NImpl.java 2015-10-04 22:51:54.421276362 +0400 +++ new/src/java.desktop/share/classes/com/sun/imageio/plugins/common/I18NImpl.java 2015-10-04 22:51:54.233276370 +0400 @@ -37,9 +37,9 @@ * the file from the jar as the package name is included automatically. * *

Extenders need only provide a static method - * getString(String) which calls the static method in this + * {@code getString(String)} which calls the static method in this * class with the name of the invoking class and returns a - * String. + * {@code String}. */ public class I18NImpl { /** --- old/src/java.desktop/share/classes/com/sun/imageio/plugins/common/ImageUtil.java 2015-10-04 22:51:55.041276334 +0400 +++ new/src/java.desktop/share/classes/com/sun/imageio/plugins/common/ImageUtil.java 2015-10-04 22:51:54.849276342 +0400 @@ -106,35 +106,35 @@ */ /** - * Creates a ColorModel that may be used with the - * specified SampleModel. If a suitable - * ColorModel cannot be found, this method returns - * null. - * - *

Suitable ColorModels are guaranteed to exist - * for all instances of ComponentSampleModel. - * For 1- and 3- banded SampleModels, the returned - * ColorModel will be opaque. For 2- and 4-banded - * SampleModels, the output will use alpha transparency + * Creates a {@code ColorModel} that may be used with the + * specified {@code SampleModel}. If a suitable + * {@code ColorModel} cannot be found, this method returns + * {@code null}. + * + *

Suitable {@code ColorModel}s are guaranteed to exist + * for all instances of {@code ComponentSampleModel}. + * For 1- and 3- banded {@code SampleModel}s, the returned + * {@code ColorModel} will be opaque. For 2- and 4-banded + * {@code SampleModel}s, the output will use alpha transparency * which is not premultiplied. 1- and 2-banded data will use a - * grayscale ColorSpace, and 3- and 4-banded data a sRGB - * ColorSpace. Data with 5 or more bands will have a - * BogusColorSpace.

+ * grayscale {@code ColorSpace}, and 3- and 4-banded data a sRGB + * {@code ColorSpace}. Data with 5 or more bands will have a + * {@code BogusColorSpace}.

* - *

An instance of DirectColorModel will be created for - * instances of SinglePixelPackedSampleModel with no more + *

An instance of {@code DirectColorModel} will be created for + * instances of {@code SinglePixelPackedSampleModel} with no more * than 4 bands.

* - *

An instance of IndexColorModel will be created for - * instances of MultiPixelPackedSampleModel. The colormap - * will be a grayscale ramp with 1 << numberOfBits + *

An instance of {@code IndexColorModel} will be created for + * instances of {@code MultiPixelPackedSampleModel}. The colormap + * will be a grayscale ramp with 1 << numberOfBits * entries ranging from zero to at most 255.

* - * @return An instance of ColorModel that is suitable for - * the supplied SampleModel, or null. + * @return An instance of {@code ColorModel} that is suitable for + * the supplied {@code SampleModel}, or {@code null}. * - * @throws IllegalArgumentException If sampleModel is - * null. + * @throws IllegalArgumentException If {@code sampleModel} is + * {@code null}. */ public static final ColorModel createColorModel(SampleModel sampleModel) { // Check the parameter. @@ -242,19 +242,19 @@ } /** - * For the case of binary data (isBinary() returns - * true), return the binary data as a packed byte array. + * For the case of binary data ({@code isBinary()} returns + * {@code true}), return the binary data as a packed byte array. * The data will be packed as eight bits per byte with no bit offset, * i.e., the first bit in each image line will be the left-most of the * first byte of the line. The line stride in bytes will be - * (int)((getWidth()+7)/8). The length of the returned - * array will be the line stride multiplied by getHeight() + * {@code (int)((getWidth()+7)/8)}. The length of the returned + * array will be the line stride multiplied by {@code getHeight()} * * @return the binary data as a packed array of bytes with zero offset - * of null if the data are not binary. - * @throws IllegalArgumentException if isBinary() returns - * false with the SampleModel of the - * supplied Raster as argument. + * of {@code null} if the data are not binary. + * @throws IllegalArgumentException if {@code isBinary()} returns + * {@code false} with the {@code SampleModel} of the + * supplied {@code Raster} as argument. */ public static byte[] getPackedBinaryData(Raster raster, Rectangle rect) { @@ -435,11 +435,11 @@ /** * Returns the binary data unpacked into an array of bytes. - * The line stride will be the width of the Raster. + * The line stride will be the width of the {@code Raster}. * - * @throws IllegalArgumentException if isBinary() returns - * false with the SampleModel of the - * supplied Raster as argument. + * @throws IllegalArgumentException if {@code isBinary()} returns + * {@code false} with the {@code SampleModel} of the + * supplied {@code Raster} as argument. */ public static byte[] getUnpackedBinaryData(Raster raster, Rectangle rect) { @@ -515,13 +515,13 @@ } /** - * Sets the supplied Raster's data from an array + * Sets the supplied {@code Raster}'s data from an array * of packed binary data of the form returned by - * getPackedBinaryData(). + * {@code getPackedBinaryData()}. * - * @throws IllegalArgumentException if isBinary() returns - * false with the SampleModel of the - * supplied Raster as argument. + * @throws IllegalArgumentException if {@code isBinary()} returns + * {@code false} with the {@code SampleModel} of the + * supplied {@code Raster} as argument. */ public static void setPackedBinaryData(byte[] binaryDataArray, WritableRaster raster, @@ -761,16 +761,16 @@ } /** - * Copies data into the packed array of the Raster + * Copies data into the packed array of the {@code Raster} * from an array of unpacked data of the form returned by - * getUnpackedBinaryData(). + * {@code getUnpackedBinaryData()}. * *

If the data are binary, then the target bit will be set if * and only if the corresponding byte is non-zero. * - * @throws IllegalArgumentException if isBinary() returns - * false with the SampleModel of the - * supplied Raster as argument. + * @throws IllegalArgumentException if {@code isBinary()} returns + * {@code false} with the {@code SampleModel} of the + * supplied {@code Raster} as argument. */ public static void setUnpackedBinaryData(byte[] bdata, WritableRaster raster, @@ -1031,7 +1031,7 @@ * @param g The green channel color indices. * @param b The blue channel color indices. * @return If all the indices have 256 entries, and are identical mappings, - * return true; otherwise, return false. + * return {@code true}; otherwise, return {@code false}. */ public static boolean isIndicesForGrayscale(byte[] r, byte[] g, byte[] b) { if (r.length != g.length || r.length != b.length) @@ -1052,7 +1052,7 @@ return true; } - /** Converts the provided object to String */ + /** Converts the provided object to {@code String} */ public static String convertObjectToString(Object obj) { if (obj == null) return ""; @@ -1083,10 +1083,10 @@ } - /** Checks that the provided ImageWriter can encode - * the provided ImageTypeSpecifier or not. If not, an - * IIOException will be thrown. - * @param writer The provided ImageWriter. + /** Checks that the provided {@code ImageWriter} can encode + * the provided {@code ImageTypeSpecifier} or not. If not, an + * {@code IIOException} will be thrown. + * @param writer The provided {@code ImageWriter}. * @param type The image to be tested. * @throws IIOException If the writer cannot encoded the provided image. */ @@ -1101,12 +1101,12 @@ } } - /** Checks that the provided ImageWriter can encode - * the provided ColorModel and SampleModel. - * If not, an IIOException will be thrown. - * @param writer The provided ImageWriter. - * @param colorModel The provided ColorModel. - * @param sampleModel The provided SampleModel. + /** Checks that the provided {@code ImageWriter} can encode + * the provided {@code ColorModel} and {@code SampleModel}. + * If not, an {@code IIOException} will be thrown. + * @param writer The provided {@code ImageWriter}. + * @param colorModel The provided {@code ColorModel}. + * @param sampleModel The provided {@code SampleModel}. * @throws IIOException If the writer cannot encoded the provided image. */ public static final void canEncodeImage(ImageWriter writer, --- old/src/java.desktop/share/classes/com/sun/imageio/plugins/common/LZWStringTable.java 2015-10-04 22:51:55.577276310 +0400 +++ new/src/java.desktop/share/classes/com/sun/imageio/plugins/common/LZWStringTable.java 2015-10-04 22:51:55.389276318 +0400 @@ -31,9 +31,9 @@ * General purpose LZW String Table. * Extracted from GIFEncoder by Adam Doppelt * Comments added by Robin Luiten - * expandCode added by Robin Luiten + * {@code expandCode} added by Robin Luiten * The strLen table to give quick access to the lenght of an expanded - * code for use by the expandCode method added by Robin. + * code for use by the {@code expandCode} method added by Robin. **/ public class LZWStringTable { /** codesize + Reserved Codes */ --- old/src/java.desktop/share/classes/com/sun/imageio/plugins/common/PaletteBuilder.java 2015-10-04 22:51:56.097276286 +0400 +++ new/src/java.desktop/share/classes/com/sun/imageio/plugins/common/PaletteBuilder.java 2015-10-04 22:51:55.909276295 +0400 @@ -70,19 +70,19 @@ /** * Creates an image representing given image - * src using IndexColorModel. + * {@code src} using {@code IndexColorModel}. * * Lossless conversion is not always possible (e.g. if number * of colors in the given image exceeds maximum palette size). * Result image then is an approximation constructed by octree * quantization method. * - * @exception IllegalArgumentException if src is - * null. + * @exception IllegalArgumentException if {@code src} is + * {@code null}. * * @exception UnsupportedOperationException if implemented method - * is unable to create approximation of src - * and canCreatePalette returns false. + * is unable to create approximation of {@code src} + * and {@code canCreatePalette} returns {@code false}. * * @see createIndexColorModel * @@ -97,15 +97,15 @@ /** * Creates an palette representing colors from given image - * img. If number of colors in the given image exceeds + * {@code img}. If number of colors in the given image exceeds * maximum palette size closest colors would be merged. * - * @exception IllegalArgumentException if img is - * null. + * @exception IllegalArgumentException if {@code img} is + * {@code null}. * * @exception UnsupportedOperationException if implemented method - * is unable to create approximation of img - * and canCreatePalette returns false. + * is unable to create approximation of {@code img} + * and {@code canCreatePalette} returns {@code false}. * * @see createIndexedImage * @@ -119,17 +119,17 @@ } /** - * Returns true if PaletteBuilder is able to create + * Returns {@code true} if PaletteBuilder is able to create * palette for given image type. * - * @param type an instance of ImageTypeSpecifier to be + * @param type an instance of {@code ImageTypeSpecifier} to be * indexed. * - * @return true if the PaletteBuilder + * @return {@code true} if the {@code PaletteBuilder} * is likely to be able to create palette for this image type. * - * @exception IllegalArgumentException if type - * is null. + * @exception IllegalArgumentException if {@code type} + * is {@code null}. */ public static boolean canCreatePalette(ImageTypeSpecifier type) { if (type == null) { @@ -139,17 +139,17 @@ } /** - * Returns true if PaletteBuilder is able to create + * Returns {@code true} if PaletteBuilder is able to create * palette for given rendered image. * - * @param image an instance of RenderedImage to be + * @param image an instance of {@code RenderedImage} to be * indexed. * - * @return true if the PaletteBuilder + * @return {@code true} if the {@code PaletteBuilder} * is likely to be able to create palette for this image type. * - * @exception IllegalArgumentException if image - * is null. + * @exception IllegalArgumentException if {@code image} + * is {@code null}. */ public static boolean canCreatePalette(RenderedImage image) { if (image == null) { --- old/src/java.desktop/share/classes/com/sun/imageio/plugins/common/ReaderUtil.java 2015-10-04 22:51:56.625276263 +0400 +++ new/src/java.desktop/share/classes/com/sun/imageio/plugins/common/ReaderUtil.java 2015-10-04 22:51:56.437276271 +0400 @@ -134,25 +134,25 @@ * pixels that will be written during a particular decoding pass. * The intent is to simplify the work done by readers in combining * the source region, source subsampling, and destination offset - * information obtained from the ImageReadParam with + * information obtained from the {@code ImageReadParam} with * the offsets and periods of a progressive or interlaced decoding * pass. * - * @param sourceRegion a Rectangle containing the + * @param sourceRegion a {@code Rectangle} containing the * source region being read, offset by the source subsampling * offsets, and clipped against the source bounds, as returned by - * the getSourceRegion method. - * @param destinationOffset a Point containing the + * the {@code getSourceRegion} method. + * @param destinationOffset a {@code Point} containing the * coordinates of the upper-left pixel to be written in the * destination. * @param dstMinX the smallest X coordinate (inclusive) of the - * destination Raster. + * destination {@code Raster}. * @param dstMinY the smallest Y coordinate (inclusive) of the - * destination Raster. + * destination {@code Raster}. * @param dstMaxX the largest X coordinate (inclusive) of the destination - * Raster. + * {@code Raster}. * @param dstMaxY the largest Y coordinate (inclusive) of the destination - * Raster. + * {@code Raster}. * @param sourceXSubsampling the X subsampling factor. * @param sourceYSubsampling the Y subsampling factor. * @param passXStart the smallest source X coordinate (inclusive) @@ -168,7 +168,7 @@ * @param passPeriodY the Y period (vertical spacing between * pixels) of the current progressive pass. * - * @return an array of 6 ints containing the + * @return an array of 6 {@code int}s containing the * destination min X, min Y, width, height, X period and Y period * of the region that will be updated. */ --- old/src/java.desktop/share/classes/com/sun/imageio/plugins/gif/GIFImageReader.java 2015-10-04 22:51:57.165276238 +0400 +++ new/src/java.desktop/share/classes/com/sun/imageio/plugins/gif/GIFImageReader.java 2015-10-04 22:51:56.973276247 +0400 @@ -1017,7 +1017,7 @@ /** * Remove all settings including global settings such as - * Locales and listeners, as well as stream settings. + * {@code Locale}s and listeners, as well as stream settings. */ public void reset() { super.reset(); --- old/src/java.desktop/share/classes/com/sun/imageio/plugins/gif/GIFImageWriter.java 2015-10-04 22:51:57.697276215 +0400 +++ new/src/java.desktop/share/classes/com/sun/imageio/plugins/gif/GIFImageWriter.java 2015-10-04 22:51:57.509276223 +0400 @@ -70,7 +70,7 @@ GIFWritableImageMetadata.NATIVE_FORMAT_NAME; /** - * The output case to an ImageOutputStream. + * The {@code output} case to an {@code ImageOutputStream}. */ private ImageOutputStream stream = null; @@ -272,7 +272,7 @@ } /** - * Merges inData into outData. The supplied + * Merges {@code inData} into {@code outData}. The supplied * metadata format name is attempted first and failing that the standard * metadata format name is attempted. */ @@ -554,8 +554,8 @@ * * @param writeHeader Whether to write the header. * @param writeTrailer Whether to write the trailer. - * @param sm The stream metadata or null if - * writeHeader is false. + * @param sm The stream metadata or {@code null} if + * {@code writeHeader} is {@code false}. * @param iioimage The image and image metadata. * @param p The write parameters. * @@ -564,10 +564,10 @@ * greater than 8. * @throws IllegalArgumentException if the color component size is * greater than 8. - * @throws IllegalArgumentException if writeHeader is - * true and sm is null. - * @throws IllegalArgumentException if writeHeader is - * false and a sequence is not being written. + * @throws IllegalArgumentException if {@code writeHeader} is + * {@code true} and {@code sm} is {@code null}. + * @throws IllegalArgumentException if {@code writeHeader} is + * {@code false} and a sequence is not being written. */ private void write(boolean writeHeader, boolean writeTrailer, --- old/src/java.desktop/share/classes/com/sun/imageio/plugins/gif/GIFMetadata.java 2015-10-04 22:51:58.233276191 +0400 +++ new/src/java.desktop/share/classes/com/sun/imageio/plugins/gif/GIFMetadata.java 2015-10-04 22:51:58.041276199 +0400 @@ -32,7 +32,7 @@ /** * Class which adds utility DOM element attribute access methods to - * IIOMetadata for subclass use. + * {@code IIOMetadata} for subclass use. */ abstract class GIFMetadata extends IIOMetadata { --- old/src/java.desktop/share/classes/com/sun/imageio/plugins/jpeg/COMMarkerSegment.java 2015-10-04 22:51:58.757276167 +0400 +++ new/src/java.desktop/share/classes/com/sun/imageio/plugins/jpeg/COMMarkerSegment.java 2015-10-04 22:51:58.569276175 +0400 @@ -39,7 +39,7 @@ * comment data as it is read from the stream. If the marker segment is * constructed from a String, then local default encoding is assumed * when creating the byte array. If the marker segment is created from - * an IIOMetadataNode, the user object, if present is + * an {@code IIOMetadataNode}, the user object, if present is * assumed to be a byte array containing the comment data. If there is * no user object then the comment attribute is used to create the * byte array, again assuming the default local encoding. @@ -49,7 +49,7 @@ /** * Constructs a marker segment from the given buffer, which contains - * data from an ImageInputStream. This is used when + * data from an {@code ImageInputStream}. This is used when * reading metadata from a stream. */ COMMarkerSegment(JPEGBuffer buffer) throws IOException { @@ -69,7 +69,7 @@ /** * Constructs a marker segment from a native tree node. If the node - * is an IIOMetadataNode and contains a user object, + * is an {@code IIOMetadataNode} and contains a user object, * that object is used rather than the string attribute. If the * string attribute is used, the default encoding is used. */ @@ -103,7 +103,7 @@ } /** - * Returns an IIOMetadataNode containing the data array + * Returns an {@code IIOMetadataNode} containing the data array * as a user object and a string encoded using ISO-8895-1, as an * attribute. */ --- old/src/java.desktop/share/classes/com/sun/imageio/plugins/jpeg/JFIFMarkerSegment.java 2015-10-04 22:51:59.281276143 +0400 +++ new/src/java.desktop/share/classes/com/sun/imageio/plugins/jpeg/JFIFMarkerSegment.java 2015-10-04 22:51:59.089276152 +0400 @@ -90,7 +90,7 @@ private final boolean debug = false; /** - * Set to true when reading the chunks of an + * Set to {@code true} when reading the chunks of an * ICC profile. All chunks are consolidated to create a single * "segment" containing all the chunks. This flag is a state * variable identifying whether to construct a new segment or @@ -594,10 +594,10 @@ /** * Writes out a default JFIF marker segment to the given - * output stream. If thumbnails is not null, + * output stream. If {@code thumbnails} is not {@code null}, * writes out the set of thumbnail images as JFXX marker segments, or * incorporated into the JFIF segment if appropriate. - * If iccProfile is not null, + * If {@code iccProfile} is not {@code null}, * writes out the profile after the JFIF segment using as many APP2 * marker segments as necessary. */ --- old/src/java.desktop/share/classes/com/sun/imageio/plugins/jpeg/JPEG.java 2015-10-04 22:51:59.813276120 +0400 +++ new/src/java.desktop/share/classes/com/sun/imageio/plugins/jpeg/JPEG.java 2015-10-04 22:51:59.625276128 +0400 @@ -36,7 +36,7 @@ /** * A class containing JPEG-related constants, definitions, and * static methods. This class and its constants must be public so that - * JPEGImageWriteParam can see it. + * {@code JPEGImageWriteParam} can see it. */ public class JPEG { @@ -234,10 +234,10 @@ public static final float DEFAULT_QUALITY = 0.75F; /** - * Returns true if the given ColorSpace + * Returns {@code true} if the given {@code ColorSpace} * object is an instance of ICC_ColorSpace but is not one of the - * standard ColorSpaces returned by - * ColorSpace.getInstance(). + * standard {@code ColorSpaces} returned by + * {@code ColorSpace.getInstance()}. */ static boolean isNonStandardICC(ColorSpace cs) { boolean retval = false; @@ -255,8 +255,8 @@ /** - * Returns true if the given imageType can be used - * in a JFIF file. If input is true, then the + * Returns {@code true} if the given imageType can be used + * in a JFIF file. If {@code input} is true, then the * image type is considered before colorspace conversion. */ static boolean isJFIFcompliant(ImageTypeSpecifier imageType, @@ -295,7 +295,7 @@ /** * Given an image type, return the Adobe transform corresponding to * that type, or ADOBE_IMPOSSIBLE if the image type is incompatible - * with an Adobe marker segment. If input is true, then + * with an Adobe marker segment. If {@code input} is true, then * the image type is considered before colorspace conversion. */ static int transformForType(ImageTypeSpecifier imageType, boolean input) { --- old/src/java.desktop/share/classes/com/sun/imageio/plugins/jpeg/JPEGBuffer.java 2015-10-04 22:52:00.341276096 +0400 +++ new/src/java.desktop/share/classes/com/sun/imageio/plugins/jpeg/JPEGBuffer.java 2015-10-04 22:52:00.153276104 +0400 @@ -75,12 +75,12 @@ } /** - * Ensures that there are at least count bytes available + * Ensures that there are at least {@code count} bytes available * in the buffer, loading more data and moving any remaining * bytes to the front. A count of 0 means to just fill the buffer. * If the count is larger than the buffer size, just fills the buffer. * If the end of the stream is encountered before a non-0 count can - * be satisfied, an IIOException is thrown with the + * be satisfied, an {@code IIOException} is thrown with the * message "Image Format Error". */ void loadBuf(int count) throws IOException { @@ -122,7 +122,7 @@ * the buffer and then reading directly from the stream * if necessary. The buffer is left in an appropriate * state. If the end of the stream is encountered, an - * IIOException is thrown with the + * {@code IIOException} is thrown with the * message "Image Format Error". */ void readData(byte [] data) throws IOException { @@ -149,9 +149,9 @@ } /** - * Skips count bytes, leaving the buffer + * Skips {@code count} bytes, leaving the buffer * in an appropriate state. If the end of the stream is - * encountered, an IIOException is thrown with the + * encountered, an {@code IIOException} is thrown with the * message "Image Format Error". */ void skipData(int count) throws IOException { @@ -195,8 +195,8 @@ * the buffer as necessary. The buffer position is left * pointing to the first non-0xff byte after a run of * 0xff bytes. If the end of the stream is encountered, - * an EOI marker is inserted into the buffer and true - * is returned. Otherwise returns false. + * an EOI marker is inserted into the buffer and {@code true} + * is returned. Otherwise returns {@code false}. */ boolean scanForFF(JPEGImageReader reader) throws IOException { boolean retval = false; --- old/src/java.desktop/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageReader.java 2015-10-04 22:52:00.865276072 +0400 +++ new/src/java.desktop/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageReader.java 2015-10-04 22:52:00.677276081 +0400 @@ -544,7 +544,7 @@ } /** - * Returns true if there is an image beyond + * Returns {@code true} if there is an image beyond * the current stream position. Does not disturb the * stream position. */ @@ -614,13 +614,13 @@ /** * Read in the header information starting from the current - * stream position, returning true if the + * stream position, returning {@code true} if the * header was a tables-only image. After this call, the * native IJG decompression struct will contain the image * information required by most query calls below * (e.g. getWidth, getHeight, etc.), if the header was not * a tables-only image. - * If reset is true, the state of the IJG + * If reset is {@code true}, the state of the IJG * object is reset so that it can read a header again. * This happens automatically if the header was a tables-only * image. @@ -867,7 +867,7 @@ * Checks the implied color conversion between the stream and * the target image, altering the IJG output color space if necessary. * If a java color conversion is required, then this sets up - * convert. + * {@code convert}. * If bands are being rearranged at all (either source or destination * bands are specified in the param), then the default color * conversions are assumed to be correct. @@ -1394,7 +1394,7 @@ } /** - * Returns true if the read was aborted. + * Returns {@code true} if the read was aborted. */ private native boolean readImage(long structPointer, byte [] buffer, --- old/src/java.desktop/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageWriter.java 2015-10-04 22:52:01.401276048 +0400 +++ new/src/java.desktop/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageWriter.java 2015-10-04 22:52:01.213276057 +0400 @@ -1130,10 +1130,10 @@ /* * from jpeg_metadata.html: * If no stream metadata is supplied to - * ImageWriter.prepareWriteSequence, then no + * {@code ImageWriter.prepareWriteSequence}, then no * tables-only image is written. If stream metadata containing * no tables is supplied to - * ImageWriter.prepareWriteSequence, then a tables-only + * {@code ImageWriter.prepareWriteSequence}, then a tables-only * image containing default visually lossless tables is written. */ if (streamMetadata != null) { @@ -1699,7 +1699,7 @@ private native void setDest(long structPointer); /** - * Returns true if the write was aborted. + * Returns {@code true} if the write was aborted. */ private native boolean writeImage(long structPointer, byte [] data, --- old/src/java.desktop/share/classes/com/sun/imageio/plugins/jpeg/JPEGMetadata.java 2015-10-04 22:52:01.945276024 +0400 +++ new/src/java.desktop/share/classes/com/sun/imageio/plugins/jpeg/JPEGMetadata.java 2015-10-04 22:52:01.753276032 +0400 @@ -66,17 +66,17 @@ private static final boolean debug = false; /** - * A copy of markerSequence, created the first time the - * markerSequence is modified. This is used by reset + * A copy of {@code markerSequence}, created the first time the + * {@code markerSequence} is modified. This is used by reset * to restore the original state. */ private List resetSequence = null; /** - * Set to true when reading a thumbnail stored as + * Set to {@code true} when reading a thumbnail stored as * JPEG. This is used to enforce the prohibition of JFIF thumbnails * containing any JFIF marker segments, and to ensure generation of - * a correct native subtree during getAsTree. + * a correct native subtree during {@code getAsTree}. */ private boolean inThumb = false; @@ -93,7 +93,7 @@ /////// Package-access variables /** - * All data is a list of MarkerSegment objects. + * All data is a list of {@code MarkerSegment} objects. * When accessing the list, use the tag to identify the particular * subclass. Any JFIF marker segment must be the first element * of the list if it is present, and any JFXX or APP2ICC marker @@ -132,17 +132,17 @@ } /* - * Constructs a JPEGMetadata object by reading the - * contents of an ImageInputStream. Has package-only + * Constructs a {@code JPEGMetadata} object by reading the + * contents of an {@code ImageInputStream}. Has package-only * access. * * @param isStream A boolean indicating whether this object will be * stream or image metadata. * @param isThumb A boolean indicating whether this metadata object * is for an image or for a thumbnail stored as JPEG. - * @param iis An ImageInputStream from which to read + * @param iis An {@code ImageInputStream} from which to read * the metadata. - * @param reader The JPEGImageReader calling this + * @param reader The {@code JPEGImageReader} calling this * constructor, to which warnings should be sent. */ JPEGMetadata(boolean isStream, @@ -365,7 +365,7 @@ } /** - * Constructs a default stream JPEGMetadata object appropriate + * Constructs a default stream {@code JPEGMetadata} object appropriate * for the given write parameters. */ JPEGMetadata(ImageWriteParam param, JPEGImageWriter writer) { @@ -398,7 +398,7 @@ } /** - * Constructs a default image JPEGMetadata object appropriate + * Constructs a default image {@code JPEGMetadata} object appropriate * for the given image type and write parameters. */ JPEGMetadata(ImageTypeSpecifier imageType, @@ -2248,7 +2248,7 @@ /** * Check that this metadata object is in a consistent state and - * return true if it is or false + * return {@code true} if it is or {@code false} * otherwise. All the constructors and modifiers should call * this method at the end to guarantee that the data is always * consistent, as the writer relies on this. --- old/src/java.desktop/share/classes/com/sun/imageio/plugins/jpeg/JPEGMetadataFormat.java 2015-10-04 22:52:02.493275999 +0400 +++ new/src/java.desktop/share/classes/com/sun/imageio/plugins/jpeg/JPEGMetadataFormat.java 2015-10-04 22:52:02.305276008 +0400 @@ -133,12 +133,12 @@ } /** - * Returns true if the named element occurs in the + * Returns {@code true} if the named element occurs in the * subtree of the format starting with the node named by - * subtreeName, including the node - * itself. subtreeName may be any node in + * {@code subtreeName}, including the node + * itself. {@code subtreeName} may be any node in * the format. If it is not, an - * IllegalArgumentException is thrown. + * {@code IllegalArgumentException} is thrown. */ protected boolean isInSubtree(String elementName, String subtreeName) { --- old/src/java.desktop/share/classes/com/sun/imageio/plugins/jpeg/MarkerSegment.java 2015-10-04 22:52:03.013275976 +0400 +++ new/src/java.desktop/share/classes/com/sun/imageio/plugins/jpeg/MarkerSegment.java 2015-10-04 22:52:02.825275984 +0400 @@ -51,8 +51,8 @@ boolean unknown = false; // Set to true if the tag is not recognized /** - * Constructor for creating MarkerSegments by reading - * from an ImageInputStream. + * Constructor for creating {@code MarkerSegment}s by reading + * from an {@code ImageInputStream}. */ MarkerSegment(JPEGBuffer buffer) throws IOException { --- old/src/java.desktop/share/classes/com/sun/imageio/plugins/png/PNGMetadata.java 2015-10-04 22:52:03.541275952 +0400 +++ new/src/java.desktop/share/classes/com/sun/imageio/plugins/png/PNGMetadata.java 2015-10-04 22:52:03.349275961 +0400 @@ -254,7 +254,7 @@ /** * Sets the IHDR_bitDepth and IHDR_colorType variables. - * The numBands parameter is necessary since + * The {@code numBands} parameter is necessary since * we may only be writing a subset of the image bands. */ public void initialize(ImageTypeSpecifier imageType, int numBands) { --- old/src/java.desktop/share/classes/com/sun/imageio/plugins/wbmp/WBMPImageReader.java 2015-10-04 22:52:04.081275928 +0400 +++ new/src/java.desktop/share/classes/com/sun/imageio/plugins/wbmp/WBMPImageReader.java 2015-10-04 22:52:03.889275937 +0400 @@ -50,7 +50,7 @@ /** This class is the Java Image IO plugin reader for WBMP images. * It may subsample the image, clip the image, * and shift the decoded image origin if the proper decoding parameter - * are set in the provided WBMPImageReadParam. + * are set in the provided {@code WBMPImageReadParam}. */ public class WBMPImageReader extends ImageReader { /** The input stream where reads from */ @@ -69,8 +69,8 @@ private WBMPMetadata metadata; - /** Constructs WBMPImageReader from the provided - * ImageReaderSpi. + /** Constructs {@code WBMPImageReader} from the provided + * {@code ImageReaderSpi}. */ public WBMPImageReader(ImageReaderSpi originator) { super(originator); --- old/src/java.desktop/share/classes/com/sun/imageio/plugins/wbmp/WBMPImageWriter.java 2015-10-04 22:52:04.601275905 +0400 +++ new/src/java.desktop/share/classes/com/sun/imageio/plugins/wbmp/WBMPImageWriter.java 2015-10-04 22:52:04.413275913 +0400 @@ -57,7 +57,7 @@ * a WBMP format. * * The encoding process may clip, subsample using the parameters - * specified in the ImageWriteParam. + * specified in the {@code ImageWriteParam}. * * @see com.sun.media.imageio.plugins.WBMPImageWriteParam */ @@ -92,8 +92,8 @@ return multiBytes; } - /** Constructs WBMPImageWriter based on the provided - * ImageWriterSpi. + /** Constructs {@code WBMPImageWriter} based on the provided + * {@code ImageWriterSpi}. */ public WBMPImageWriter(ImageWriterSpi originator) { super(originator); --- old/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/GTKColorChooserPanel.java 2015-10-04 22:52:05.157275880 +0400 +++ new/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/GTKColorChooserPanel.java 2015-10-04 22:52:04.937275889 +0400 @@ -113,7 +113,7 @@ } /** - * Returns the mnemonic to use with getDisplayName. + * Returns the mnemonic to use with {@code getDisplayName}. */ public int getMnemonic() { String m = (String)UIManager.get("GTKColorChooserPanel.mnemonic"); @@ -878,8 +878,8 @@ } /** - * Adjusts the saturation and brightness. x and - * y give the location to adjust to and are relative + * Adjusts the saturation and brightness. {@code x} and + * {@code y} give the location to adjust to and are relative * to the origin of the wheel/triangle. * * @param x X coordinate on the triangle to adjust to --- old/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/GTKLookAndFeel.java 2015-10-04 22:52:05.689275856 +0400 +++ new/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/GTKLookAndFeel.java 2015-10-04 22:52:05.497275864 +0400 @@ -85,7 +85,7 @@ private Font fallbackFont; /** - * If true, GTKLookAndFeel is inside the initialize + * If true, GTKLookAndFeel is inside the {@code initialize} * method. */ private boolean inInitialize; @@ -1671,11 +1671,11 @@ /** * Returns whether or not the UIs should update their - * SynthStyles from the SynthStyleFactory + * {@code SynthStyles} from the {@code SynthStyleFactory} * when the ancestor of the Component changes. * * @return whether or not the UIs should update their - * SynthStyles from the SynthStyleFactory + * {@code SynthStyles} from the {@code SynthStyleFactory} * when the ancestor changed. */ public boolean shouldUpdateStyleOnAncestorChanged() { --- old/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/GTKStyle.java 2015-10-04 22:52:06.229275831 +0400 +++ new/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/GTKStyle.java 2015-10-04 22:52:06.041275840 +0400 @@ -132,8 +132,8 @@ } /** - * Returns a SynthPainter that will route the appropriate - * calls to a GTKEngine. + * Returns a {@code SynthPainter} that will route the appropriate + * calls to a {@code GTKEngine}. * * @param state SynthContext identifying requestor * @return SynthPainter @@ -305,7 +305,7 @@ } /** - * Returns the Insets. If insets is non-null the resulting + * Returns the Insets. If {@code insets} is non-null the resulting * insets will be placed in it, otherwise a new Insets object will be * created and returned. * @@ -616,7 +616,7 @@ * @param key Key identifying class specific value * @param defaultValue Returned if there is no value for the specified * type - * @return Value, or defaultValue if key is not defined + * @return Value, or defaultValue if {@code key} is not defined */ private static int getClassSpecificIntValue(WidgetType wt, String key, int defaultValue) @@ -648,7 +648,7 @@ * @param key Key identifying class specific value * @param defaultValue Returned if there is no value for the specified * type - * @return Value, or defaultValue if key is not defined + * @return Value, or defaultValue if {@code key} is not defined */ int getClassSpecificIntValue(SynthContext context, String key, int defaultValue) @@ -668,7 +668,7 @@ * @param key Key identifying class specific value * @param defaultValue Returned if there is no value for the specified * type - * @return Value, or defaultValue if key is not defined + * @return Value, or defaultValue if {@code key} is not defined */ Insets getClassSpecificInsetsValue(SynthContext context, String key, Insets defaultValue) @@ -688,7 +688,7 @@ * @param key Key identifying class specific value * @param defaultValue Returned if there is no value for the specified * type - * @return Value, or defaultValue if key is not defined + * @return Value, or defaultValue if {@code key} is not defined */ boolean getClassSpecificBoolValue(SynthContext context, String key, boolean defaultValue) @@ -1068,7 +1068,7 @@ } /** - * GTKLazyValue is a slimmed down version of ProxyLaxyValue. + * GTKLazyValue is a slimmed down version of {@code ProxyLaxyValue}. * The code is duplicate so that it can get at the package private * classes in gtk. */ --- old/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/GTKStyleFactory.java 2015-10-04 22:52:06.765275807 +0400 +++ new/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/GTKStyleFactory.java 2015-10-04 22:52:06.573275816 +0400 @@ -52,8 +52,8 @@ } /** - * Returns the GTKStyle to use based on the - * Region id + * Returns the {@code GTKStyle} to use based on the + * {@code Region} id * * @param c this parameter isn't used, may be null. * @param id of the region to get the style. --- old/src/java.desktop/share/classes/com/sun/java/swing/plaf/motif/MotifOptionPaneUI.java 2015-10-04 22:52:07.285275784 +0400 +++ new/src/java.desktop/share/classes/com/sun/java/swing/plaf/motif/MotifOptionPaneUI.java 2015-10-04 22:52:07.097275792 +0400 @@ -59,7 +59,7 @@ /** * Creates and returns a Container containin the buttons. The buttons - * are created by calling getButtons. + * are created by calling {@code getButtons}. */ protected Container createButtonArea() { Container b = super.createButtonArea(); @@ -97,8 +97,8 @@ /** * Creates and adds a JLabel representing the icon returned from - * getIcon to top. This is messaged from - * createMessageArea + * {@code getIcon} to {@code top}. This is messaged from + * {@code createMessageArea} */ protected void addIcon(Container top) { /* Create the icon. */ --- old/src/java.desktop/share/classes/com/sun/java/swing/plaf/motif/MotifSplitPaneDivider.java 2015-10-04 22:52:07.797275761 +0400 +++ new/src/java.desktop/share/classes/com/sun/java/swing/plaf/motif/MotifSplitPaneDivider.java 2015-10-04 22:52:07.617275769 +0400 @@ -222,7 +222,7 @@ } /** - * Returns true if the point at x, y + * Returns true if the point at {@code x}, {@code y} * is inside the thumb. */ private boolean isInThumb(int x, int y) { --- old/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/DesktopProperty.java 2015-10-04 22:52:08.893275712 +0400 +++ new/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/DesktopProperty.java 2015-10-04 22:52:08.437275732 +0400 @@ -32,10 +32,10 @@ /** * Wrapper for a value from the desktop. The value is lazily looked up, and - * can be accessed using the UIManager.ActiveValue method - * createValue. If the underlying desktop property changes this + * can be accessed using the {@code UIManager.ActiveValue} method + * {@code createValue}. If the underlying desktop property changes this * will force the UIs to update all known Frames. You can invoke - * invalidate to force the value to be fetched again. + * {@code invalidate} to force the value to be fetched again. * */ // NOTE: Don't rely on this class staying in this location. It is likely @@ -191,7 +191,7 @@ /** * Invalides the current value so that the next invocation of - * createValue will ask for the property again. + * {@code createValue} will ask for the property again. */ public void invalidate() { value = null; --- old/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/TMSchema.java 2015-10-04 22:52:09.413275688 +0400 +++ new/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/TMSchema.java 2015-10-04 22:52:09.225275697 +0400 @@ -25,14 +25,14 @@ /* *

These classes are designed to be used while the - * corresponding LookAndFeel class has been installed + * corresponding {@code LookAndFeel} class has been installed * (UIManager.setLookAndFeel(new XXXLookAndFeel())). - * Using them while a different LookAndFeel is installed + * Using them while a different {@code LookAndFeel} is installed * may produce unexpected results, including exceptions. - * Additionally, changing the LookAndFeel - * maintained by the UIManager without updating the - * corresponding ComponentUI of any - * JComponents may also produce unexpected results, + * Additionally, changing the {@code LookAndFeel} + * maintained by the {@code UIManager} without updating the + * corresponding {@code ComponentUI} of any + * {@code JComponent}s may also produce unexpected results, * such as the wrong colors showing up, and is generally not * encouraged. * --- old/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/WindowsComboBoxUI.java 2015-10-04 22:52:09.929275665 +0400 +++ new/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/WindowsComboBoxUI.java 2015-10-04 22:52:09.753275673 +0400 @@ -374,9 +374,9 @@ /** * Creates the default editor that will be used in editable combo boxes. * A default editor will be used only if an editor has not been - * explicitly set with setEditor. + * explicitly set with {@code setEditor}. * - * @return a ComboBoxEditor used for the combo box + * @return a {@code ComboBoxEditor} used for the combo box * @see javax.swing.JComboBox#setEditor */ protected ComboBoxEditor createEditor() { --- old/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/WindowsFileChooserUI.java 2015-10-04 22:52:10.445275642 +0400 +++ new/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/WindowsFileChooserUI.java 2015-10-04 22:52:10.265275650 +0400 @@ -589,8 +589,8 @@ /** * Creates a selection listener for the list of files and directories. * - * @param fc a JFileChooser - * @return a ListSelectionListener + * @param fc a {@code JFileChooser} + * @return a {@code ListSelectionListener} */ public ListSelectionListener createListSelectionListener(JFileChooser fc) { return super.createListSelectionListener(fc); @@ -631,14 +631,14 @@ /** * Returns the preferred size of the specified - * JFileChooser. + * {@code JFileChooser}. * The preferred size is at least as large, * in both height and width, * as the preferred size recommended * by the file chooser's layout manager. * - * @param c a JFileChooser - * @return a Dimension specifying the preferred + * @param c a {@code JFileChooser} + * @return a {@code Dimension} specifying the preferred * width and height of the file chooser */ @Override @@ -654,10 +654,10 @@ } /** - * Returns the minimum size of the JFileChooser. + * Returns the minimum size of the {@code JFileChooser}. * - * @param c a JFileChooser - * @return a Dimension specifying the minimum + * @param c a {@code JFileChooser} + * @return a {@code Dimension} specifying the minimum * width and height of the file chooser */ @Override @@ -666,10 +666,10 @@ } /** - * Returns the maximum size of the JFileChooser. + * Returns the maximum size of the {@code JFileChooser}. * - * @param c a JFileChooser - * @return a Dimension specifying the maximum + * @param c a {@code JFileChooser} + * @return a {@code Dimension} specifying the maximum * width and height of the file chooser */ @Override --- old/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/WindowsInternalFrameTitlePane.java 2015-10-04 22:52:10.969275619 +0400 +++ new/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/WindowsInternalFrameTitlePane.java 2015-10-04 22:52:10.789275627 +0400 @@ -489,7 +489,7 @@ /** * A versatile Icon implementation which can take an array of Icon - * instances (typically ImageIcons) and choose one that gives the best + * instances (typically {@code ImageIcon}s) and choose one that gives the best * quality for a given Graphics2D scale factor when painting. *

* The class is public so it can be instantiated by UIDefaults.ProxyLazyValue. @@ -520,7 +520,7 @@ } /** - * @return the Icon closest to the requested size + * @return the {@code Icon} closest to the requested size */ protected Icon getBestIcon(int size) { if (icons != null && icons.length > 0) { --- old/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/WindowsLookAndFeel.java 2015-10-04 22:52:11.485275595 +0400 +++ new/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/WindowsLookAndFeel.java 2015-10-04 22:52:11.305275603 +0400 @@ -25,14 +25,14 @@ /* *

These classes are designed to be used while the - * corresponding LookAndFeel class has been installed + * corresponding {@code LookAndFeel} class has been installed * (UIManager.setLookAndFeel(new XXXLookAndFeel())). - * Using them while a different LookAndFeel is installed + * Using them while a different {@code LookAndFeel} is installed * may produce unexpected results, including exceptions. - * Additionally, changing the LookAndFeel - * maintained by the UIManager without updating the - * corresponding ComponentUI of any - * JComponents may also produce unexpected results, + * Additionally, changing the {@code LookAndFeel} + * maintained by the {@code UIManager} without updating the + * corresponding {@code ComponentUI} of any + * {@code JComponent}s may also produce unexpected results, * such as the wrong colors showing up, and is generally not * encouraged. * @@ -1934,7 +1934,7 @@ /** *

* Invoked when the user attempts an invalid operation, - * such as pasting into an uneditable JTextField + * such as pasting into an uneditable {@code JTextField} * that has focus. *

*

@@ -1948,7 +1948,7 @@ * @param component Component the error occurred in, may be * null indicating the error condition is * not directly associated with a - * Component. + * {@code Component}. * * @see javax.swing.LookAndFeel#provideErrorFeedback */ @@ -1971,18 +1971,18 @@ // ********* Auditory Cue support methods and objects ********* /** - * Returns an Action. + * Returns an {@code Action}. *

* This Action contains the information and logic to render an - * auditory cue. The Object that is passed to this + * auditory cue. The {@code Object} that is passed to this * method contains the information needed to render the auditory - * cue. Normally, this Object is a String - * that points to a Toolkit desktopProperty. - * This desktopProperty is resolved by AWT and the + * cue. Normally, this {@code Object} is a {@code String} + * that points to a {@code Toolkit desktopProperty}. + * This {@code desktopProperty} is resolved by AWT and the * Windows OS. *

- * This Action's actionPerformed method - * is fired by the playSound method. + * This {@code Action}'s {@code actionPerformed} method + * is fired by the {@code playSound} method. * * @return an Action which knows how to render the auditory * cue for one particular system or user activity @@ -2018,8 +2018,8 @@ * Pass the name String to the super constructor. This is used * later to identify the Action and decide whether to play it or * not. Store the resource String. It is used to get the audio - * resource. In this case, the resource is a Runnable - * supplied by Toolkit. This Runnable is + * resource. In this case, the resource is a {@code Runnable} + * supplied by {@code Toolkit}. This {@code Runnable} is * effectively a pointer down into the Win32 OS that knows how to * play the right sound. * @@ -2050,7 +2050,7 @@ } /** - * Gets an Icon from the native libraries if available, + * Gets an {@code Icon} from the native libraries if available, * otherwise gets it from an image resource file. */ private static class LazyWindowsIcon implements UIDefaults.LazyValue { @@ -2077,7 +2077,7 @@ /** - * Gets an Icon from the native libraries if available. + * Gets an {@code Icon} from the native libraries if available. * A desktop property is used to trigger reloading the icon when needed. */ private class ActiveWindowsIcon implements UIDefaults.ActiveValue { --- old/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/WindowsPopupMenuUI.java 2015-10-04 22:52:12.029275571 +0400 +++ new/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/WindowsPopupMenuUI.java 2015-10-04 22:52:11.849275579 +0400 @@ -78,8 +78,8 @@ } /** - * Returns the Popup that will be responsible for - * displaying the JPopupMenu. + * Returns the {@code Popup} that will be responsible for + * displaying the {@code JPopupMenu}. * * @param popupMenu JPopupMenu requesting Popup * @param x Screen x location Popup is to be shown at --- old/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/WindowsScrollBarUI.java 2015-10-04 22:52:12.541275548 +0400 +++ new/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/WindowsScrollBarUI.java 2015-10-04 22:52:12.361275556 +0400 @@ -471,7 +471,7 @@ } /** - * Actually renders the grid into the Graphics g. + * Actually renders the grid into the Graphics {@code g}. */ private void paintGrid(Graphics g, Color fg, Color bg) { Rectangle clipRect = g.getClipBounds(); --- old/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/WindowsTreeUI.java 2015-10-04 22:52:13.081275524 +0400 +++ new/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/WindowsTreeUI.java 2015-10-04 22:52:12.889275532 +0400 @@ -203,8 +203,8 @@ /** * Configures the renderer based on the passed in components. * The value is set from messaging the tree with - * convertValueToText, which ultimately invokes - * toString on value. + * {@code convertValueToText}, which ultimately invokes + * {@code toString} on {@code value}. * The foreground color is set based on the selection and the icon * is set based on on leaf and expanded. */ --- old/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/XPStyle.java 2015-10-04 22:52:13.605275500 +0400 +++ new/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/XPStyle.java 2015-10-04 22:52:13.413275509 +0400 @@ -25,14 +25,14 @@ /* *

These classes are designed to be used while the - * corresponding LookAndFeel class has been installed + * corresponding {@code LookAndFeel} class has been installed * (UIManager.setLookAndFeel(new XXXLookAndFeel())). - * Using them while a different LookAndFeel is installed + * Using them while a different {@code LookAndFeel} is installed * may produce unexpected results, including exceptions. - * Additionally, changing the LookAndFeel - * maintained by the UIManager without updating the - * corresponding ComponentUI of any - * JComponents may also produce unexpected results, + * Additionally, changing the {@code LookAndFeel} + * maintained by the {@code UIManager} without updating the + * corresponding {@code ComponentUI} of any + * {@code JComponent}s may also produce unexpected results, * such as the wrong colors showing up, and is generally not * encouraged. * @@ -123,12 +123,12 @@ return (xp != null && xp.isSkinDefined(null, Part.CP_DROPDOWNBUTTONRIGHT)); } - /** Get a named String value from the current style + /** Get a named {@code String} value from the current style * - * @param part a Part - * @param state a String - * @param attributeKey a String - * @return a String or null if key is not found + * @param part a {@code Part} + * @param state a {@code String} + * @param attributeKey a {@code String} + * @return a {@code String} or null if key is not found * in the current style * * This is currently only used by WindowsInternalFrameTitlePane for painting @@ -158,10 +158,10 @@ - /** Get a named int value from the current style + /** Get a named {@code int} value from the current style * - * @param part a Part - * @return an int or null if key is not found + * @param part a {@code Part} + * @return an {@code int} or null if key is not found * in the current style */ int getInt(Component c, Part part, State state, Prop prop, int fallback) { @@ -170,10 +170,10 @@ prop.getValue()); } - /** Get a named Dimension value from the current style + /** Get a named {@code Dimension} value from the current style * - * @param key a String - * @return a Dimension or null if key is not found + * @param key a {@code String} + * @return a {@code Dimension} or null if key is not found * in the current style * * This is currently only used by WindowsProgressBarUI and the value @@ -186,11 +186,11 @@ return (d != null) ? d : new Dimension(); } - /** Get a named Point (e.g. a location or an offset) value + /** Get a named {@code Point} (e.g. a location or an offset) value * from the current style * - * @param key a String - * @return a Point or null if key is not found + * @param key a {@code String} + * @return a {@code Point} or null if key is not found * in the current style * * This is currently only used by WindowsInternalFrameTitlePane for painting @@ -203,10 +203,10 @@ return (d != null) ? new Point(d.width, d.height) : new Point(); } - /** Get a named Insets value from the current style + /** Get a named {@code Insets} value from the current style * - * @param key a String - * @return an Insets object or null if key is not found + * @param key a {@code String} + * @return an {@code Insets} object or null if key is not found * in the current style * * This is currently only used to create borders and by @@ -221,10 +221,10 @@ } - /** Get a named Color value from the current style + /** Get a named {@code Color} value from the current style * - * @param part a Part - * @return a Color or null if key is not found + * @param part a {@code Part} + * @return a {@code Color} or null if key is not found * in the current style */ synchronized Color getColor(Skin skin, Prop prop, Color fallback) { @@ -249,10 +249,10 @@ - /** Get a named Border value from the current style + /** Get a named {@code Border} value from the current style * - * @param part a Part - * @return a Border or null if key is not found + * @param part a {@code Part} + * @return a {@code Border} or null if key is not found * in the current style or if the style for the particular * part is not defined as "borderfill". */ @@ -446,11 +446,11 @@ } - /** Get a Skin object from the current style + /** Get a {@code Skin} object from the current style * for a named part (component type) * - * @param part a Part - * @return a Skin object + * @param part a {@code Part} + * @return a {@code Skin} object */ synchronized Skin getSkin(Component c, Part part) { assert isSkinDefined(c, part) : "part " + part + " is not defined"; @@ -564,7 +564,7 @@ /** Paint a skin in an area defined by a rectangle. * * @param g the graphics context to use for painting - * @param r a Rectangle defining the area to fill, + * @param r a {@code Rectangle} defining the area to fill, * may cause the image to be stretched or tiled * @param state which state to paint */ --- old/src/java.desktop/share/classes/com/sun/media/sound/AudioSynthesizer.java 2015-10-04 22:52:14.153275476 +0400 +++ new/src/java.desktop/share/classes/com/sun/media/sound/AudioSynthesizer.java 2015-10-04 22:52:13.961275484 +0400 @@ -32,9 +32,9 @@ import javax.sound.sampled.SourceDataLine; /** - * AudioSynthesizer is a Synthesizer - * which renders it's output audio into SourceDataLine - * or AudioInputStream. + * {@code AudioSynthesizer} is a {@code Synthesizer} + * which renders it's output audio into {@code SourceDataLine} + * or {@code AudioInputStream}. * * @see MidiSystem#getSynthesizer * @see Synthesizer @@ -59,7 +59,7 @@ * Gets information about the possible properties for the synthesizer. * * @param info a proposed list of tag/value pairs that will be sent on open. - * @return an array of AudioSynthesizerPropertyInfo objects + * @return an array of {@code AudioSynthesizerPropertyInfo} objects * describing possible properties. This array may be an empty array if * no properties are required. */ @@ -68,7 +68,7 @@ /** * Opens the synthesizer and starts rendering audio into - * SourceDataLine. + * {@code SourceDataLine}. * *

An application opening a synthesizer explicitly with this call * has to close the synthesizer by calling {@link #close}. This is @@ -77,13 +77,13 @@ * *

Note that some synthesizers, once closed, cannot be reopened. * Attempts to reopen such a synthesizer will always result in - * a MidiUnavailableException. + * a {@code MidiUnavailableException}. * - * @param line which AudioSynthesizer writes output audio into. - * If line is null, then line from system default mixer is used. - * @param info a Map object containing + * @param line which {@code AudioSynthesizer} writes output audio into. + * If {@code line} is null, then line from system default mixer is used. + * @param info a {@code Map} object containing * properties for additional configuration supported by synthesizer. - * If info is null then default settings are used. + * If {@code info} is null then default settings are used. * * @throws MidiUnavailableException thrown if the synthesizer cannot be * opened due to resource restrictions. @@ -98,7 +98,7 @@ /** * Opens the synthesizer and renders audio into returned - * AudioInputStream. + * {@code AudioInputStream}. * *

An application opening a synthesizer explicitly with this call * has to close the synthesizer by calling {@link #close}. This is @@ -107,13 +107,13 @@ * *

Note that some synthesizers, once closed, cannot be reopened. * Attempts to reopen such a synthesizer will always result in - * a MidiUnavailableException. + * a {@code MidiUnavailableException}. * - * @param targetFormat specifies the AudioFormat - * used in returned AudioInputStream. - * @param info a Map object containing + * @param targetFormat specifies the {@code AudioFormat} + * used in returned {@code AudioInputStream}. + * @param info a {@code Map} object containing * properties for additional configuration supported by synthesizer. - * If info is null then default settings are used. + * If {@code info} is null then default settings are used. * * @throws MidiUnavailableException thrown if the synthesizer cannot be * opened due to resource restrictions. --- old/src/java.desktop/share/classes/com/sun/media/sound/AudioSynthesizerPropertyInfo.java 2015-10-04 22:52:14.673275452 +0400 +++ new/src/java.desktop/share/classes/com/sun/media/sound/AudioSynthesizerPropertyInfo.java 2015-10-04 22:52:14.485275461 +0400 @@ -25,16 +25,16 @@ package com.sun.media.sound; /** - * Information about property used in opening AudioSynthesizer. + * Information about property used in opening {@code AudioSynthesizer}. * * @author Karl Helgason */ public final class AudioSynthesizerPropertyInfo { /** - * Constructs a AudioSynthesizerPropertyInfo object with a given - * name and value. The description and choices - * are initialized by null values. + * Constructs a {@code AudioSynthesizerPropertyInfo} object with a given + * name and value. The {@code description} and {@code choices} + * are initialized by {@code null} values. * * @param name the name of the property * @param value the current value or class used for values. @@ -60,18 +60,18 @@ */ public String description = null; /** - * The value field specifies the current value of + * The {@code value} field specifies the current value of * the property. */ public Object value = null; /** - * The valueClass field specifies class - * used in value field. + * The {@code valueClass} field specifies class + * used in {@code value} field. */ public Class valueClass = null; /** * An array of possible values if the value for the field - * AudioSynthesizerPropertyInfo.value may be selected + * {@code AudioSynthesizerPropertyInfo.value} may be selected * from a particular set of values; otherwise null. */ public Object[] choices = null; --- old/src/java.desktop/share/classes/com/sun/media/sound/SoftControl.java 2015-10-04 22:52:15.193275429 +0400 +++ new/src/java.desktop/share/classes/com/sun/media/sound/SoftControl.java 2015-10-04 22:52:15.005275437 +0400 @@ -25,7 +25,7 @@ package com.sun.media.sound; /** - * SoftControl are the basic controls + * {@code SoftControl} are the basic controls * used for control-rate processing. * * @author Karl Helgason --- old/src/java.desktop/share/classes/java/applet/Applet.java 2015-10-04 22:52:15.765275403 +0400 +++ new/src/java.desktop/share/classes/java/applet/Applet.java 2015-10-04 22:52:15.573275412 +0400 @@ -38,9 +38,9 @@ * An applet is a small program that is intended not to be run on * its own, but rather to be embedded inside another application. *

- * The Applet class must be the superclass of any + * The {@code Applet} class must be the superclass of any * applet that is to be embedded in a Web page or viewed by the Java - * Applet Viewer. The Applet class provides a standard + * Applet Viewer. The {@code Applet} class provides a standard * interface between applets and their environment. * * @author Arthur van Hoff @@ -52,10 +52,10 @@ /** * Constructs a new Applet. *

- * Note: Many methods in java.applet.Applet + * Note: Many methods in {@code java.applet.Applet} * may be invoked by the applet only after the applet is * fully constructed; applet should avoid calling methods - * in java.applet.Applet in the constructor. + * in {@code java.applet.Applet} in the constructor. * * @exception HeadlessException if GraphicsEnvironment.isHeadless() * returns true. @@ -88,8 +88,8 @@ * Read an applet from an object input stream. * @param s an object input stream. * @exception HeadlessException if - * GraphicsEnvironment.isHeadless() returns - * true + * {@code GraphicsEnvironment.isHeadless()} returns + * {@code true} * @serial * @see java.awt.GraphicsEnvironment#isHeadless * @since 1.4 @@ -104,9 +104,9 @@ /** * Sets this applet's stub. This is done automatically by the system. - *

If there is a security manager, its checkPermission + *

If there is a security manager, its {@code checkPermission} * method is called with the - * AWTPermission("setAppletStub") + * {@code AWTPermission("setAppletStub")} * permission if a stub has already been set. * @param stub the new stub. * @exception SecurityException if the caller cannot set the stub @@ -123,11 +123,11 @@ /** * Determines if this applet is active. An applet is marked active - * just before its start method is called. It becomes - * inactive just before its stop method is called. + * just before its {@code start} method is called. It becomes + * inactive just before its {@code stop} method is called. * - * @return true if the applet is active; - * false otherwise. + * @return {@code true} if the applet is active; + * {@code false} otherwise. * @see java.applet.Applet#start() * @see java.applet.Applet#stop() */ @@ -179,14 +179,14 @@ * </applet> * *

- * then a call to getParameter("Color") returns the - * value "blue". + * then a call to {@code getParameter("Color")} returns the + * value {@code "blue"}. *

- * The name argument is case insensitive. + * The {@code name} argument is case insensitive. * * @param name a parameter name. * @return the value of the named parameter, - * or null if not set. + * or {@code null} if not set. */ public String getParameter(String name) { return stub.getParameter(name); @@ -260,8 +260,8 @@ } /** - * Returns an Image object that can then be painted on - * the screen. The url that is passed as an argument + * Returns an {@code Image} object that can then be painted on + * the screen. The {@code url} that is passed as an argument * must specify an absolute URL. *

* This method always returns immediately, whether or not the image @@ -278,10 +278,10 @@ } /** - * Returns an Image object that can then be painted on - * the screen. The url argument must specify an absolute - * URL. The name argument is a specifier that is - * relative to the url argument. + * Returns an {@code Image} object that can then be painted on + * the screen. The {@code url} argument must specify an absolute + * URL. The {@code name} argument is a specifier that is + * relative to the {@code url} argument. *

* This method always returns immediately, whether or not the image * exists. When this applet attempts to draw the image on the screen, @@ -290,7 +290,7 @@ * * @param url an absolute URL giving the base location of the image. * @param name the location of the image, relative to the - * url argument. + * {@code url} argument. * @return the image at the specified URL. * @see java.awt.Image */ @@ -315,8 +315,8 @@ } /** - * Returns the AudioClip object specified by the - * URL argument. + * Returns the {@code AudioClip} object specified by the + * {@code URL} argument. *

* This method always returns immediately, whether or not the audio * clip exists. When this applet attempts to play the audio clip, the @@ -331,8 +331,8 @@ } /** - * Returns the AudioClip object specified by the - * URL and name arguments. + * Returns the {@code AudioClip} object specified by the + * {@code URL} and {@code name} arguments. *

* This method always returns immediately, whether or not the audio * clip exists. When this applet attempts to play the audio clip, the @@ -341,7 +341,7 @@ * @param url an absolute URL giving the base location of the * audio clip. * @param name the location of the audio clip, relative to the - * url argument. + * {@code url} argument. * @return the audio clip at the specified URL. * @see java.applet.AudioClip */ @@ -355,11 +355,11 @@ /** * Returns information about this applet. An applet should override - * this method to return a String containing information + * this method to return a {@code String} containing information * about the author, version, and copyright of the applet. *

* The implementation of this method provided by the - * Applet class returns null. + * {@code Applet} class returns {@code null}. * * @return a string containing information about the author, version, and * copyright of the applet. @@ -388,10 +388,10 @@ /** * Returns information about the parameters that are understood by * this applet. An applet should override this method to return an - * array of Strings describing these parameters. + * array of {@code Strings} describing these parameters. *

* Each element of the array should be a set of three - * Strings containing the name, the type, and a + * {@code Strings} containing the name, the type, and a * description. For example: *

      * String pinfo[][] = {
@@ -402,7 +402,7 @@
      * 
*

* The implementation of this method provided by the - * Applet class returns null. + * {@code Applet} class returns {@code null}. * * @return an array describing the parameters this applet looks for. */ @@ -430,7 +430,7 @@ * @param url an absolute URL giving the base location of the * audio clip. * @param name the location of the audio clip, relative to the - * url argument. + * {@code url} argument. */ public void play(URL url, String name) { AudioClip clip = getAudioClip(url, name); @@ -442,16 +442,16 @@ /** * Called by the browser or applet viewer to inform * this applet that it has been loaded into the system. It is always - * called before the first time that the start method is + * called before the first time that the {@code start} method is * called. *

- * A subclass of Applet should override this method if + * A subclass of {@code Applet} should override this method if * it has initialization to perform. For example, an applet with - * threads would use the init method to create the - * threads and the destroy method to kill them. + * threads would use the {@code init} method to create the + * threads and the {@code destroy} method to kill them. *

* The implementation of this method provided by the - * Applet class does nothing. + * {@code Applet} class does nothing. * * @see java.applet.Applet#destroy() * @see java.applet.Applet#start() @@ -463,25 +463,25 @@ /** * Called by the browser or applet viewer to inform * this applet that it should start its execution. It is called after - * the init method and each time the applet is revisited + * the {@code init} method and each time the applet is revisited * in a Web page. *

- * A subclass of Applet should override this method if + * A subclass of {@code Applet} should override this method if * it has any operation that it wants to perform each time the Web * page containing it is visited. For example, an applet with - * animation might want to use the start method to - * resume animation, and the stop method to suspend the + * animation might want to use the {@code start} method to + * resume animation, and the {@code stop} method to suspend the * animation. *

- * Note: some methods, such as getLocationOnScreen, can only + * Note: some methods, such as {@code getLocationOnScreen}, can only * provide meaningful results if the applet is showing. Because - * isShowing returns false when the applet's - * start is first called, methods requiring - * isShowing to return true should be called from - * a ComponentListener. + * {@code isShowing} returns {@code false} when the applet's + * {@code start} is first called, methods requiring + * {@code isShowing} to return {@code true} should be called from + * a {@code ComponentListener}. *

* The implementation of this method provided by the - * Applet class does nothing. + * {@code Applet} class does nothing. * * @see java.applet.Applet#destroy() * @see java.applet.Applet#init() @@ -498,15 +498,15 @@ * the Web page that contains this applet has been replaced by * another page, and also just before the applet is to be destroyed. *

- * A subclass of Applet should override this method if + * A subclass of {@code Applet} should override this method if * it has any operation that it wants to perform each time the Web * page containing it is no longer visible. For example, an applet - * with animation might want to use the start method to - * resume animation, and the stop method to suspend the + * with animation might want to use the {@code start} method to + * resume animation, and the {@code stop} method to suspend the * animation. *

* The implementation of this method provided by the - * Applet class does nothing. + * {@code Applet} class does nothing. * * @see java.applet.Applet#destroy() * @see java.applet.Applet#init() @@ -517,17 +517,17 @@ /** * Called by the browser or applet viewer to inform * this applet that it is being reclaimed and that it should destroy - * any resources that it has allocated. The stop method - * will always be called before destroy. + * any resources that it has allocated. The {@code stop} method + * will always be called before {@code destroy}. *

- * A subclass of Applet should override this method if + * A subclass of {@code Applet} should override this method if * it has any operation that it wants to perform before it is * destroyed. For example, an applet with threads would use the - * init method to create the threads and the - * destroy method to kill them. + * {@code init} method to create the threads and the + * {@code destroy} method to kill them. *

* The implementation of this method provided by the - * Applet class does nothing. + * {@code Applet} class does nothing. * * @see java.applet.Applet#init() * @see java.applet.Applet#start() @@ -561,7 +561,7 @@ /** * This class implements accessibility support for the - * Applet class. It provides an implementation of the + * {@code Applet} class. It provides an implementation of the * Java Accessibility API appropriate to applet user-interface elements. * @since 1.3 */ --- old/src/java.desktop/share/classes/java/applet/AudioClip.java 2015-10-04 22:52:16.293275379 +0400 +++ new/src/java.desktop/share/classes/java/applet/AudioClip.java 2015-10-04 22:52:16.105275388 +0400 @@ -26,8 +26,8 @@ package java.applet; /** - * The AudioClip interface is a simple abstraction for - * playing a sound clip. Multiple AudioClip items can be + * The {@code AudioClip} interface is a simple abstraction for + * playing a sound clip. Multiple {@code AudioClip} items can be * playing at the same time, and the resulting sound is mixed * together to produce a composite. * --- old/src/java.desktop/share/classes/java/awt/AWTError.java 2015-10-04 22:52:16.813275356 +0400 +++ new/src/java.desktop/share/classes/java/awt/AWTError.java 2015-10-04 22:52:16.625275365 +0400 @@ -38,7 +38,7 @@ private static final long serialVersionUID = -1819846354050686206L; /** - * Constructs an instance of AWTError with the specified + * Constructs an instance of {@code AWTError} with the specified * detail message. * @param msg the detail message. * @since 1.0 --- old/src/java.desktop/share/classes/java/awt/AWTEvent.java 2015-10-04 22:52:17.337275333 +0400 +++ new/src/java.desktop/share/classes/java/awt/AWTEvent.java 2015-10-04 22:52:17.149275341 +0400 @@ -410,11 +410,11 @@ } /** - * Returns a string representing the state of this Event. + * Returns a string representing the state of this {@code Event}. * This method is intended to be used only for debugging purposes, and the * content and format of the returned string may vary between * implementations. The returned string may be empty but may not be - * null. + * {@code null}. * * @return a string representation of this event */ --- old/src/java.desktop/share/classes/java/awt/AWTEventMulticaster.java 2015-10-04 22:52:17.861275309 +0400 +++ new/src/java.desktop/share/classes/java/awt/AWTEventMulticaster.java 2015-10-04 22:52:17.673275317 +0400 @@ -122,9 +122,9 @@ /** * Creates an event multicaster instance which chains listener-a - * with listener-b. Input parameters a and b - * should not be null, though implementations may vary in - * choosing whether or not to throw NullPointerException + * with listener-b. Input parameters {@code a} and {@code b} + * should not be {@code null}, though implementations may vary in + * choosing whether or not to throw {@code NullPointerException} * in that case. * @param a listener-a * @param b listener-b @@ -1078,30 +1078,30 @@ /** * Returns an array of all the objects chained as * FooListeners by the specified - * java.util.EventListener. + * {@code java.util.EventListener}. * FooListeners are chained by the - * AWTEventMulticaster using the + * {@code AWTEventMulticaster} using the * addFooListener method. - * If a null listener is specified, this method returns an + * If a {@code null} listener is specified, this method returns an * empty array. If the specified listener is not an instance of - * AWTEventMulticaster, this method returns an array which + * {@code AWTEventMulticaster}, this method returns an array which * contains only the specified listener. If no such listeners are chained, * this method returns an empty array. * * @param the listener type - * @param l the specified java.util.EventListener + * @param l the specified {@code java.util.EventListener} * @param listenerType the type of listeners requested; this parameter * should specify an interface that descends from - * java.util.EventListener + * {@code java.util.EventListener} * @return an array of all objects chained as * FooListeners by the specified multicast * listener, or an empty array if no such listeners have been * chained by the specified multicast listener * @exception NullPointerException if the specified * {@code listenertype} parameter is {@code null} - * @exception ClassCastException if listenerType + * @exception ClassCastException if {@code listenerType} * doesn't specify a class or interface that implements - * java.util.EventListener + * {@code java.util.EventListener} * * @since 1.4 */ --- old/src/java.desktop/share/classes/java/awt/AWTException.java 2015-10-04 22:52:18.397275285 +0400 +++ new/src/java.desktop/share/classes/java/awt/AWTException.java 2015-10-04 22:52:18.205275294 +0400 @@ -38,9 +38,9 @@ private static final long serialVersionUID = -1900414231151323879L; /** - * Constructs an instance of AWTException with the + * Constructs an instance of {@code AWTException} with the * specified detail message. A detail message is an - * instance of String that describes this particular + * instance of {@code String} that describes this particular * exception. * @param msg the detail message * @since 1.0 --- old/src/java.desktop/share/classes/java/awt/AWTKeyStroke.java 2015-10-04 22:52:18.937275261 +0400 +++ new/src/java.desktop/share/classes/java/awt/AWTKeyStroke.java 2015-10-04 22:52:18.745275269 +0400 @@ -37,22 +37,22 @@ import sun.swing.SwingAccessor; /** - * An AWTKeyStroke represents a key action on the - * keyboard, or equivalent input device. AWTKeyStrokes + * An {@code AWTKeyStroke} represents a key action on the + * keyboard, or equivalent input device. {@code AWTKeyStroke}s * can correspond to only a press or release of a - * particular key, just as KEY_PRESSED and - * KEY_RELEASED KeyEvents do; + * particular key, just as {@code KEY_PRESSED} and + * {@code KEY_RELEASED KeyEvent}s do; * alternately, they can correspond to typing a specific Java character, just - * as KEY_TYPED KeyEvents do. - * In all cases, AWTKeyStrokes can specify modifiers + * as {@code KEY_TYPED KeyEvent}s do. + * In all cases, {@code AWTKeyStroke}s can specify modifiers * (alt, shift, control, meta, altGraph, or a combination thereof) which must be present * during the action for an exact match. *

- * AWTKeyStrokes are immutable, and are intended + * {@code AWTKeyStrokes} are immutable, and are intended * to be unique. Client code should never create an - * AWTKeyStroke on its own, but should instead use - * a variant of getAWTKeyStroke. Client use of these factory - * methods allows the AWTKeyStroke implementation + * {@code AWTKeyStroke} on its own, but should instead use + * a variant of {@code getAWTKeyStroke}. Client use of these factory + * methods allows the {@code AWTKeyStroke} implementation * to cache and share instances efficiently. * * @see #getAWTKeyStroke @@ -88,17 +88,17 @@ } /** - * Constructs an AWTKeyStroke with default values. + * Constructs an {@code AWTKeyStroke} with default values. * The default values used are: * * * * - * + * * * * - * + * * * * @@ -106,12 +106,12 @@ * * * - * + * * *
PropertyDefault Value
Key CharKeyEvent.CHAR_UNDEFINED{@code KeyEvent.CHAR_UNDEFINED}
Key CodeKeyEvent.VK_UNDEFINED{@code KeyEvent.VK_UNDEFINED}
Modifiers
On key release?false{@code false}
* - * AWTKeyStrokes should not be constructed - * by client code. Use a variant of getAWTKeyStroke + * {@code AWTKeyStroke}s should not be constructed + * by client code. Use a variant of {@code getAWTKeyStroke} * instead. * * @see #getAWTKeyStroke @@ -120,17 +120,17 @@ } /** - * Constructs an AWTKeyStroke with the specified - * values. AWTKeyStrokes should not be constructed - * by client code. Use a variant of getAWTKeyStroke + * Constructs an {@code AWTKeyStroke} with the specified + * values. {@code AWTKeyStroke}s should not be constructed + * by client code. Use a variant of {@code getAWTKeyStroke} * instead. * * @param keyChar the character value for a keyboard key - * @param keyCode the key code for this AWTKeyStroke + * @param keyCode the key code for this {@code AWTKeyStroke} * @param modifiers a bitwise-ored combination of any modifiers - * @param onKeyRelease true if this - * AWTKeyStroke corresponds - * to a key release; false otherwise + * @param onKeyRelease {@code true} if this + * {@code AWTKeyStroke} corresponds + * to a key release; {@code false} otherwise * @see #getAWTKeyStroke */ protected AWTKeyStroke(char keyChar, int keyCode, int modifiers, @@ -185,12 +185,12 @@ } /** - * Returns a shared instance of an AWTKeyStroke - * that represents a KEY_TYPED event for the + * Returns a shared instance of an {@code AWTKeyStroke} + * that represents a {@code KEY_TYPED} event for the * specified character. * * @param keyChar the character value for a keyboard key - * @return an AWTKeyStroke object for that key + * @return an {@code AWTKeyStroke} object for that key */ public static AWTKeyStroke getAWTKeyStroke(char keyChar) { return getCachedStroke(keyChar, KeyEvent.VK_UNDEFINED, 0, false); @@ -202,7 +202,7 @@ * specified Character object and a set of modifiers. Note * that the first parameter is of type Character rather than * char. This is to avoid inadvertent clashes with - * calls to getAWTKeyStroke(int keyCode, int modifiers). + * calls to {@code getAWTKeyStroke(int keyCode, int modifiers)}. * * The modifiers consist of any combination of following:

* Components whose view and controller code depends on orientation - * should use the isLeftToRight() and - * isHorizontal() methods to + * should use the {@code isLeftToRight()} and + * {@code isHorizontal()} methods to * determine their behavior. They should not include switch-like * code that keys off of the constants, such as: *
--- old/src/java.desktop/share/classes/java/awt/Composite.java	2015-10-04 22:52:28.501274831 +0400
+++ new/src/java.desktop/share/classes/java/awt/Composite.java	2015-10-04 22:52:28.313274840 +0400
@@ -28,39 +28,39 @@
 import java.awt.image.ColorModel;
 
 /**
- * The Composite interface, along with
+ * The {@code Composite} interface, along with
  * {@link CompositeContext}, defines the methods to compose a draw
  * primitive with the underlying graphics area.
- * After the Composite is set in the
+ * After the {@code Composite} is set in the
  * {@link Graphics2D} context, it combines a shape, text, or an image
  * being rendered with the colors that have already been rendered
  * according to pre-defined rules. The classes
  * implementing this interface provide the rules and a method to create
  * the context for a particular operation.
- * CompositeContext is an environment used by the
- * compositing operation, which is created by the Graphics2D
- * prior to the start of the operation.  CompositeContext
+ * {@code CompositeContext} is an environment used by the
+ * compositing operation, which is created by the {@code Graphics2D}
+ * prior to the start of the operation.  {@code CompositeContext}
  * contains private information and resources needed for a compositing
- * operation.  When the CompositeContext is no longer needed,
- * the Graphics2D object disposes of it in order to reclaim
+ * operation.  When the {@code CompositeContext} is no longer needed,
+ * the {@code Graphics2D} object disposes of it in order to reclaim
  * resources allocated for the operation.
  * 

- * Instances of classes implementing Composite must be - * immutable because the Graphics2D does not clone + * Instances of classes implementing {@code Composite} must be + * immutable because the {@code Graphics2D} does not clone * these objects when they are set as an attribute with the - * setComposite method or when the Graphics2D + * {@code setComposite} method or when the {@code Graphics2D} * object is cloned. This is to avoid undefined rendering behavior of - * Graphics2D, resulting from the modification of - * the Composite object after it has been set in the - * Graphics2D context. + * {@code Graphics2D}, resulting from the modification of + * the {@code Composite} object after it has been set in the + * {@code Graphics2D} context. *

* Since this interface must expose the contents of pixels on the * target device or image to potentially arbitrary code, the use of * custom objects which implement this interface when rendering directly - * to a screen device is governed by the readDisplayPixels + * to a screen device is governed by the {@code readDisplayPixels} * {@link AWTPermission}. The permission check will occur when such - * a custom object is passed to the setComposite method - * of a Graphics2D retrieved from a {@link Component}. + * a custom object is passed to the {@code setComposite} method + * of a {@code Graphics2D} retrieved from a {@link Component}. * @see AlphaComposite * @see CompositeContext * @see Graphics2D#setComposite @@ -71,12 +71,12 @@ * Creates a context containing state that is used to perform * the compositing operation. In a multi-threaded environment, * several contexts can exist simultaneously for a single - * Composite object. + * {@code Composite} object. * @param srcColorModel the {@link ColorModel} of the source - * @param dstColorModel the ColorModel of the destination + * @param dstColorModel the {@code ColorModel} of the destination * @param hints the hint that the context object uses to choose between * rendering alternatives - * @return the CompositeContext object used to perform the + * @return the {@code CompositeContext} object used to perform the * compositing operation. */ public CompositeContext createContext(ColorModel srcColorModel, --- old/src/java.desktop/share/classes/java/awt/CompositeContext.java 2015-10-04 22:52:29.025274808 +0400 +++ new/src/java.desktop/share/classes/java/awt/CompositeContext.java 2015-10-04 22:52:28.833274816 +0400 @@ -29,9 +29,9 @@ import java.awt.image.WritableRaster; /** - * The CompositeContext interface defines the encapsulated + * The {@code CompositeContext} interface defines the encapsulated * and optimized environment for a compositing operation. - * CompositeContext objects maintain state for + * {@code CompositeContext} objects maintain state for * compositing operations. In a multi-threaded environment, several * contexts can exist simultaneously for a single {@link Composite} * object. @@ -49,14 +49,14 @@ * places the result in the destination * {@link WritableRaster}. Note that the destination * can be the same object as either the first or second - * source. Note that dstIn and - * dstOut must be compatible with the - * dstColorModel passed to the + * source. Note that {@code dstIn} and + * {@code dstOut} must be compatible with the + * {@code dstColorModel} passed to the * {@link Composite#createContext(java.awt.image.ColorModel, java.awt.image.ColorModel, java.awt.RenderingHints) createContext} - * method of the Composite interface. + * method of the {@code Composite} interface. * @param src the first source for the compositing operation * @param dstIn the second source for the compositing operation - * @param dstOut the WritableRaster into which the + * @param dstOut the {@code WritableRaster} into which the * result of the operation is stored * @see Composite */ --- old/src/java.desktop/share/classes/java/awt/Container.java 2015-10-04 22:52:29.545274784 +0400 +++ new/src/java.desktop/share/classes/java/awt/Container.java 2015-10-04 22:52:29.353274793 +0400 @@ -183,7 +183,7 @@ /** * A constant which toggles one of the controllable behaviors - * of getMouseEventTarget. It is used to specify whether + * of {@code getMouseEventTarget}. It is used to specify whether * the method can return the Container on which it is originally called * in case if none of its children are the current mouse event targets. * @@ -193,7 +193,7 @@ /** * A constant which toggles one of the controllable behaviors - * of getMouseEventTarget. It is used to specify whether + * of {@code getMouseEventTarget}. It is used to specify whether * the method should search only lightweight components. * * @see #getMouseEventTarget(int, int, boolean) @@ -384,7 +384,7 @@ * Determines the insets of this container, which indicate the size * of the container's border. *

- * A Frame object, for example, has a top inset that + * A {@code Frame} object, for example, has a top inset that * corresponds to the height of the frame's title bar. * @return the insets of this container. * @see Insets @@ -399,7 +399,7 @@ * Returns the insets for this container. * * @deprecated As of JDK version 1.1, - * replaced by getInsets(). + * replaced by {@code getInsets()}. * @return the insets for this container */ @Deprecated @@ -439,7 +439,7 @@ * This is a convenience method for {@link #addImpl}. *

* This method is obsolete as of 1.1. Please use the - * method add(Component, Object) instead. + * method {@code add(Component, Object)} instead. *

* This method changes layout-related information, and therefore, * invalidates the component hierarchy. If the container has already been @@ -471,11 +471,11 @@ * * @param comp the component to be added * @param index the position at which to insert the component, - * or -1 to append the component to the end + * or {@code -1} to append the component to the end * @exception NullPointerException if {@code comp} is {@code null} * @exception IllegalArgumentException if {@code index} is invalid (see * {@link #addImpl} for details) - * @return the component comp + * @return the component {@code comp} * @see #addImpl * @see #remove * @see #invalidate @@ -532,7 +532,7 @@ if (comp.parent == this) { if (index == component.size()) { throw new IllegalArgumentException("illegal component position " + - index + " should be less then " + component.size()); + index + " should be less than " + component.size()); } } checkAddToSelf(comp); @@ -734,40 +734,40 @@ * If the component is a child of some other container, it is * removed from that container before being added to this container. * The important difference between this method and - * java.awt.Container.add(Component, int) is that this method - * doesn't call removeNotify on the component while + * {@code java.awt.Container.add(Component, int)} is that this method + * doesn't call {@code removeNotify} on the component while * removing it from its previous container unless necessary and when * allowed by the underlying native windowing system. This way, if the * component has the keyboard focus, it maintains the focus when * moved to the new position. *

* This property is guaranteed to apply only to lightweight - * non-Container components. + * non-{@code Container} components. *

* This method changes layout-related information, and therefore, * invalidates the component hierarchy. *

* Note: Not all platforms support changing the z-order of * heavyweight components from one container into another without - * the call to removeNotify. There is no way to detect + * the call to {@code removeNotify}. There is no way to detect * whether a platform supports this, so developers shouldn't make * any assumptions. * * @param comp the component to be moved * @param index the position in the container's list to - * insert the component, where getComponentCount() + * insert the component, where {@code getComponentCount()} * appends to the end - * @exception NullPointerException if comp is - * null - * @exception IllegalArgumentException if comp is one of the + * @exception NullPointerException if {@code comp} is + * {@code null} + * @exception IllegalArgumentException if {@code comp} is one of the * container's parents - * @exception IllegalArgumentException if index is not in - * the range [0, getComponentCount()] for moving + * @exception IllegalArgumentException if {@code index} is not in + * the range {@code [0, getComponentCount()]} for moving * between containers, or not in the range - * [0, getComponentCount()-1] for moving inside + * {@code [0, getComponentCount()-1]} for moving inside * a container * @exception IllegalArgumentException if adding a container to itself - * @exception IllegalArgumentException if adding a Window + * @exception IllegalArgumentException if adding a {@code Window} * to a container * @see #getComponentZOrder(java.awt.Component) * @see #invalidate @@ -949,7 +949,7 @@ * * @param comp the component being queried * @return the z-order index of the component; otherwise - * returns -1 if the component is null + * returns -1 if the component is {@code null} * or doesn't belong to the container * @see #setComponentZOrder(java.awt.Component, int) * @since 1.5 @@ -1010,7 +1010,7 @@ * @param comp the component to be added * @param constraints an object expressing layout constraints for this * @param index the position in the container's list at which to insert - * the component; -1 means insert at the end + * the component; {@code -1} means insert at the end * component * @exception NullPointerException if {@code comp} is {@code null} * @exception IllegalArgumentException if {@code index} is invalid (see @@ -1030,20 +1030,20 @@ * Adds the specified component to this container at the specified * index. This method also notifies the layout manager to add * the component to this container's layout using the specified - * constraints object via the addLayoutComponent + * constraints object via the {@code addLayoutComponent} * method. *

* The constraints are * defined by the particular layout manager being used. For - * example, the BorderLayout class defines five - * constraints: BorderLayout.NORTH, - * BorderLayout.SOUTH, BorderLayout.EAST, - * BorderLayout.WEST, and BorderLayout.CENTER. + * example, the {@code BorderLayout} class defines five + * constraints: {@code BorderLayout.NORTH}, + * {@code BorderLayout.SOUTH}, {@code BorderLayout.EAST}, + * {@code BorderLayout.WEST}, and {@code BorderLayout.CENTER}. *

- * The GridBagLayout class requires a - * GridBagConstraints object. Failure to pass + * The {@code GridBagLayout} class requires a + * {@code GridBagConstraints} object. Failure to pass * the correct type of constraints object results in an - * IllegalArgumentException. + * {@code IllegalArgumentException}. *

* If the current layout manager implements {@code LayoutManager2}, then * {@link LayoutManager2#addLayoutComponent(Component,Object)} is invoked on @@ -1061,7 +1061,7 @@ * usually include a call to the superclass's version of the method: * *

- * super.addImpl(comp, constraints, index) + * {@code super.addImpl(comp, constraints, index)} *
*

* This method changes layout-related information, and therefore, @@ -1073,7 +1073,7 @@ * @param constraints an object expressing layout constraints * for this component * @param index the position in the container's list at which to - * insert the component, where -1 + * insert the component, where {@code -1} * means append to the end * @exception IllegalArgumentException if {@code index} is invalid; * if {@code comp} is a child of this container, the valid @@ -1196,11 +1196,11 @@ } /** - * Removes the component, specified by index, + * Removes the component, specified by {@code index}, * from this container. * This method also notifies the layout manager to remove the * component from this container's layout via the - * removeLayoutComponent method. + * {@code removeLayoutComponent} method. *

* This method changes layout-related information, and therefore, * invalidates the component hierarchy. If the container has already been @@ -1263,7 +1263,7 @@ * Removes the specified component from this container. * This method also notifies the layout manager to remove the * component from this container's layout via the - * removeLayoutComponent method. + * {@code removeLayoutComponent} method. *

* This method changes layout-related information, and therefore, * invalidates the component hierarchy. If the container has already been @@ -1292,7 +1292,7 @@ * Removes all the components from this container. * This method also notifies the layout manager to remove the * components from this container's layout via the - * removeLayoutComponent method. + * {@code removeLayoutComponent} method. *

* This method changes layout-related information, and therefore, * invalidates the component hierarchy. If the container has already been @@ -1512,7 +1512,7 @@ /** * Causes this container to lay out its components. Most programs * should not call this method directly, but should invoke - * the validate method instead. + * the {@code validate} method instead. * @see LayoutManager#layoutContainer * @see #setLayout * @see #validate @@ -1524,7 +1524,7 @@ /** * @deprecated As of JDK version 1.1, - * replaced by doLayout(). + * replaced by {@code doLayout()}. */ @Deprecated public void layout() { @@ -1703,7 +1703,7 @@ * Recursively descends the container tree and recomputes the * layout for any subtrees marked as needing it (those marked as * invalid). Synchronization should be provided by the method - * that calls this one: validate. + * that calls this one: {@code validate}. * * @see #doLayout * @see #validate @@ -1791,7 +1791,7 @@ * this method is invoked, rather the {@code LayoutManager} will only * be queried after the {@code Container} becomes invalid. * - * @return an instance of Dimension that represents + * @return an instance of {@code Dimension} that represents * the preferred size of this container. * @see #getMinimumSize * @see #getMaximumSize @@ -1805,7 +1805,7 @@ /** * @deprecated As of JDK version 1.1, - * replaced by getPreferredSize(). + * replaced by {@code getPreferredSize()}. */ @Deprecated public Dimension preferredSize() { @@ -1842,7 +1842,7 @@ * this method is invoked, rather the {@code LayoutManager} will only * be queried after the {@code Container} becomes invalid. * - * @return an instance of Dimension that represents + * @return an instance of {@code Dimension} that represents * the minimum size of this container. * @see #getPreferredSize * @see #getMaximumSize @@ -1857,7 +1857,7 @@ /** * @deprecated As of JDK version 1.1, - * replaced by getMinimumSize(). + * replaced by {@code getMinimumSize()}. */ @Deprecated public Dimension minimumSize() { @@ -1895,7 +1895,7 @@ * this method is invoked, rather the {@code LayoutManager2} will only * be queried after the {@code Container} becomes invalid. * - * @return an instance of Dimension that represents + * @return an instance of {@code Dimension} that represents * the maximum size of this container. * @see #getPreferredSize * @see #getMinimumSize @@ -2169,7 +2169,7 @@ * Returns an array of all the container listeners * registered on this container. * - * @return all of this container's ContainerListeners + * @return all of this container's {@code ContainerListener}s * or an empty array if no container * listeners are currently registered * @@ -2184,16 +2184,16 @@ /** * Returns an array of all the objects currently registered * as FooListeners - * upon this Container. + * upon this {@code Container}. * FooListeners are registered using the * addFooListener method. * *

- * You can specify the listenerType argument + * You can specify the {@code listenerType} argument * with a class literal, such as * FooListener.class. * For example, you can query a - * Container c + * {@code Container c} * for its container listeners with the following code: * *

ContainerListener[] cls = (ContainerListener[])(c.getListeners(ContainerListener.class));
@@ -2202,13 +2202,13 @@ * * @param listenerType the type of listeners requested; this parameter * should specify an interface that descends from - * java.util.EventListener + * {@code java.util.EventListener} * @return an array of all objects registered as * FooListeners on this container, * or an empty array if no such listeners have been added - * @exception ClassCastException if listenerType + * @exception ClassCastException if {@code listenerType} * doesn't specify a class or interface that implements - * java.util.EventListener + * {@code java.util.EventListener} * @exception NullPointerException if {@code listenerType} is {@code null} * * @see #getContainerListeners @@ -2242,10 +2242,10 @@ /** * Processes events on this container. If the event is a - * ContainerEvent, it invokes the - * processContainerEvent method, else it invokes - * its superclass's processEvent. - *

Note that if the event parameter is null + * {@code ContainerEvent}, it invokes the + * {@code processContainerEvent} method, else it invokes + * its superclass's {@code processEvent}. + *

Note that if the event parameter is {@code null} * the behavior is unspecified and may result in an * exception. * @@ -2267,10 +2267,10 @@ * following occurs: *

    *
  • A ContainerListener object is registered via - * addContainerListener - *
  • Container events are enabled via enableEvents + * {@code addContainerListener} + *
  • Container events are enabled via {@code enableEvents} *
- *

Note that if the event parameter is null + *

Note that if the event parameter is {@code null} * the behavior is unspecified and may result in an * exception. * @@ -2365,11 +2365,11 @@ * controllable behaviors. This method searches for the top-most * descendant of this container that contains the given coordinates * and is accepted by the given filter. The search will be constrained to - * lightweight descendants if the last argument is false. + * lightweight descendants if the last argument is {@code false}. * * @param filter EventTargetFilter instance to determine whether the * given component is a valid target for this event. - * @param searchHeavyweights if false, the method + * @param searchHeavyweights if {@code false}, the method * will bypass heavyweight components during the search. */ private Component getMouseEventTarget(int x, int y, boolean includeSelf, @@ -2399,17 +2399,17 @@ * descendants of only lightweight children or only heavyweight children * of this container depending on searchHeavyweightChildren. The search will * be constrained to only lightweight descendants of the searched children - * of this container if searchHeavyweightDescendants is false. + * of this container if searchHeavyweightDescendants is {@code false}. * * @param filter EventTargetFilter instance to determine whether the * selected component is a valid target for this event. - * @param searchHeavyweightChildren if true, the method + * @param searchHeavyweightChildren if {@code true}, the method * will bypass immediate lightweight children during the search. - * If false, the methods will bypass immediate + * If {@code false}, the methods will bypass immediate * heavyweight children during the search. - * @param searchHeavyweightDescendants if false, the method + * @param searchHeavyweightDescendants if {@code false}, the method * will bypass heavyweight descendants which are not immediate - * children during the search. If true, the method + * children during the search. If {@code true}, the method * will traverse both lightweight and heavyweight descendants during * the search. */ @@ -2525,7 +2525,7 @@ /** * @deprecated As of JDK version 1.1, - * replaced by dispatchEvent(AWTEvent e) + * replaced by {@code dispatchEvent(AWTEvent e)} */ @Deprecated public void deliverEvent(Event e) { @@ -2562,7 +2562,7 @@ /** * @deprecated As of JDK version 1.1, - * replaced by getComponentAt(int, int). + * replaced by {@code getComponentAt(int, int)}. */ @Deprecated public Component locate(int x, int y) { @@ -2593,7 +2593,7 @@ * Gets the component that contains the specified point. * @param p the point. * @return returns the component that contains the point, - * or null if the component does + * or {@code null} if the component does * not contain the point. * @see Component#contains * @since 1.1 @@ -2603,22 +2603,22 @@ } /** - * Returns the position of the mouse pointer in this Container's - * coordinate space if the Container is under the mouse pointer, - * otherwise returns null. + * Returns the position of the mouse pointer in this {@code Container}'s + * coordinate space if the {@code Container} is under the mouse pointer, + * otherwise returns {@code null}. * This method is similar to {@link Component#getMousePosition()} with the exception - * that it can take the Container's children into account. - * If allowChildren is false, this method will return - * a non-null value only if the mouse pointer is above the Container + * that it can take the {@code Container}'s children into account. + * If {@code allowChildren} is {@code false}, this method will return + * a non-null value only if the mouse pointer is above the {@code Container} * directly, not above the part obscured by children. - * If allowChildren is true, this method returns - * a non-null value if the mouse pointer is above Container or any + * If {@code allowChildren} is {@code true}, this method returns + * a non-null value if the mouse pointer is above {@code Container} or any * of its descendants. * * @exception HeadlessException if GraphicsEnvironment.isHeadless() returns true * @param allowChildren true if children should be taken into account * @see Component#getMousePosition - * @return mouse coordinates relative to this Component, or null + * @return mouse coordinates relative to this {@code Component}, or null * @since 1.5 */ public Point getMousePosition(boolean allowChildren) throws HeadlessException { @@ -2848,8 +2848,8 @@ * Checks if the component is contained in the component hierarchy of * this container. * @param c the component - * @return true if it is an ancestor; - * false otherwise. + * @return {@code true} if it is an ancestor; + * {@code false} otherwise. * @since 1.1 */ public boolean isAncestorOf(Component c) { @@ -2983,11 +2983,11 @@ /* End of JOptionPane support code */ /** - * Returns a string representing the state of this Container. + * Returns a string representing the state of this {@code Container}. * This method is intended to be used only for debugging purposes, and the * content and format of the returned string may vary between * implementations. The returned string may be empty but may not be - * null. + * {@code null}. * * @return the parameter string of this container */ @@ -3005,8 +3005,8 @@ * stream. The listing starts at the specified indentation. *

* The immediate children of the container are printed with - * an indentation of indent+1. The children - * of those children are printed at indent+2 + * an indentation of {@code indent+1}. The children + * of those children are printed at {@code indent+2} * and so on. * * @param out a print stream @@ -3032,8 +3032,8 @@ * to the specified print writer. *

* The immediate children of the container are printed with - * an indentation of indent+1. The children - * of those children are printed at indent+2 + * an indentation of {@code indent+1}. The children + * of those children are printed at {@code indent+2} * and so on. * * @param out a print writer @@ -3149,7 +3149,7 @@ /** * Returns the Set of focus traversal keys for a given traversal operation * for this Container. (See - * setFocusTraversalKeys for a full description of each key.) + * {@code setFocusTraversalKeys} for a full description of each key.) *

* If a Set of traversal keys has not been explicitly defined for this * Container, then this Container's parent's Set is returned. If no Set @@ -3188,16 +3188,16 @@ /** * Returns whether the Set of focus traversal keys for the given focus * traversal operation has been explicitly defined for this Container. If - * this method returns false, this Container is inheriting the + * this method returns {@code false}, this Container is inheriting the * Set from an ancestor, or from the current KeyboardFocusManager. * * @param id one of KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS, * KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS, * KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS, or * KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS - * @return true if the Set of focus traversal keys for the + * @return {@code true} if the Set of focus traversal keys for the * given focus traversal operation has been explicitly defined for - * this Component; false otherwise. + * this Component; {@code false} otherwise. * @throws IllegalArgumentException if id is not one of * KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS, * KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS, @@ -3220,12 +3220,12 @@ * root belongs to only a single focus traversal cycle. Containers which * are focus cycle roots belong to two cycles: one rooted at the Container * itself, and one rooted at the Container's nearest focus-cycle-root - * ancestor. This method will return true for both such + * ancestor. This method will return {@code true} for both such * Containers in this case. * * @param container the Container to be tested - * @return true if the specified Container is a focus-cycle- - * root of this Container; false otherwise + * @return {@code true} if the specified Container is a focus-cycle- + * root of this Container; {@code false} otherwise * @see #isFocusCycleRoot() * @since 1.4 */ @@ -3394,11 +3394,11 @@ /** * Returns whether the focus traversal policy has been explicitly set for - * this Container. If this method returns false, this + * this Container. If this method returns {@code false}, this * Container will inherit its focus traversal policy from an ancestor. * - * @return true if the focus traversal policy has been - * explicitly set for this Container; false otherwise. + * @return {@code true} if the focus traversal policy has been + * explicitly set for this Container; {@code false} otherwise. * @since 1.4 */ public boolean isFocusTraversalPolicySet() { @@ -3464,7 +3464,7 @@ /** * Sets whether this container will be used to provide focus * traversal policy. Container with this property as - * true will be used to acquire focus traversal policy + * {@code true} will be used to acquire focus traversal policy * instead of closest focus cycle root ancestor. * @param provider indicates whether this container will be used to * provide focus traversal policy @@ -3486,7 +3486,7 @@ /** * Returns whether this container provides focus traversal - * policy. If this property is set to true then when + * policy. If this property is set to {@code true} then when * keyboard focus manager searches container hierarchy for focus * traversal policy and encounters this container before any other * container with this property as true or focus cycle roots then @@ -3496,8 +3496,8 @@ * @see #getFocusTraversalPolicy * @see #setFocusCycleRoot * @see #setFocusTraversalPolicyProvider - * @return true if this container provides focus traversal - * policy, false otherwise + * @return {@code true} if this container provides focus traversal + * policy, {@code false} otherwise * @since 1.5 * @beaninfo * bound: true @@ -3549,7 +3549,7 @@ } /** - * Sets the ComponentOrientation property of this container + * Sets the {@code ComponentOrientation} property of this container * and all components contained within it. *

* This method changes layout-related information, and therefore, @@ -3557,7 +3557,7 @@ * * @param o the new component orientation of this container and * the components contained within it. - * @exception NullPointerException if orientation is null. + * @exception NullPointerException if {@code orientation} is null. * @see Component#setComponentOrientation * @see Component#getComponentOrientation * @see #invalidate @@ -3660,26 +3660,26 @@ private int containerSerializedDataVersion = 1; /** - * Serializes this Container to the specified - * ObjectOutputStream. + * Serializes this {@code Container} to the specified + * {@code ObjectOutputStream}. *

    *
  • Writes default serializable fields to the stream.
  • *
  • Writes a list of serializable ContainerListener(s) as optional * data. The non-serializable ContainerListener(s) are detected and * no attempt is made to serialize them.
  • *
  • Write this Container's FocusTraversalPolicy if and only if it - * is Serializable; otherwise, null is written.
  • + * is Serializable; otherwise, {@code null} is written. *
* - * @param s the ObjectOutputStream to write - * @serialData null terminated sequence of 0 or more pairs; - * the pair consists of a String and Object; - * the String indicates the type of object and + * @param s the {@code ObjectOutputStream} to write + * @serialData {@code null} terminated sequence of 0 or more pairs; + * the pair consists of a {@code String} and {@code Object}; + * the {@code String} indicates the type of object and * is one of the following: - * containerListenerK indicating an - * ContainerListener object; - * the Container's FocusTraversalPolicy, - * or null + * {@code containerListenerK} indicating an + * {@code ContainerListener} object; + * the {@code Container}'s {@code FocusTraversalPolicy}, + * or {@code null} * * @see AWTEventMulticaster#save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) * @see Container#containerListenerK @@ -3708,8 +3708,8 @@ } /** - * Deserializes this Container from the specified - * ObjectInputStream. + * Deserializes this {@code Container} from the specified + * {@code ObjectInputStream}. *
    *
  • Reads default serializable fields from the stream.
  • *
  • Reads a list of serializable ContainerListener(s) as optional @@ -3718,7 +3718,7 @@ * as optional data.
  • *
* - * @param s the ObjectInputStream to read + * @param s the {@code ObjectInputStream} to read * @serial * @see #addContainerListener * @see #writeObject(ObjectOutputStream) @@ -3806,7 +3806,7 @@ /** * Returns the number of accessible children in the object. If all - * of the children of this object implement Accessible, + * of the children of this object implement {@code Accessible}, * then this method should return the number of children of this object. * * @return the number of accessible children in the object @@ -3816,24 +3816,24 @@ } /** - * Returns the nth Accessible child of the object. + * Returns the nth {@code Accessible} child of the object. * * @param i zero-based index of child - * @return the nth Accessible child of the object + * @return the nth {@code Accessible} child of the object */ public Accessible getAccessibleChild(int i) { return Container.this.getAccessibleChild(i); } /** - * Returns the Accessible child, if one exists, - * contained at the local coordinate Point. + * Returns the {@code Accessible} child, if one exists, + * contained at the local coordinate {@code Point}. * * @param p the point defining the top-left corner of the - * Accessible, given in the coordinate space + * {@code Accessible}, given in the coordinate space * of the object's parent - * @return the Accessible, if it exists, - * at the specified location; else null + * @return the {@code Accessible}, if it exists, + * at the specified location; else {@code null} */ public Accessible getAccessibleAt(Point p) { return Container.this.getAccessibleAt(p); @@ -3852,7 +3852,7 @@ protected ContainerListener accessibleContainerHandler = null; /** - * Fire PropertyChange listener, if one is registered, + * Fire {@code PropertyChange} listener, if one is registered, * when children are added or removed. * @since 1.3 */ @@ -3908,15 +3908,15 @@ } // inner class AccessibleAWTContainer /** - * Returns the Accessible child contained at the local - * coordinate Point, if one exists. Otherwise - * returns null. + * Returns the {@code Accessible} child contained at the local + * coordinate {@code Point}, if one exists. Otherwise + * returns {@code null}. * * @param p the point defining the top-left corner of the - * Accessible, given in the coordinate space + * {@code Accessible}, given in the coordinate space * of the object's parent - * @return the Accessible at the specified location, - * if it exists; otherwise null + * @return the {@code Accessible} at the specified location, + * if it exists; otherwise {@code null} */ Accessible getAccessibleAt(Point p) { synchronized (getTreeLock()) { @@ -3972,7 +3972,7 @@ /** * Returns the number of accessible children in the object. If all - * of the children of this object implement Accessible, + * of the children of this object implement {@code Accessible}, * then this method should return the number of children of this object. * * @return the number of accessible children in the object @@ -3991,10 +3991,10 @@ } /** - * Returns the nth Accessible child of the object. + * Returns the nth {@code Accessible} child of the object. * * @param i zero-based index of child - * @return the nth Accessible child of the object + * @return the nth {@code Accessible} child of the object */ Accessible getAccessibleChild(int i) { synchronized (getTreeLock()) { --- old/src/java.desktop/share/classes/java/awt/ContainerOrderFocusTraversalPolicy.java 2015-10-04 22:52:30.165274756 +0400 +++ new/src/java.desktop/share/classes/java/awt/ContainerOrderFocusTraversalPolicy.java 2015-10-04 22:52:29.977274765 +0400 @@ -33,18 +33,18 @@ * of child Components in a Container. From a particular focus cycle root, the * policy makes a pre-order traversal of the Component hierarchy, and traverses * a Container's children according to the ordering of the array returned by - * Container.getComponents(). Portions of the hierarchy that are + * {@code Container.getComponents()}. Portions of the hierarchy that are * not visible and displayable will not be searched. *

* By default, ContainerOrderFocusTraversalPolicy implicitly transfers focus * down-cycle. That is, during normal forward focus traversal, the Component * traversed after a focus cycle root will be the focus-cycle-root's default * Component to focus. This behavior can be disabled using the - * setImplicitDownCycleTraversal method. + * {@code setImplicitDownCycleTraversal} method. *

* By default, methods of this class will return a Component only if it is * visible, displayable, enabled, and focusable. Subclasses can modify this - * behavior by overriding the accept method. + * behavior by overriding the {@code accept} method. *

* This policy takes into account focus traversal @@ -193,7 +193,7 @@ * focus down-cycle. That is, during normal forward focus traversal, the * Component traversed after a focus cycle root will be the focus-cycle- * root's default Component to focus. This behavior can be disabled using - * the setImplicitDownCycleTraversal method. + * the {@code setImplicitDownCycleTraversal} method. *

* If aContainer is focus * traversal policy provider, the focus is always transferred down-cycle. @@ -519,7 +519,7 @@ * Returns the default Component to focus. This Component will be the first * to receive focus when traversing down into a new focus traversal cycle * rooted at aContainer. The default implementation of this method - * returns the same Component as getFirstComponent. + * returns the same Component as {@code getFirstComponent}. * * @param aContainer the focus cycle root or focus traversal policy provider whose default * Component is to be returned @@ -534,12 +534,12 @@ /** * Sets whether this ContainerOrderFocusTraversalPolicy transfers focus - * down-cycle implicitly. If true, during normal forward focus + * down-cycle implicitly. If {@code true}, during normal forward focus * traversal, the Component traversed after a focus cycle root will be the - * focus-cycle-root's default Component to focus. If false, + * focus-cycle-root's default Component to focus. If {@code false}, * the next Component in the focus traversal cycle rooted at the specified * focus cycle root will be traversed instead. The default value for this - * property is true. + * property is {@code true}. * * @param implicitDownCycleTraversal whether this * ContainerOrderFocusTraversalPolicy transfers focus down-cycle @@ -553,9 +553,9 @@ /** * Returns whether this ContainerOrderFocusTraversalPolicy transfers focus - * down-cycle implicitly. If true, during normal forward focus + * down-cycle implicitly. If {@code true}, during normal forward focus * traversal, the Component traversed after a focus cycle root will be the - * focus-cycle-root's default Component to focus. If false, + * focus-cycle-root's default Component to focus. If {@code false}, * the next Component in the focus traversal cycle rooted at the specified * focus cycle root will be traversed instead. * @@ -575,8 +575,8 @@ * * @param aComponent the Component whose fitness as a focus owner is to * be tested - * @return true if aComponent is visible, displayable, - * enabled, and focusable; false otherwise + * @return {@code true} if aComponent is visible, displayable, + * enabled, and focusable; {@code false} otherwise */ protected boolean accept(Component aComponent) { if (!aComponent.canBeFocusOwner()) { --- old/src/java.desktop/share/classes/java/awt/Cursor.java 2015-10-04 22:52:30.697274733 +0400 +++ new/src/java.desktop/share/classes/java/awt/Cursor.java 2015-10-04 22:52:30.509274741 +0400 @@ -146,7 +146,7 @@ /** * The chosen cursor type initially set to - * the DEFAULT_CURSOR. + * the {@code DEFAULT_CURSOR}. * * @serial * @see #getType() @@ -283,7 +283,7 @@ * @param name a string describing the desired system-specific custom cursor * @return the system specific custom cursor named * @exception HeadlessException if - * GraphicsEnvironment.isHeadless returns true + * {@code GraphicsEnvironment.isHeadless} returns true * @exception AWTException in case of erroneous retrieving of the cursor */ public static Cursor getSystemCustomCursor(final String name) --- old/src/java.desktop/share/classes/java/awt/DefaultFocusTraversalPolicy.java 2015-10-04 22:52:31.221274709 +0400 +++ new/src/java.desktop/share/classes/java/awt/DefaultFocusTraversalPolicy.java 2015-10-04 22:52:31.033274718 +0400 @@ -32,13 +32,13 @@ * of child Components in a Container. From a particular focus cycle root, the * policy makes a pre-order traversal of the Component hierarchy, and traverses * a Container's children according to the ordering of the array returned by - * Container.getComponents(). Portions of the hierarchy that are + * {@code Container.getComponents()}. Portions of the hierarchy that are * not visible and displayable will not be searched. *

* If client code has explicitly set the focusability of a Component by either - * overriding Component.isFocusTraversable() or - * Component.isFocusable(), or by calling - * Component.setFocusable(), then a DefaultFocusTraversalPolicy + * overriding {@code Component.isFocusTraversable()} or + * {@code Component.isFocusable()}, or by calling + * {@code Component.setFocusable()}, then a DefaultFocusTraversalPolicy * behaves exactly like a ContainerOrderFocusTraversalPolicy. If, however, the * Component is relying on default focusability, then a * DefaultFocusTraversalPolicy will reject all Components with non-focusable @@ -80,9 +80,9 @@ * focus owner. The Component must be visible, displayable, and enabled * to be accepted. If client code has explicitly set the focusability * of the Component by either overriding - * Component.isFocusTraversable() or - * Component.isFocusable(), or by calling - * Component.setFocusable(), then the Component will be + * {@code Component.isFocusTraversable()} or + * {@code Component.isFocusable()}, or by calling + * {@code Component.setFocusable()}, then the Component will be * accepted if and only if it is focusable. If, however, the Component is * relying on default focusability, then all Canvases, Labels, Panels, * Scrollbars, ScrollPanes, Windows, and lightweight Components will be @@ -90,8 +90,8 @@ * * @param aComponent the Component whose fitness as a focus owner is to * be tested - * @return true if aComponent meets the above requirements; - * false otherwise + * @return {@code true} if aComponent meets the above requirements; + * {@code false} otherwise */ protected boolean accept(Component aComponent) { if (!(aComponent.isVisible() && aComponent.isDisplayable() && --- old/src/java.desktop/share/classes/java/awt/DefaultKeyboardFocusManager.java 2015-10-04 22:52:31.761274685 +0400 +++ new/src/java.desktop/share/classes/java/awt/DefaultKeyboardFocusManager.java 2015-10-04 22:52:31.553274694 +0400 @@ -309,12 +309,12 @@ * related to focus, and all KeyEvents. These events are dispatched based * on the KeyboardFocusManager's notion of the focus owner and the focused * and active Windows, sometimes overriding the source of the specified - * AWTEvent. If this method returns false, then the AWT event + * AWTEvent. If this method returns {@code false}, then the AWT event * dispatcher will attempt to dispatch the event itself. * * @param e the AWTEvent to be dispatched - * @return true if this method dispatched the event; - * false otherwise + * @return {@code true} if this method dispatched the event; + * {@code false} otherwise */ public boolean dispatchEvent(AWTEvent e) { if (focusLog.isLoggable(PlatformLogger.Level.FINE) && (e instanceof WindowEvent || e instanceof FocusEvent)) { @@ -778,7 +778,7 @@ } /** - * Called by dispatchEvent if no other + * Called by {@code dispatchEvent} if no other * KeyEventDispatcher in the dispatcher chain dispatched the KeyEvent, or * if no other KeyEventDispatchers are registered. If the event has not * been consumed, its target is enabled, and the focus owner is not null, @@ -787,13 +787,13 @@ * KeyEventPostProcessors. After all this operations are finished, * the event is passed to peers for processing. *

- * In all cases, this method returns true, since + * In all cases, this method returns {@code true}, since * DefaultKeyboardFocusManager is designed so that neither - * dispatchEvent, nor the AWT event dispatcher, should take + * {@code dispatchEvent}, nor the AWT event dispatcher, should take * further action on the event in any situation. * * @param e the KeyEvent to be dispatched - * @return true + * @return {@code true} * @see Component#dispatchEvent */ public boolean dispatchKeyEvent(KeyEvent e) { @@ -841,13 +841,13 @@ } /** - * This method will be called by dispatchKeyEvent. It will + * This method will be called by {@code dispatchKeyEvent}. It will * handle any unconsumed KeyEvents that map to an AWT - * MenuShortcut by consuming the event and activating the + * {@code MenuShortcut} by consuming the event and activating the * shortcut. * * @param e the KeyEvent to post-process - * @return true + * @return {@code true} * @see #dispatchKeyEvent * @see MenuShortcut */ @@ -998,7 +998,7 @@ } /** - * Returns true if there are some marker associated with component comp + * Returns true if there are some marker associated with component {@code comp} * in a markers' queue * @since 1.5 */ @@ -1201,7 +1201,7 @@ * the focus owner. KeyEvents with timestamps later than the specified * timestamp will be enqueued until the specified Component receives a * FOCUS_GAINED event, or the AWT cancels the delay request by invoking - * dequeueKeyEvents or discardKeyEvents. + * {@code dequeueKeyEvents} or {@code discardKeyEvents}. * * @param after timestamp of current event, or the current, system time if * the current event has no timestamp, or the AWT cannot determine @@ -1241,15 +1241,15 @@ /** * Releases for normal dispatching to the current focus owner all * KeyEvents which were enqueued because of a call to - * enqueueKeyEvents with the same timestamp and Component. + * {@code enqueueKeyEvents} with the same timestamp and Component. * If the given timestamp is less than zero, the outstanding enqueue * request for the given Component with the oldest timestamp (if * any) should be cancelled. * * @param after the timestamp specified in the call to - * enqueueKeyEvents, or any value < 0 + * {@code enqueueKeyEvents}, or any value < 0 * @param untilFocused the Component specified in the call to - * enqueueKeyEvents + * {@code enqueueKeyEvents} * @see #enqueueKeyEvents * @see #discardKeyEvents */ @@ -1292,11 +1292,11 @@ /** * Discards all KeyEvents which were enqueued because of one or more calls - * to enqueueKeyEvents with the specified Component, or one of + * to {@code enqueueKeyEvents} with the specified Component, or one of * its descendants. * * @param comp the Component specified in one or more calls to - * enqueueKeyEvents, or a parent of such a Component + * {@code enqueueKeyEvents}, or a parent of such a Component * @see #enqueueKeyEvents * @see #dequeueKeyEvents */ --- old/src/java.desktop/share/classes/java/awt/Desktop.java 2015-10-04 22:52:32.297274661 +0400 +++ new/src/java.desktop/share/classes/java/awt/Desktop.java 2015-10-04 22:52:32.109274669 +0400 @@ -127,7 +127,7 @@ } /** - * Returns the Desktop instance of the current + * Returns the {@code Desktop} instance of the current * browser context. On some platforms the Desktop API may not be * supported; use the {@link #isDesktopSupported} method to * determine if the current desktop is supported. @@ -162,8 +162,8 @@ * If it's supported, use {@link #getDesktop()} to retrieve an * instance. * - * @return true if this class is supported on the - * current platform; false otherwise + * @return {@code true} if this class is supported on the + * current platform; {@code false} otherwise * @see #getDesktop() */ public static boolean isDesktopSupported(){ @@ -186,8 +186,8 @@ * action method will throw an {@link IOException}. * * @param action the specified {@link Action} - * @return true if the specified action is supported on - * the current platform; false otherwise + * @return {@code true} if the specified action is supported on + * the current platform; {@code false} otherwise * @see Desktop.Action */ public boolean isSupported(Action action) { @@ -230,8 +230,8 @@ /** - * Calls to the security manager's checkPermission method with - * an AWTPermission("showWindowWithoutWarningBanner") + * Calls to the security manager's {@code checkPermission} method with + * an {@code AWTPermission("showWindowWithoutWarningBanner")} * permission. */ private void checkAWTPermission(){ @@ -259,7 +259,7 @@ * @throws SecurityException if a security manager exists and its * {@link java.lang.SecurityManager#checkRead(java.lang.String)} * method denies read access to the file, or it denies the - * AWTPermission("showWindowWithoutWarningBanner") + * {@code AWTPermission("showWindowWithoutWarningBanner")} * permission, or the calling thread is not allowed to create a * subprocess * @see java.awt.AWTPermission @@ -290,7 +290,7 @@ * method denies read access to the file, or {@link * java.lang.SecurityManager#checkWrite(java.lang.String)} method * denies write access to the file, or it denies the - * AWTPermission("showWindowWithoutWarningBanner") + * {@code AWTPermission("showWindowWithoutWarningBanner")} * permission, or the calling thread is not allowed to create a * subprocess * @see java.awt.AWTPermission @@ -361,7 +361,7 @@ * failed to be launched * @throws SecurityException if a security manager exists and it * denies the - * AWTPermission("showWindowWithoutWarningBanner") + * {@code AWTPermission("showWindowWithoutWarningBanner")} * permission, or the calling thread is not allowed to create a * subprocess; and not invoked from within an applet or Java Web Started * application @@ -415,7 +415,7 @@ * found, or it fails to be launched * @throws SecurityException if a security manager exists and it * denies the - * AWTPermission("showWindowWithoutWarningBanner") + * {@code AWTPermission("showWindowWithoutWarningBanner")} * permission, or the calling thread is not allowed to create a * subprocess * @see java.awt.AWTPermission @@ -438,7 +438,7 @@ * client, filling the message fields specified by a {@code * mailto:} URI. * - *

A mailto: URI can specify message fields + *

A {@code mailto:} URI can specify message fields * including "to", "cc", "subject", * "body", etc. See The mailto URL @@ -449,14 +449,14 @@ * @throws NullPointerException if the specified URI is {@code * null} * @throws IllegalArgumentException if the URI scheme is not - * "mailto" + * {@code "mailto"} * @throws UnsupportedOperationException if the current platform * does not support the {@link Desktop.Action#MAIL} action * @throws IOException if the user default mail client is not * found or fails to be launched * @throws SecurityException if a security manager exists and it * denies the - * AWTPermission("showWindowWithoutWarningBanner") + * {@code AWTPermission("showWindowWithoutWarningBanner")} * permission, or the calling thread is not allowed to create a * subprocess * @see java.net.URI --- old/src/java.desktop/share/classes/java/awt/Dialog.java 2015-10-04 22:52:32.825274637 +0400 +++ new/src/java.desktop/share/classes/java/awt/Dialog.java 2015-10-04 22:52:32.633274646 +0400 @@ -46,22 +46,22 @@ * * The size of the dialog includes any area designated for the * border. The dimensions of the border area can be obtained - * using the getInsets method, however, since + * using the {@code getInsets} method, however, since * these dimensions are platform-dependent, a valid insets * value cannot be obtained until the dialog is made displayable - * by either calling pack or show. + * by either calling {@code pack} or {@code show}. * Since the border area is included in the overall size of the * dialog, the border effectively obscures a portion of the dialog, * constraining the area available for rendering and/or displaying * subcomponents to the rectangle which has an upper-left corner - * location of (insets.left, insets.top), and has a size of - * width - (insets.left + insets.right) by - * height - (insets.top + insets.bottom). + * location of {@code (insets.left, insets.top)}, and has a size of + * {@code width - (insets.left + insets.right)} by + * {@code height - (insets.top + insets.bottom)}. *

- * The default layout for a dialog is BorderLayout. + * The default layout for a dialog is {@code BorderLayout}. *

* A dialog may have its native decorations (i.e. Frame & Titlebar) turned off - * with setUndecorated. This can only be done while the dialog + * with {@code setUndecorated}. This can only be done while the dialog * is not {@link Component#isDisplayable() displayable}. *

* A dialog may have another window as its owner when it's constructed. When @@ -69,7 +69,7 @@ * automatically be hidden from the user. When the owner window is subsequently * restored, the dialog is made visible to the user again. *

- * In a multi-screen environment, you can create a Dialog + * In a multi-screen environment, you can create a {@code Dialog} * on a different screen device than its owner. See {@link java.awt.Frame} for * more information. *

@@ -80,11 +80,11 @@ * specification for details. *

* Dialogs are capable of generating the following - * WindowEvents: - * WindowOpened, WindowClosing, - * WindowClosed, WindowActivated, - * WindowDeactivated, WindowGainedFocus, - * WindowLostFocus. + * {@code WindowEvents}: + * {@code WindowOpened}, {@code WindowClosing}, + * {@code WindowClosed}, {@code WindowActivated}, + * {@code WindowDeactivated}, {@code WindowGainedFocus}, + * {@code WindowLostFocus}. * * @see WindowEvent * @see Window#addWindowListener @@ -117,7 +117,7 @@ /** * This field indicates whether the dialog is undecorated. * This property can only be changed while the dialog is not displayable. - * undecorated will be true if the dialog is + * {@code undecorated} will be true if the dialog is * undecorated, otherwise it will be false. * * @serial @@ -134,7 +134,7 @@ * Modal dialogs block all input to some top-level windows. * Whether a particular window is blocked depends on dialog's type * of modality; this is called the "scope of blocking". The - * ModalityType enum specifies modal types and their + * {@code ModalityType} enum specifies modal types and their * associated scopes. * * @see Dialog#getModalityType @@ -145,11 +145,11 @@ */ public static enum ModalityType { /** - * MODELESS dialog doesn't block any top-level windows. + * {@code MODELESS} dialog doesn't block any top-level windows. */ MODELESS, /** - * A DOCUMENT_MODAL dialog blocks input to all top-level windows + * A {@code DOCUMENT_MODAL} dialog blocks input to all top-level windows * from the same document except those from its own child hierarchy. * A document is a top-level window without an owner. It may contain child * windows that, together with the top-level window are treated as a single @@ -158,7 +158,7 @@ */ DOCUMENT_MODAL, /** - * An APPLICATION_MODAL dialog blocks all top-level windows + * An {@code APPLICATION_MODAL} dialog blocks all top-level windows * from the same Java application except those from its own child hierarchy. * If there are several applets launched in a browser, they can be * treated either as separate applications or a single one. This behavior @@ -166,18 +166,18 @@ */ APPLICATION_MODAL, /** - * A TOOLKIT_MODAL dialog blocks all top-level windows run + * A {@code TOOLKIT_MODAL} dialog blocks all top-level windows run * from the same toolkit except those from its own child hierarchy. If there * are several applets launched in a browser, all of them run with the same * toolkit; thus, a toolkit-modal dialog displayed by an applet may affect * other applets and all windows of the browser instance which embeds the * Java runtime environment for this toolkit. - * Special AWTPermission "toolkitModality" must be granted to use - * toolkit-modal dialogs. If a TOOLKIT_MODAL dialog is being created - * and this permission is not granted, a SecurityException will be + * Special {@code AWTPermission} "toolkitModality" must be granted to use + * toolkit-modal dialogs. If a {@code TOOLKIT_MODAL} dialog is being created + * and this permission is not granted, a {@code SecurityException} will be * thrown, and no dialog will be created. If a modality type is being changed - * to TOOLKIT_MODAL and this permission is not granted, a - * SecurityException will be thrown, and the modality type will + * to {@code TOOLKIT_MODAL} and this permission is not granted, a + * {@code SecurityException} will be thrown, and the modality type will * be left unchanged. */ TOOLKIT_MODAL @@ -185,8 +185,8 @@ /** * Default modality type for modal dialogs. The default modality type is - * APPLICATION_MODAL. Calling the oldstyle setModal(true) - * is equal to setModalityType(DEFAULT_MODALITY_TYPE). + * {@code APPLICATION_MODAL}. Calling the oldstyle {@code setModal(true)} + * is equal to {@code setModalityType(DEFAULT_MODALITY_TYPE)}. * * @see java.awt.Dialog.ModalityType * @see java.awt.Dialog#setModal @@ -245,20 +245,20 @@ */ NO_EXCLUDE, /** - * APPLICATION_EXCLUDE indicates that a top-level window + * {@code APPLICATION_EXCLUDE} indicates that a top-level window * won't be blocked by any application-modal dialogs. Also, it isn't * blocked by document-modal dialogs from outside of its child hierarchy. */ APPLICATION_EXCLUDE, /** - * TOOLKIT_EXCLUDE indicates that a top-level window + * {@code TOOLKIT_EXCLUDE} indicates that a top-level window * won't be blocked by application-modal or toolkit-modal dialogs. Also, * it isn't blocked by document-modal dialogs from outside of its * child hierarchy. - * The "toolkitModality" AWTPermission must be granted + * The "toolkitModality" {@code AWTPermission} must be granted * for this exclusion. If an exclusion property is being changed to - * TOOLKIT_EXCLUDE and this permission is not granted, a - * SecurityException will be thrown, and the exclusion + * {@code TOOLKIT_EXCLUDE} and this permission is not granted, a + * {@code SecurityException} will be thrown, and the exclusion * property will be left unchanged. */ TOOLKIT_EXCLUDE @@ -313,15 +313,15 @@ private static final long serialVersionUID = 5920926903803293709L; /** - * Constructs an initially invisible, modeless Dialog with - * the specified owner Frame and an empty title. + * Constructs an initially invisible, modeless {@code Dialog} with + * the specified owner {@code Frame} and an empty title. * - * @param owner the owner of the dialog or null if + * @param owner the owner of the dialog or {@code null} if * this dialog has no owner - * @exception java.lang.IllegalArgumentException if the owner's - * GraphicsConfiguration is not from a screen device + * @exception java.lang.IllegalArgumentException if the {@code owner}'s + * {@code GraphicsConfiguration} is not from a screen device * @exception HeadlessException when - * GraphicsEnvironment.isHeadless() returns true + * {@code GraphicsEnvironment.isHeadless()} returns {@code true} * * @see java.awt.GraphicsEnvironment#isHeadless * @see Component#setSize @@ -332,19 +332,19 @@ } /** - * Constructs an initially invisible Dialog with the specified - * owner Frame and modality and an empty title. + * Constructs an initially invisible {@code Dialog} with the specified + * owner {@code Frame} and modality and an empty title. * - * @param owner the owner of the dialog or null if + * @param owner the owner of the dialog or {@code null} if * this dialog has no owner * @param modal specifies whether dialog blocks user input to other top-level - * windows when shown. If false, the dialog is MODELESS; - * if true, the modality type property is set to - * DEFAULT_MODALITY_TYPE - * @exception java.lang.IllegalArgumentException if the owner's - * GraphicsConfiguration is not from a screen device + * windows when shown. If {@code false}, the dialog is {@code MODELESS}; + * if {@code true}, the modality type property is set to + * {@code DEFAULT_MODALITY_TYPE} + * @exception java.lang.IllegalArgumentException if the {@code owner}'s + * {@code GraphicsConfiguration} is not from a screen device * @exception HeadlessException when - * GraphicsEnvironment.isHeadless() returns true + * {@code GraphicsEnvironment.isHeadless()} returns {@code true} * * @see java.awt.Dialog.ModalityType * @see java.awt.Dialog.ModalityType#MODELESS @@ -358,17 +358,17 @@ } /** - * Constructs an initially invisible, modeless Dialog with - * the specified owner Frame and title. + * Constructs an initially invisible, modeless {@code Dialog} with + * the specified owner {@code Frame} and title. * - * @param owner the owner of the dialog or null if + * @param owner the owner of the dialog or {@code null} if * this dialog has no owner - * @param title the title of the dialog or null if this dialog + * @param title the title of the dialog or {@code null} if this dialog * has no title - * @exception IllegalArgumentException if the owner's - * GraphicsConfiguration is not from a screen device + * @exception IllegalArgumentException if the {@code owner}'s + * {@code GraphicsConfiguration} is not from a screen device * @exception HeadlessException when - * GraphicsEnvironment.isHeadless() returns true + * {@code GraphicsEnvironment.isHeadless()} returns {@code true} * * @see java.awt.GraphicsEnvironment#isHeadless * @see Component#setSize @@ -379,21 +379,21 @@ } /** - * Constructs an initially invisible Dialog with the - * specified owner Frame, title and modality. + * Constructs an initially invisible {@code Dialog} with the + * specified owner {@code Frame}, title and modality. * - * @param owner the owner of the dialog or null if + * @param owner the owner of the dialog or {@code null} if * this dialog has no owner - * @param title the title of the dialog or null if this dialog + * @param title the title of the dialog or {@code null} if this dialog * has no title * @param modal specifies whether dialog blocks user input to other top-level - * windows when shown. If false, the dialog is MODELESS; - * if true, the modality type property is set to - * DEFAULT_MODALITY_TYPE - * @exception java.lang.IllegalArgumentException if the owner's - * GraphicsConfiguration is not from a screen device + * windows when shown. If {@code false}, the dialog is {@code MODELESS}; + * if {@code true}, the modality type property is set to + * {@code DEFAULT_MODALITY_TYPE} + * @exception java.lang.IllegalArgumentException if the {@code owner}'s + * {@code GraphicsConfiguration} is not from a screen device * @exception HeadlessException when - * GraphicsEnvironment.isHeadless() returns true + * {@code GraphicsEnvironment.isHeadless()} returns {@code true} * * @see java.awt.Dialog.ModalityType * @see java.awt.Dialog.ModalityType#MODELESS @@ -409,23 +409,23 @@ } /** - * Constructs an initially invisible Dialog with the specified owner - * Frame, title, modality, and GraphicsConfiguration. - * @param owner the owner of the dialog or null if this dialog + * Constructs an initially invisible {@code Dialog} with the specified owner + * {@code Frame}, title, modality, and {@code GraphicsConfiguration}. + * @param owner the owner of the dialog or {@code null} if this dialog * has no owner - * @param title the title of the dialog or null if this dialog + * @param title the title of the dialog or {@code null} if this dialog * has no title * @param modal specifies whether dialog blocks user input to other top-level - * windows when shown. If false, the dialog is MODELESS; - * if true, the modality type property is set to - * DEFAULT_MODALITY_TYPE - * @param gc the GraphicsConfiguration of the target screen device; - * if null, the default system GraphicsConfiguration + * windows when shown. If {@code false}, the dialog is {@code MODELESS}; + * if {@code true}, the modality type property is set to + * {@code DEFAULT_MODALITY_TYPE} + * @param gc the {@code GraphicsConfiguration} of the target screen device; + * if {@code null}, the default system {@code GraphicsConfiguration} * is assumed - * @exception java.lang.IllegalArgumentException if gc + * @exception java.lang.IllegalArgumentException if {@code gc} * is not from a screen device * @exception HeadlessException when - * GraphicsEnvironment.isHeadless() returns true + * {@code GraphicsEnvironment.isHeadless()} returns {@code true} * * @see java.awt.Dialog.ModalityType * @see java.awt.Dialog.ModalityType#MODELESS @@ -443,15 +443,15 @@ } /** - * Constructs an initially invisible, modeless Dialog with - * the specified owner Dialog and an empty title. + * Constructs an initially invisible, modeless {@code Dialog} with + * the specified owner {@code Dialog} and an empty title. * - * @param owner the owner of the dialog or null if this + * @param owner the owner of the dialog or {@code null} if this * dialog has no owner - * @exception java.lang.IllegalArgumentException if the owner's - * GraphicsConfiguration is not from a screen device + * @exception java.lang.IllegalArgumentException if the {@code owner}'s + * {@code GraphicsConfiguration} is not from a screen device * @exception HeadlessException when - * GraphicsEnvironment.isHeadless() returns true + * {@code GraphicsEnvironment.isHeadless()} returns {@code true} * @see java.awt.GraphicsEnvironment#isHeadless * @since 1.2 */ @@ -460,17 +460,17 @@ } /** - * Constructs an initially invisible, modeless Dialog - * with the specified owner Dialog and title. + * Constructs an initially invisible, modeless {@code Dialog} + * with the specified owner {@code Dialog} and title. * - * @param owner the owner of the dialog or null if this + * @param owner the owner of the dialog or {@code null} if this * has no owner - * @param title the title of the dialog or null if this dialog + * @param title the title of the dialog or {@code null} if this dialog * has no title - * @exception java.lang.IllegalArgumentException if the owner's - * GraphicsConfiguration is not from a screen device + * @exception java.lang.IllegalArgumentException if the {@code owner}'s + * {@code GraphicsConfiguration} is not from a screen device * @exception HeadlessException when - * GraphicsEnvironment.isHeadless() returns true + * {@code GraphicsEnvironment.isHeadless()} returns {@code true} * * @see java.awt.GraphicsEnvironment#isHeadless * @since 1.2 @@ -480,21 +480,21 @@ } /** - * Constructs an initially invisible Dialog with the - * specified owner Dialog, title, and modality. + * Constructs an initially invisible {@code Dialog} with the + * specified owner {@code Dialog}, title, and modality. * - * @param owner the owner of the dialog or null if this + * @param owner the owner of the dialog or {@code null} if this * dialog has no owner - * @param title the title of the dialog or null if this + * @param title the title of the dialog or {@code null} if this * dialog has no title * @param modal specifies whether dialog blocks user input to other top-level - * windows when shown. If false, the dialog is MODELESS; - * if true, the modality type property is set to - * DEFAULT_MODALITY_TYPE - * @exception IllegalArgumentException if the owner's - * GraphicsConfiguration is not from a screen device + * windows when shown. If {@code false}, the dialog is {@code MODELESS}; + * if {@code true}, the modality type property is set to + * {@code DEFAULT_MODALITY_TYPE} + * @exception IllegalArgumentException if the {@code owner}'s + * {@code GraphicsConfiguration} is not from a screen device * @exception HeadlessException when - * GraphicsEnvironment.isHeadless() returns true + * {@code GraphicsEnvironment.isHeadless()} returns {@code true} * * @see java.awt.Dialog.ModalityType * @see java.awt.Dialog.ModalityType#MODELESS @@ -510,25 +510,25 @@ } /** - * Constructs an initially invisible Dialog with the - * specified owner Dialog, title, modality and - * GraphicsConfiguration. + * Constructs an initially invisible {@code Dialog} with the + * specified owner {@code Dialog}, title, modality and + * {@code GraphicsConfiguration}. * - * @param owner the owner of the dialog or null if this + * @param owner the owner of the dialog or {@code null} if this * dialog has no owner - * @param title the title of the dialog or null if this + * @param title the title of the dialog or {@code null} if this * dialog has no title * @param modal specifies whether dialog blocks user input to other top-level - * windows when shown. If false, the dialog is MODELESS; - * if true, the modality type property is set to - * DEFAULT_MODALITY_TYPE - * @param gc the GraphicsConfiguration of the target screen device; - * if null, the default system GraphicsConfiguration + * windows when shown. If {@code false}, the dialog is {@code MODELESS}; + * if {@code true}, the modality type property is set to + * {@code DEFAULT_MODALITY_TYPE} + * @param gc the {@code GraphicsConfiguration} of the target screen device; + * if {@code null}, the default system {@code GraphicsConfiguration} * is assumed - * @exception java.lang.IllegalArgumentException if gc + * @exception java.lang.IllegalArgumentException if {@code gc} * is not from a screen device * @exception HeadlessException when - * GraphicsEnvironment.isHeadless() returns true + * {@code GraphicsEnvironment.isHeadless()} returns {@code true} * * @see java.awt.Dialog.ModalityType * @see java.awt.Dialog.ModalityType#MODELESS @@ -547,20 +547,20 @@ } /** - * Constructs an initially invisible, modeless Dialog with the - * specified owner Window and an empty title. + * Constructs an initially invisible, modeless {@code Dialog} with the + * specified owner {@code Window} and an empty title. * * @param owner the owner of the dialog. The owner must be an instance of * {@link java.awt.Dialog Dialog}, {@link java.awt.Frame Frame}, any - * of their descendants or null + * of their descendants or {@code null} * - * @exception java.lang.IllegalArgumentException if the owner + * @exception java.lang.IllegalArgumentException if the {@code owner} * is not an instance of {@link java.awt.Dialog Dialog} or {@link * java.awt.Frame Frame} - * @exception java.lang.IllegalArgumentException if the owner's - * GraphicsConfiguration is not from a screen device + * @exception java.lang.IllegalArgumentException if the {@code owner}'s + * {@code GraphicsConfiguration} is not from a screen device * @exception HeadlessException when - * GraphicsEnvironment.isHeadless() returns true + * {@code GraphicsEnvironment.isHeadless()} returns {@code true} * * @see java.awt.GraphicsEnvironment#isHeadless * @@ -571,22 +571,22 @@ } /** - * Constructs an initially invisible, modeless Dialog with - * the specified owner Window and title. + * Constructs an initially invisible, modeless {@code Dialog} with + * the specified owner {@code Window} and title. * * @param owner the owner of the dialog. The owner must be an instance of * {@link java.awt.Dialog Dialog}, {@link java.awt.Frame Frame}, any - * of their descendants or null - * @param title the title of the dialog or null if this dialog + * of their descendants or {@code null} + * @param title the title of the dialog or {@code null} if this dialog * has no title * - * @exception java.lang.IllegalArgumentException if the owner + * @exception java.lang.IllegalArgumentException if the {@code owner} * is not an instance of {@link java.awt.Dialog Dialog} or {@link * java.awt.Frame Frame} - * @exception java.lang.IllegalArgumentException if the owner's - * GraphicsConfiguration is not from a screen device + * @exception java.lang.IllegalArgumentException if the {@code owner}'s + * {@code GraphicsConfiguration} is not from a screen device * @exception HeadlessException when - * GraphicsEnvironment.isHeadless() returns true + * {@code GraphicsEnvironment.isHeadless()} returns {@code true} * * @see java.awt.GraphicsEnvironment#isHeadless * @@ -597,25 +597,25 @@ } /** - * Constructs an initially invisible Dialog with the - * specified owner Window and modality and an empty title. + * Constructs an initially invisible {@code Dialog} with the + * specified owner {@code Window} and modality and an empty title. * * @param owner the owner of the dialog. The owner must be an instance of * {@link java.awt.Dialog Dialog}, {@link java.awt.Frame Frame}, any - * of their descendants or null + * of their descendants or {@code null} * @param modalityType specifies whether dialog blocks input to other - * windows when shown. null value and unsupported modality - * types are equivalent to MODELESS + * windows when shown. {@code null} value and unsupported modality + * types are equivalent to {@code MODELESS} * - * @exception java.lang.IllegalArgumentException if the owner + * @exception java.lang.IllegalArgumentException if the {@code owner} * is not an instance of {@link java.awt.Dialog Dialog} or {@link * java.awt.Frame Frame} - * @exception java.lang.IllegalArgumentException if the owner's - * GraphicsConfiguration is not from a screen device + * @exception java.lang.IllegalArgumentException if the {@code owner}'s + * {@code GraphicsConfiguration} is not from a screen device * @exception HeadlessException when - * GraphicsEnvironment.isHeadless() returns true + * {@code GraphicsEnvironment.isHeadless()} returns {@code true} * @exception SecurityException if the calling thread does not have permission - * to create modal dialogs with the given modalityType + * to create modal dialogs with the given {@code modalityType} * * @see java.awt.Dialog.ModalityType * @see java.awt.Dialog#setModal @@ -630,27 +630,27 @@ } /** - * Constructs an initially invisible Dialog with the - * specified owner Window, title and modality. + * Constructs an initially invisible {@code Dialog} with the + * specified owner {@code Window}, title and modality. * * @param owner the owner of the dialog. The owner must be an instance of * {@link java.awt.Dialog Dialog}, {@link java.awt.Frame Frame}, any - * of their descendants or null - * @param title the title of the dialog or null if this dialog + * of their descendants or {@code null} + * @param title the title of the dialog or {@code null} if this dialog * has no title * @param modalityType specifies whether dialog blocks input to other - * windows when shown. null value and unsupported modality - * types are equivalent to MODELESS + * windows when shown. {@code null} value and unsupported modality + * types are equivalent to {@code MODELESS} * - * @exception java.lang.IllegalArgumentException if the owner + * @exception java.lang.IllegalArgumentException if the {@code owner} * is not an instance of {@link java.awt.Dialog Dialog} or {@link * java.awt.Frame Frame} - * @exception java.lang.IllegalArgumentException if the owner's - * GraphicsConfiguration is not from a screen device + * @exception java.lang.IllegalArgumentException if the {@code owner}'s + * {@code GraphicsConfiguration} is not from a screen device * @exception HeadlessException when - * GraphicsEnvironment.isHeadless() returns true + * {@code GraphicsEnvironment.isHeadless()} returns {@code true} * @exception SecurityException if the calling thread does not have permission - * to create modal dialogs with the given modalityType + * to create modal dialogs with the given {@code modalityType} * * @see java.awt.Dialog.ModalityType * @see java.awt.Dialog#setModal @@ -677,31 +677,31 @@ } /** - * Constructs an initially invisible Dialog with the - * specified owner Window, title, modality and - * GraphicsConfiguration. + * Constructs an initially invisible {@code Dialog} with the + * specified owner {@code Window}, title, modality and + * {@code GraphicsConfiguration}. * * @param owner the owner of the dialog. The owner must be an instance of * {@link java.awt.Dialog Dialog}, {@link java.awt.Frame Frame}, any - * of their descendants or null - * @param title the title of the dialog or null if this dialog + * of their descendants or {@code null} + * @param title the title of the dialog or {@code null} if this dialog * has no title * @param modalityType specifies whether dialog blocks input to other - * windows when shown. null value and unsupported modality - * types are equivalent to MODELESS - * @param gc the GraphicsConfiguration of the target screen device; - * if null, the default system GraphicsConfiguration + * windows when shown. {@code null} value and unsupported modality + * types are equivalent to {@code MODELESS} + * @param gc the {@code GraphicsConfiguration} of the target screen device; + * if {@code null}, the default system {@code GraphicsConfiguration} * is assumed * - * @exception java.lang.IllegalArgumentException if the owner + * @exception java.lang.IllegalArgumentException if the {@code owner} * is not an instance of {@link java.awt.Dialog Dialog} or {@link * java.awt.Frame Frame} - * @exception java.lang.IllegalArgumentException if gc + * @exception java.lang.IllegalArgumentException if {@code gc} * is not from a screen device * @exception HeadlessException when - * GraphicsEnvironment.isHeadless() returns true + * {@code GraphicsEnvironment.isHeadless()} returns {@code true} * @exception SecurityException if the calling thread does not have permission - * to create modal dialogs with the given modalityType + * to create modal dialogs with the given {@code modalityType} * * @see java.awt.Dialog.ModalityType * @see java.awt.Dialog#setModal @@ -766,8 +766,8 @@ * This method is obsolete and is kept for backwards compatibility only. * Use {@link #getModalityType getModalityType()} instead. * - * @return true if this dialog window is modal; - * false otherwise + * @return {@code true} if this dialog window is modal; + * {@code false} otherwise * * @see java.awt.Dialog#DEFAULT_MODALITY_TYPE * @see java.awt.Dialog.ModalityType#MODELESS @@ -792,10 +792,10 @@ * until it is hidden and then shown again. * * @param modal specifies whether dialog blocks input to other windows - * when shown; calling to setModal(true) is equivalent to - * setModalityType(Dialog.DEFAULT_MODALITY_TYPE), and - * calling to setModal(false) is equivalent to - * setModalityType(Dialog.ModalityType.MODELESS) + * when shown; calling to {@code setModal(true)} is equivalent to + * {@code setModalityType(Dialog.DEFAULT_MODALITY_TYPE)}, and + * calling to {@code setModal(false)} is equivalent to + * {@code setModalityType(Dialog.ModalityType.MODELESS)} * * @see java.awt.Dialog#DEFAULT_MODALITY_TYPE * @see java.awt.Dialog.ModalityType#MODELESS @@ -827,18 +827,18 @@ * Sets the modality type for this dialog. See {@link * java.awt.Dialog.ModalityType ModalityType} for possible modality types. *

- * If the given modality type is not supported, MODELESS - * is used. You may want to call getModalityType() after calling + * If the given modality type is not supported, {@code MODELESS} + * is used. You may want to call {@code getModalityType()} after calling * this method to ensure that the modality type has been set. *

* Note: changing modality of the visible dialog may have no effect * until it is hidden and then shown again. * * @param type specifies whether dialog blocks input to other - * windows when shown. null value and unsupported modality - * types are equivalent to MODELESS + * windows when shown. {@code null} value and unsupported modality + * types are equivalent to {@code MODELESS} * @exception SecurityException if the calling thread does not have permission - * to create modal dialogs with the given modalityType + * to create modal dialogs with the given {@code modalityType} * * @see java.awt.Dialog#getModalityType * @see java.awt.Toolkit#isModalityTypeSupported @@ -866,7 +866,7 @@ * Gets the title of the dialog. The title is displayed in the * dialog's border. * @return the title of this dialog window. The title may be - * null. + * {@code null}. * @see java.awt.Dialog#setTitle */ public String getTitle() { @@ -1193,8 +1193,8 @@ /** * Indicates whether this dialog is resizable by the user. * By default, all dialogs are initially resizable. - * @return true if the user can resize the dialog; - * false otherwise. + * @return {@code true} if the user can resize the dialog; + * {@code false} otherwise. * @see java.awt.Dialog#setResizable */ public boolean isResizable() { @@ -1203,8 +1203,8 @@ /** * Sets whether this dialog is resizable by the user. - * @param resizable true if the user can - * resize this dialog; false otherwise. + * @param resizable {@code true} if the user can + * resize this dialog; {@code false} otherwise. * @see java.awt.Dialog#isResizable */ public void setResizable(boolean resizable) { @@ -1283,8 +1283,8 @@ /** * Indicates whether this dialog is undecorated. * By default, all dialogs are initially decorated. - * @return true if dialog is undecorated; - * false otherwise. + * @return {@code true} if dialog is undecorated; + * {@code false} otherwise. * @see java.awt.Dialog#setUndecorated * @since 1.4 */ @@ -1336,7 +1336,7 @@ * method is intended to be used only for debugging purposes, and the * content and format of the returned string may vary between * implementations. The returned string may be empty but may not be - * null. + * {@code null}. * * @return the parameter string of this dialog window. */ @@ -1647,7 +1647,7 @@ /** * This class implements accessibility support for the - * Dialog class. It provides an implementation of the + * {@code Dialog} class. It provides an implementation of the * Java Accessibility API appropriate to dialog user-interface elements. * @since 1.3 */ --- old/src/java.desktop/share/classes/java/awt/Dimension.java 2015-10-04 22:52:33.381274612 +0400 +++ new/src/java.desktop/share/classes/java/awt/Dimension.java 2015-10-04 22:52:33.193274621 +0400 @@ -29,19 +29,19 @@ import java.beans.Transient; /** - * The Dimension class encapsulates the width and + * The {@code Dimension} class encapsulates the width and * height of a component (in integer precision) in a single object. * The class is * associated with certain properties of components. Several methods - * defined by the Component class and the - * LayoutManager interface return a - * Dimension object. + * defined by the {@code Component} class and the + * {@code LayoutManager} interface return a + * {@code Dimension} object. *

- * Normally the values of width - * and height are non-negative integers. + * Normally the values of {@code width} + * and {@code height} are non-negative integers. * The constructors that allow you to create a dimension do * not prevent you from setting a negative value for these properties. - * If the value of width or height is + * If the value of {@code width} or {@code height} is * negative, the behavior of some methods defined by other objects is * undefined. * @@ -92,7 +92,7 @@ } /** - * Creates an instance of Dimension with a width + * Creates an instance of {@code Dimension} with a width * of zero and a height of zero. */ public Dimension() { @@ -100,19 +100,19 @@ } /** - * Creates an instance of Dimension whose width + * Creates an instance of {@code Dimension} whose width * and height are the same as for the specified dimension. * * @param d the specified dimension for the - * width and - * height values + * {@code width} and + * {@code height} values */ public Dimension(Dimension d) { this(d.width, d.height); } /** - * Constructs a Dimension and initializes + * Constructs a {@code Dimension} and initializes * it to the specified width and specified height. * * @param width the specified width @@ -140,14 +140,14 @@ } /** - * Sets the size of this Dimension object to + * Sets the size of this {@code Dimension} object to * the specified width and height in double precision. - * Note that if width or height - * are larger than Integer.MAX_VALUE, they will - * be reset to Integer.MAX_VALUE. + * Note that if {@code width} or {@code height} + * are larger than {@code Integer.MAX_VALUE}, they will + * be reset to {@code Integer.MAX_VALUE}. * - * @param width the new width for the Dimension object - * @param height the new height for the Dimension object + * @param width the new width for the {@code Dimension} object + * @param height the new height for the {@code Dimension} object * @since 1.2 */ public void setSize(double width, double height) { @@ -156,12 +156,12 @@ } /** - * Gets the size of this Dimension object. + * Gets the size of this {@code Dimension} object. * This method is included for completeness, to parallel the - * getSize method defined by Component. + * {@code getSize} method defined by {@code Component}. * * @return the size of this dimension, a new instance of - * Dimension with the same width and height + * {@code Dimension} with the same width and height * @see java.awt.Dimension#setSize * @see java.awt.Component#getSize * @since 1.1 @@ -172,10 +172,10 @@ } /** - * Sets the size of this Dimension object to the specified size. + * Sets the size of this {@code Dimension} object to the specified size. * This method is included for completeness, to parallel the - * setSize method defined by Component. - * @param d the new size for this Dimension object + * {@code setSize} method defined by {@code Component}. + * @param d the new size for this {@code Dimension} object * @see java.awt.Dimension#getSize * @see java.awt.Component#setSize * @since 1.1 @@ -185,13 +185,13 @@ } /** - * Sets the size of this Dimension object + * Sets the size of this {@code Dimension} object * to the specified width and height. * This method is included for completeness, to parallel the - * setSize method defined by Component. + * {@code setSize} method defined by {@code Component}. * - * @param width the new width for this Dimension object - * @param height the new height for this Dimension object + * @param width the new width for this {@code Dimension} object + * @param height the new height for this {@code Dimension} object * @see java.awt.Dimension#getSize * @see java.awt.Component#setSize * @since 1.1 @@ -213,9 +213,9 @@ } /** - * Returns the hash code for this Dimension. + * Returns the hash code for this {@code Dimension}. * - * @return a hash code for this Dimension + * @return a hash code for this {@code Dimension} */ public int hashCode() { int sum = width + height; @@ -224,13 +224,13 @@ /** * Returns a string representation of the values of this - * Dimension object's height and - * width fields. This method is intended to be used only + * {@code Dimension} object's {@code height} and + * {@code width} fields. This method is intended to be used only * for debugging purposes, and the content and format of the returned * string may vary between implementations. The returned string may be - * empty but may not be null. + * empty but may not be {@code null}. * - * @return a string representation of this Dimension + * @return a string representation of this {@code Dimension} * object */ public String toString() { --- old/src/java.desktop/share/classes/java/awt/DisplayMode.java 2015-10-04 22:52:33.921274588 +0400 +++ new/src/java.desktop/share/classes/java/awt/DisplayMode.java 2015-10-04 22:52:33.717274597 +0400 @@ -28,8 +28,8 @@ import java.lang.annotation.Native; /** - * The DisplayMode class encapsulates the bit depth, height, - * width, and refresh rate of a GraphicsDevice. The ability to + * The {@code DisplayMode} class encapsulates the bit depth, height, + * width, and refresh rate of a {@code GraphicsDevice}. The ability to * change graphics device's display mode is platform- and * configuration-dependent and may not always be available * (see {@link GraphicsDevice#isDisplayChangeSupported}). @@ -57,10 +57,10 @@ * @param width the width of the display, in pixels * @param height the height of the display, in pixels * @param bitDepth the bit depth of the display, in bits per - * pixel. This can be BIT_DEPTH_MULTI if multiple + * pixel. This can be {@code BIT_DEPTH_MULTI} if multiple * bit depths are available. * @param refreshRate the refresh rate of the display, in hertz. - * This can be REFRESH_RATE_UNKNOWN if the + * This can be {@code REFRESH_RATE_UNKNOWN} if the * information is not available. * @see #BIT_DEPTH_MULTI * @see #REFRESH_RATE_UNKNOWN @@ -96,7 +96,7 @@ /** * Returns the bit depth of the display, in bits per pixel. This may be - * BIT_DEPTH_MULTI if multiple bit depths are supported in + * {@code BIT_DEPTH_MULTI} if multiple bit depths are supported in * this display mode. * * @return the bit depth of the display, in bits per pixel. @@ -114,7 +114,7 @@ /** * Returns the refresh rate of the display, in hertz. This may be - * REFRESH_RATE_UNKNOWN if the information is not available. + * {@code REFRESH_RATE_UNKNOWN} if the information is not available. * * @return the refresh rate of the display, in hertz. * @see #REFRESH_RATE_UNKNOWN --- old/src/java.desktop/share/classes/java/awt/Event.java 2015-10-04 22:52:34.445274564 +0400 +++ new/src/java.desktop/share/classes/java/awt/Event.java 2015-10-04 22:52:34.253274573 +0400 @@ -28,14 +28,14 @@ import java.io.*; /** - * NOTE: The Event class is obsolete and is + * NOTE: The {@code Event} class is obsolete and is * available only for backwards compatibility. It has been replaced - * by the AWTEvent class and its subclasses. + * by the {@code AWTEvent} class and its subclasses. *

- * Event is a platform-independent class that + * {@code Event} is a platform-independent class that * encapsulates events from the platform's Graphical User * Interface in the Java 1.0 event model. In Java 1.1 - * and later versions, the Event class is maintained + * and later versions, the {@code Event} class is maintained * only for backwards compatibility. The information in this * class description is provided to assist programmers in * converting Java 1.0 programs to the new event model. @@ -43,18 +43,18 @@ * In the Java 1.0 event model, an event contains an * {@link Event#id} field * that indicates what type of event it is and which other - * Event variables are relevant for the event. + * {@code Event} variables are relevant for the event. *

* For keyboard events, {@link Event#key} * contains a value indicating which key was activated, and * {@link Event#modifiers} contains the * modifiers for that event. For the KEY_PRESS and KEY_RELEASE - * event ids, the value of key is the unicode + * event ids, the value of {@code key} is the unicode * character code for the key. For KEY_ACTION and - * KEY_ACTION_RELEASE, the value of key is + * KEY_ACTION_RELEASE, the value of {@code key} is * one of the defined action-key identifiers in the - * Event class (PGUP, - * PGDN, F1, F2, etc). + * {@code Event} class ({@code PGUP}, + * {@code PGDN}, {@code F1}, {@code F2}, etc). * * @author Sami Shaio * @since 1.0 @@ -293,7 +293,7 @@ /** * The user has pressed a non-ASCII action key. - * The key field contains a value that indicates + * The {@code key} field contains a value that indicates * that the event occurred on one of the action keys, which * comprise the 12 function keys, the arrow (cursor) keys, * Page Up, Page Down, Home, End, Print Screen, Scroll Lock, @@ -303,7 +303,7 @@ /** * The user has released a non-ASCII action key. - * The key field contains a value that indicates + * The {@code key} field contains a value that indicates * that the event occurred on one of the action keys, which * comprise the 12 function keys, the arrow (cursor) keys, * Page Up, Page Down, Home, End, Print Screen, Scroll Lock, @@ -315,9 +315,9 @@ private static final int MOUSE_EVENT = 500; /** - * The user has pressed the mouse button. The ALT_MASK + * The user has pressed the mouse button. The {@code ALT_MASK} * flag indicates that the middle button has been pressed. - * The META_MASKflag indicates that the + * The {@code META_MASK} flag indicates that the * right button has been pressed. * @see java.awt.Event#ALT_MASK * @see java.awt.Event#META_MASK @@ -325,9 +325,9 @@ public static final int MOUSE_DOWN = 1 + MOUSE_EVENT; /** - * The user has released the mouse button. The ALT_MASK + * The user has released the mouse button. The {@code ALT_MASK} * flag indicates that the middle button has been released. - * The META_MASKflag indicates that the + * The {@code META_MASK} flag indicates that the * right button has been released. * @see java.awt.Event#ALT_MASK * @see java.awt.Event#META_MASK @@ -351,8 +351,8 @@ /** * The user has moved the mouse with a button pressed. The - * ALT_MASK flag indicates that the middle - * button is being pressed. The META_MASK flag indicates + * {@code ALT_MASK} flag indicates that the middle + * button is being pressed. The {@code META_MASK} flag indicates * that the right button is being pressed. * @see java.awt.Event#ALT_MASK * @see java.awt.Event#META_MASK @@ -466,7 +466,7 @@ /** * Indicates which type of event the event is, and which - * other Event variables are relevant for the event. + * other {@code Event} variables are relevant for the event. * This has been replaced by AWTEvent.getID() * * @serial @@ -518,9 +518,9 @@ public int modifiers; /** - * For MOUSE_DOWN events, this field indicates the + * For {@code MOUSE_DOWN} events, this field indicates the * number of consecutive clicks. For other events, its value is - * 0. + * {@code 0}. * This field has been replaced by MouseEvent.getClickCount(). * * @serial @@ -531,7 +531,7 @@ /** * An arbitrary argument of the event. The value of this field * depends on the type of event. - * arg has been replaced by event specific property. + * {@code arg} has been replaced by event specific property. * * @serial */ @@ -608,11 +608,11 @@ private static native void initIDs(); /** - * NOTE: The Event class is obsolete and is + * NOTE: The {@code Event} class is obsolete and is * available only for backwards compatibility. It has been replaced - * by the AWTEvent class and its subclasses. + * by the {@code AWTEvent} class and its subclasses. *

- * Creates an instance of Event with the specified target + * Creates an instance of {@code Event} with the specified target * component, time stamp, event type, x and y * coordinates, keyboard key, state of the modifier keys, and * argument. @@ -659,14 +659,14 @@ } /** - * NOTE: The Event class is obsolete and is + * NOTE: The {@code Event} class is obsolete and is * available only for backwards compatibility. It has been replaced - * by the AWTEvent class and its subclasses. + * by the {@code AWTEvent} class and its subclasses. *

- * Creates an instance of Event, with the specified target + * Creates an instance of {@code Event}, with the specified target * component, time stamp, event type, x and y * coordinates, keyboard key, state of the modifier keys, and an - * argument set to null. + * argument set to {@code null}. * @param target the target component. * @param when the time stamp. * @param id the event type. @@ -680,11 +680,11 @@ } /** - * NOTE: The Event class is obsolete and is + * NOTE: The {@code Event} class is obsolete and is * available only for backwards compatibility. It has been replaced - * by the AWTEvent class and its subclasses. + * by the {@code AWTEvent} class and its subclasses. *

- * Creates an instance of Event with the specified + * Creates an instance of {@code Event} with the specified * target component, event type, and argument. * @param target the target component. * @param id the event type. @@ -695,9 +695,9 @@ } /** - * NOTE: The Event class is obsolete and is + * NOTE: The {@code Event} class is obsolete and is * available only for backwards compatibility. It has been replaced - * by the AWTEvent class and its subclasses. + * by the {@code AWTEvent} class and its subclasses. *

* Translates this event so that its x and y * coordinates are increased by dx and dy, @@ -716,13 +716,13 @@ } /** - * NOTE: The Event class is obsolete and is + * NOTE: The {@code Event} class is obsolete and is * available only for backwards compatibility. It has been replaced - * by the AWTEvent class and its subclasses. + * by the {@code AWTEvent} class and its subclasses. *

* Checks if the Shift key is down. - * @return true if the key is down; - * false otherwise. + * @return {@code true} if the key is down; + * {@code false} otherwise. * @see java.awt.Event#modifiers * @see java.awt.Event#controlDown * @see java.awt.Event#metaDown @@ -732,13 +732,13 @@ } /** - * NOTE: The Event class is obsolete and is + * NOTE: The {@code Event} class is obsolete and is * available only for backwards compatibility. It has been replaced - * by the AWTEvent class and its subclasses. + * by the {@code AWTEvent} class and its subclasses. *

* Checks if the Control key is down. - * @return true if the key is down; - * false otherwise. + * @return {@code true} if the key is down; + * {@code false} otherwise. * @see java.awt.Event#modifiers * @see java.awt.Event#shiftDown * @see java.awt.Event#metaDown @@ -748,14 +748,14 @@ } /** - * NOTE: The Event class is obsolete and is + * NOTE: The {@code Event} class is obsolete and is * available only for backwards compatibility. It has been replaced - * by the AWTEvent class and its subclasses. + * by the {@code AWTEvent} class and its subclasses. *

* Checks if the Meta key is down. * - * @return true if the key is down; - * false otherwise. + * @return {@code true} if the key is down; + * {@code false} otherwise. * @see java.awt.Event#modifiers * @see java.awt.Event#shiftDown * @see java.awt.Event#controlDown @@ -765,9 +765,9 @@ } /** - * NOTE: The Event class is obsolete and is + * NOTE: The {@code Event} class is obsolete and is * available only for backwards compatibility. It has been replaced - * by the AWTEvent class and its subclasses. + * by the {@code AWTEvent} class and its subclasses. */ void consume() { switch(id) { @@ -783,18 +783,18 @@ } /** - * NOTE: The Event class is obsolete and is + * NOTE: The {@code Event} class is obsolete and is * available only for backwards compatibility. It has been replaced - * by the AWTEvent class and its subclasses. + * by the {@code AWTEvent} class and its subclasses. */ boolean isConsumed() { return consumed; } /* - * NOTE: The Event class is obsolete and is + * NOTE: The {@code Event} class is obsolete and is * available only for backwards compatibility. It has been replaced - * by the AWTEvent class and its subclasses. + * by the {@code AWTEvent} class and its subclasses. *

* Returns the integer key-code associated with the key in this event, * as described in java.awt.Event. @@ -810,9 +810,9 @@ } /* - * NOTE: The Event class is obsolete and is + * NOTE: The {@code Event} class is obsolete and is * available only for backwards compatibility. It has been replaced - * by the AWTEvent class and its subclasses. + * by the {@code AWTEvent} class and its subclasses. *

* Returns a new KeyEvent char which corresponds to the int key * of this old event. @@ -827,15 +827,15 @@ } /** - * NOTE: The Event class is obsolete and is + * NOTE: The {@code Event} class is obsolete and is * available only for backwards compatibility. It has been replaced - * by the AWTEvent class and its subclasses. + * by the {@code AWTEvent} class and its subclasses. *

- * Returns a string representing the state of this Event. + * Returns a string representing the state of this {@code Event}. * This method is intended to be used only for debugging purposes, and the * content and format of the returned string may vary between * implementations. The returned string may be empty but may not be - * null. + * {@code null}. * * @return the parameter string of this event */ @@ -863,9 +863,9 @@ } /** - * NOTE: The Event class is obsolete and is + * NOTE: The {@code Event} class is obsolete and is * available only for backwards compatibility. It has been replaced - * by the AWTEvent class and its subclasses. + * by the {@code AWTEvent} class and its subclasses. *

* Returns a representation of this event's values as a string. * @return a string that represents the event and the values --- old/src/java.desktop/share/classes/java/awt/EventFilter.java 2015-10-04 22:52:34.981274540 +0400 +++ new/src/java.desktop/share/classes/java/awt/EventFilter.java 2015-10-04 22:52:34.793274549 +0400 @@ -27,27 +27,27 @@ interface EventFilter { /** - * Enumeration for possible values for acceptEvent(AWTEvent ev) method. + * Enumeration for possible values for {@code acceptEvent(AWTEvent ev)} method. * @see EventDispatchThread#pumpEventsForFilter */ static enum FilterAction { /** * ACCEPT means that this filter do not filter the event and allows other * active filters to proceed it. If all the active filters accept the event, it - * is dispatched by the EventDispatchThread + * is dispatched by the {@code EventDispatchThread} * @see EventDispatchThread#pumpEventsForFilter */ ACCEPT, /** * REJECT means that this filter filter the event. No other filters are queried, - * and the event is not dispatched by the EventDispatchedThread + * and the event is not dispatched by the {@code EventDispatchedThread} * @see EventDispatchThread#pumpEventsForFilter */ REJECT, /** * ACCEPT_IMMEDIATELY means that this filter do not filter the event, no other * filters are queried and to proceed it, and it is dispatched by the - * EventDispatchThread + * {@code EventDispatchThread} * It is not recommended to use ACCEPT_IMMEDIATELY as there may be some active * filters not queried yet that do not accept this event. It is primarily used * by modal filters. --- old/src/java.desktop/share/classes/java/awt/EventQueue.java 2015-10-04 22:52:35.513274516 +0400 +++ new/src/java.desktop/share/classes/java/awt/EventQueue.java 2015-10-04 22:52:35.313274525 +0400 @@ -51,36 +51,36 @@ import jdk.internal.misc.JavaSecurityAccess; /** - * EventQueue is a platform-independent class + * {@code EventQueue} is a platform-independent class * that queues events, both from the underlying peer classes * and from trusted application classes. *

* It encapsulates asynchronous event dispatch machinery which * extracts events from the queue and dispatches them by calling * {@link #dispatchEvent(AWTEvent) dispatchEvent(AWTEvent)} method - * on this EventQueue with the event to be dispatched + * on this {@code EventQueue} with the event to be dispatched * as an argument. The particular behavior of this machinery is * implementation-dependent. The only requirements are that events * which were actually enqueued to this queue (note that events - * being posted to the EventQueue can be coalesced) + * being posted to the {@code EventQueue} can be coalesced) * are dispatched: *

*
Sequentially. *
That is, it is not permitted that several events from * this queue are dispatched simultaneously. *
In the same order as they are enqueued. - *
That is, if AWTEvent A is enqueued - * to the EventQueue before - * AWTEvent B then event B will not be + *
That is, if {@code AWTEvent} A is enqueued + * to the {@code EventQueue} before + * {@code AWTEvent} B then event B will not be * dispatched before event A. *
*

* Some browsers partition applets in different code bases into * separate contexts, and establish walls between these contexts. - * In such a scenario, there will be one EventQueue + * In such a scenario, there will be one {@code EventQueue} * per context. Other browsers place all applets into the same * context, implying that there will be only a single, global - * EventQueue for all applets. This behavior is + * {@code EventQueue} for all applets. This behavior is * implementation-dependent. Consult your browser's documentation * for more information. *

@@ -251,14 +251,14 @@ } /** - * Posts a 1.1-style event to the EventQueue. + * Posts a 1.1-style event to the {@code EventQueue}. * If there is an existing event on the queue with the same ID - * and event source, the source Component's - * coalesceEvents method will be called. + * and event source, the source {@code Component}'s + * {@code coalesceEvents} method will be called. * - * @param theEvent an instance of java.awt.AWTEvent, + * @param theEvent an instance of {@code java.awt.AWTEvent}, * or a subclass of it - * @throws NullPointerException if theEvent is null + * @throws NullPointerException if {@code theEvent} is {@code null} */ public void postEvent(AWTEvent theEvent) { SunToolkit.flushPendingEvents(appContext); @@ -266,12 +266,12 @@ } /** - * Posts a 1.1-style event to the EventQueue. + * Posts a 1.1-style event to the {@code EventQueue}. * If there is an existing event on the queue with the same ID - * and event source, the source Component's - * coalesceEvents method will be called. + * and event source, the source {@code Component}'s + * {@code coalesceEvents} method will be called. * - * @param theEvent an instance of java.awt.AWTEvent, + * @param theEvent an instance of {@code java.awt.AWTEvent}, * or a subclass of it */ private final void postEventPrivate(AWTEvent theEvent) { @@ -320,7 +320,7 @@ * Posts the event to the internal Queue of specified priority, * coalescing as appropriate. * - * @param theEvent an instance of java.awt.AWTEvent, + * @param theEvent an instance of {@code java.awt.AWTEvent}, * or a subclass of it * @param priority the desired priority of the event */ @@ -532,10 +532,10 @@ } /** - * Removes an event from the EventQueue and + * Removes an event from the {@code EventQueue} and * returns it. This method will block until an event has * been posted by another thread. - * @return the next AWTEvent + * @return the next {@code AWTEvent} * @exception InterruptedException * if any thread has interrupted this thread */ @@ -617,7 +617,7 @@ } /** - * Returns the first event on the EventQueue + * Returns the first event on the {@code EventQueue} * without removing it. * @return the first event */ @@ -639,7 +639,7 @@ /** * Returns the first event with the specified id, if any. * @param id the id of the type of event desired - * @return the first event of the specified id or null + * @return the first event of the specified id or {@code null} * if there is no such event */ public AWTEvent peekEvent(int id) { @@ -696,9 +696,9 @@ * * * - * @param event an instance of java.awt.AWTEvent, + * @param event an instance of {@code java.awt.AWTEvent}, * or a subclass of it - * @throws NullPointerException if event is null + * @throws NullPointerException if {@code event} is {@code null} * @since 1.2 */ protected void dispatchEvent(final AWTEvent event) { @@ -777,23 +777,23 @@ /** * Returns the timestamp of the most recent event that had a timestamp, and - * that was dispatched from the EventQueue associated with the + * that was dispatched from the {@code EventQueue} associated with the * calling thread. If an event with a timestamp is currently being * dispatched, its timestamp will be returned. If no events have yet * been dispatched, the EventQueue's initialization time will be * returned instead.In the current version of - * the JDK, only InputEvents, - * ActionEvents, and InvocationEvents have + * the JDK, only {@code InputEvent}s, + * {@code ActionEvent}s, and {@code InvocationEvent}s have * timestamps; however, future versions of the JDK may add timestamps to * additional event types. Note that this method should only be invoked * from an application's {@link #isDispatchThread event dispatching thread}. * If this method is * invoked from another thread, the current system time (as reported by - * System.currentTimeMillis()) will be returned instead. + * {@code System.currentTimeMillis()}) will be returned instead. * - * @return the timestamp of the last InputEvent, - * ActionEvent, or InvocationEvent to be - * dispatched, or System.currentTimeMillis() if this + * @return the timestamp of the last {@code InputEvent}, + * {@code ActionEvent}, or {@code InvocationEvent} to be + * dispatched, or {@code System.currentTimeMillis()} if this * method is invoked on a thread other than an event dispatching * thread * @see java.awt.event.InputEvent#getWhen @@ -831,7 +831,7 @@ /** * Returns the event currently being dispatched by the - * EventQueue associated with the calling thread. This is + * {@code EventQueue} associated with the calling thread. This is * useful if a method needs access to the event, but was not designed to * receive a reference to it as an argument. Note that this method should * only be invoked from an application's event dispatching thread. If this @@ -856,14 +856,14 @@ } /** - * Replaces the existing EventQueue with the specified one. - * Any pending events are transferred to the new EventQueue + * Replaces the existing {@code EventQueue} with the specified one. + * Any pending events are transferred to the new {@code EventQueue} * for processing by it. * - * @param newEventQueue an EventQueue + * @param newEventQueue an {@code EventQueue} * (or subclass thereof) instance to be use * @see java.awt.EventQueue#pop - * @throws NullPointerException if newEventQueue is null + * @throws NullPointerException if {@code newEventQueue} is {@code null} * @since 1.2 */ public void push(EventQueue newEventQueue) { @@ -921,15 +921,15 @@ } /** - * Stops dispatching events using this EventQueue. + * Stops dispatching events using this {@code EventQueue}. * Any pending events are transferred to the previous - * EventQueue for processing. + * {@code EventQueue} for processing. *

* Warning: To avoid deadlock, do not declare this method * synchronized in a subclass. * * @exception EmptyStackException if no previous push was made - * on this EventQueue + * on this {@code EventQueue} * @see java.awt.EventQueue#push * @since 1.2 */ @@ -1122,10 +1122,10 @@ } /* - * Gets the EventDispatchThread for this - * EventQueue. + * Gets the {@code EventDispatchThread} for this + * {@code EventQueue}. * @return the event dispatch thread associated with this event queue - * or null if this event queue doesn't have a + * or {@code null} if this event queue doesn't have a * working thread associated with it * @see java.awt.EventQueue#initDispatchThread * @see java.awt.EventQueue#detachDispatchThread @@ -1141,15 +1141,15 @@ /* * Removes any pending events for the specified source object. - * If removeAllEvents parameter is true then all + * If removeAllEvents parameter is {@code true} then all * events for the specified source object are removed, if it - * is false then SequencedEvent, SentEvent, - * FocusEvent, WindowEvent, KeyEvent, - * and InputMethodEvent are kept in the queue, but all other + * is {@code false} then {@code SequencedEvent}, {@code SentEvent}, + * {@code FocusEvent}, {@code WindowEvent}, {@code KeyEvent}, + * and {@code InputMethodEvent} are kept in the queue, but all other * events are removed. * * This method is normally called by the source's - * removeNotify method. + * {@code removeNotify} method. */ final void removeSourceEvents(Object source, boolean removeAllEvents) { SunToolkit.flushPendingEvents(appContext); @@ -1249,12 +1249,12 @@ } /** - * Causes runnable to have its run + * Causes {@code runnable} to have its {@code run} * method called in the {@link #isDispatchThread dispatch thread} of * {@link Toolkit#getSystemEventQueue the system EventQueue}. * This will happen after all pending events are processed. * - * @param runnable the Runnable whose run + * @param runnable the {@code Runnable} whose {@code run} * method should be executed * asynchronously in the * {@link #isDispatchThread event dispatch thread} @@ -1270,7 +1270,7 @@ } /** - * Causes runnable to have its run + * Causes {@code runnable} to have its {@code run} * method called in the {@link #isDispatchThread dispatch thread} of * {@link Toolkit#getSystemEventQueue the system EventQueue}. * This will happen after all pending events are processed. @@ -1278,7 +1278,7 @@ * will throw an Error if called from the * {@link #isDispatchThread event dispatcher thread}. * - * @param runnable the Runnable whose run + * @param runnable the {@code Runnable} whose {@code run} * method should be executed * synchronously in the * {@link #isDispatchThread event dispatch thread} @@ -1286,7 +1286,7 @@ * @exception InterruptedException if any thread has * interrupted this thread * @exception InvocationTargetException if an throwable is thrown - * when running runnable + * when running {@code runnable} * @see #invokeLater * @see Toolkit#getSystemEventQueue * @see #isDispatchThread --- old/src/java.desktop/share/classes/java/awt/FileDialog.java 2015-10-04 22:52:36.057274492 +0400 +++ new/src/java.desktop/share/classes/java/awt/FileDialog.java 2015-10-04 22:52:35.865274501 +0400 @@ -32,11 +32,11 @@ import sun.awt.AWTAccessor; /** - * The FileDialog class displays a dialog window + * The {@code FileDialog} class displays a dialog window * from which the user can select a file. *

* Since it is a modal dialog, when the application calls - * its show method to display the dialog, + * its {@code show} method to display the dialog, * it blocks the rest of the application until the user has * chosen a file. * @@ -61,10 +61,10 @@ public static final int SAVE = 1; /* - * There are two FileDialog modes: LOAD and - * SAVE. + * There are two {@code FileDialog} modes: {@code LOAD} and + * {@code SAVE}. * This integer will represent one or the other. - * If the mode is not specified it will default to LOAD. + * If the mode is not specified it will default to {@code LOAD}. * * @serial * @see getMode() @@ -76,7 +76,7 @@ /* * The string specifying the directory to display - * in the file dialog. This variable may be null. + * in the file dialog. This variable may be {@code null}. * * @serial * @see getDirectory() @@ -87,7 +87,7 @@ /* * The string specifying the initial value of the * filename text field in the file dialog. - * This variable may be null. + * This variable may be {@code null}. * * @serial * @see getFile() @@ -118,7 +118,7 @@ * The filter used as the file dialog's filename filter. * The file dialog will only be displaying files whose * names are accepted by this filter. - * This variable may be null. + * This variable may be {@code null}. * * @serial * @see #getFilenameFilter() @@ -173,7 +173,7 @@ /** * Creates a file dialog for loading a file. The title of the * file dialog is initially empty. This is a convenience method for - * FileDialog(parent, "", LOAD). + * {@code FileDialog(parent, "", LOAD)}. *

* Note: Some platforms may not support * showing the user-specified title in a file dialog. @@ -192,7 +192,7 @@ * Creates a file dialog window with the specified title for loading * a file. The files shown are those in the current directory. * This is a convenience method for - * FileDialog(parent, title, LOAD). + * {@code FileDialog(parent, title, LOAD)}. *

* Note: Some platforms may not support * showing the user-specified title in a file dialog. @@ -211,10 +211,10 @@ * Creates a file dialog window with the specified title for loading * or saving a file. *

- * If the value of mode is LOAD, then the + * If the value of {@code mode} is {@code LOAD}, then the * file dialog is finding a file to read, and the files shown are those * in the current directory. If the value of - * mode is SAVE, the file dialog is finding + * {@code mode} is {@code SAVE}, the file dialog is finding * a place to write a file. *

* Note: Some platforms may not support @@ -226,7 +226,7 @@ * @param parent the owner of the dialog * @param title the title of the dialog * @param mode the mode of the dialog; either - * FileDialog.LOAD or FileDialog.SAVE + * {@code FileDialog.LOAD} or {@code FileDialog.SAVE} * @exception IllegalArgumentException if an illegal file * dialog mode is supplied * @see java.awt.FileDialog#LOAD @@ -241,7 +241,7 @@ /** * Creates a file dialog for loading a file. The title of the * file dialog is initially empty. This is a convenience method for - * FileDialog(parent, "", LOAD). + * {@code FileDialog(parent, "", LOAD)}. *

* Note: Some platforms may not support * showing the user-specified title in a file dialog. @@ -250,13 +250,13 @@ * displayed. * * @param parent the owner of the dialog - * @exception java.lang.IllegalArgumentException if the parent's - * GraphicsConfiguration + * @exception java.lang.IllegalArgumentException if the {@code parent}'s + * {@code GraphicsConfiguration} * is not from a screen device; - * @exception java.lang.IllegalArgumentException if parent - * is null; this exception is always thrown when - * GraphicsEnvironment.isHeadless - * returns true + * @exception java.lang.IllegalArgumentException if {@code parent} + * is {@code null}; this exception is always thrown when + * {@code GraphicsEnvironment.isHeadless} + * returns {@code true} * @see java.awt.GraphicsEnvironment#isHeadless * @since 1.5 */ @@ -268,7 +268,7 @@ * Creates a file dialog window with the specified title for loading * a file. The files shown are those in the current directory. * This is a convenience method for - * FileDialog(parent, title, LOAD). + * {@code FileDialog(parent, title, LOAD)}. *

* Note: Some platforms may not support * showing the user-specified title in a file dialog. @@ -277,16 +277,16 @@ * displayed. * * @param parent the owner of the dialog - * @param title the title of the dialog; a null value + * @param title the title of the dialog; a {@code null} value * will be accepted without causing a - * NullPointerException to be thrown - * @exception java.lang.IllegalArgumentException if the parent's - * GraphicsConfiguration + * {@code NullPointerException} to be thrown + * @exception java.lang.IllegalArgumentException if the {@code parent}'s + * {@code GraphicsConfiguration} * is not from a screen device; - * @exception java.lang.IllegalArgumentException if parent - * is null; this exception is always thrown when - * GraphicsEnvironment.isHeadless - * returns true + * @exception java.lang.IllegalArgumentException if {@code parent} + * is {@code null}; this exception is always thrown when + * {@code GraphicsEnvironment.isHeadless} + * returns {@code true} * @see java.awt.GraphicsEnvironment#isHeadless * @since 1.5 */ @@ -298,10 +298,10 @@ * Creates a file dialog window with the specified title for loading * or saving a file. *

- * If the value of mode is LOAD, then the + * If the value of {@code mode} is {@code LOAD}, then the * file dialog is finding a file to read, and the files shown are those * in the current directory. If the value of - * mode is SAVE, the file dialog is finding + * {@code mode} is {@code SAVE}, the file dialog is finding * a place to write a file. *

* Note: Some platforms may not support @@ -311,20 +311,20 @@ * displayed. * * @param parent the owner of the dialog - * @param title the title of the dialog; a null value + * @param title the title of the dialog; a {@code null} value * will be accepted without causing a - * NullPointerException to be thrown + * {@code NullPointerException} to be thrown * @param mode the mode of the dialog; either - * FileDialog.LOAD or FileDialog.SAVE + * {@code FileDialog.LOAD} or {@code FileDialog.SAVE} * @exception java.lang.IllegalArgumentException if an illegal * file dialog mode is supplied; - * @exception java.lang.IllegalArgumentException if the parent's - * GraphicsConfiguration + * @exception java.lang.IllegalArgumentException if the {@code parent}'s + * {@code GraphicsConfiguration} * is not from a screen device; - * @exception java.lang.IllegalArgumentException if parent - * is null; this exception is always thrown when - * GraphicsEnvironment.isHeadless - * returns true + * @exception java.lang.IllegalArgumentException if {@code parent} + * is {@code null}; this exception is always thrown when + * {@code GraphicsEnvironment.isHeadless} + * returns {@code true} * @see java.awt.GraphicsEnvironment#isHeadless * @see java.awt.FileDialog#LOAD * @see java.awt.FileDialog#SAVE @@ -353,8 +353,8 @@ /** - * Constructs a name for this component. Called by getName() - * when the name is null. + * Constructs a name for this component. Called by {@code getName()} + * when the name is {@code null}. */ String constructComponentName() { synchronized (FileDialog.class) { @@ -382,8 +382,8 @@ * or for saving to a file. * * @return the mode of this file dialog window, either - * FileDialog.LOAD or - * FileDialog.SAVE + * {@code FileDialog.LOAD} or + * {@code FileDialog.SAVE} * @see java.awt.FileDialog#LOAD * @see java.awt.FileDialog#SAVE * @see java.awt.FileDialog#setMode @@ -393,13 +393,13 @@ } /** - * Sets the mode of the file dialog. If mode is not - * a legal value, an exception will be thrown and mode + * Sets the mode of the file dialog. If {@code mode} is not + * a legal value, an exception will be thrown and {@code mode} * will not be set. * * @param mode the mode for this file dialog, either - * FileDialog.LOAD or - * FileDialog.SAVE + * {@code FileDialog.LOAD} or + * {@code FileDialog.SAVE} * @see java.awt.FileDialog#LOAD * @see java.awt.FileDialog#SAVE * @see java.awt.FileDialog#getMode @@ -421,8 +421,8 @@ /** * Gets the directory of this file dialog. * - * @return the (potentially null or invalid) - * directory of this FileDialog + * @return the (potentially {@code null} or invalid) + * directory of this {@code FileDialog} * @see java.awt.FileDialog#setDirectory */ public String getDirectory() { @@ -431,14 +431,14 @@ /** * Sets the directory of this file dialog window to be the - * specified directory. Specifying a null or an + * specified directory. Specifying a {@code null} or an * invalid directory implies an implementation-defined default. * This default will not be realized, however, until the user - * has selected a file. Until this point, getDirectory() + * has selected a file. Until this point, {@code getDirectory()} * will return the value passed into this method. *

* Specifying "" as the directory is exactly equivalent to - * specifying null as the directory. + * specifying {@code null} as the directory. * * @param dir the specified directory * @see java.awt.FileDialog#getDirectory @@ -453,10 +453,10 @@ /** * Gets the selected file of this file dialog. If the user - * selected CANCEL, the returned file is null. + * selected {@code CANCEL}, the returned file is {@code null}. * * @return the currently selected file of this file dialog window, - * or null if none is selected + * or {@code null} if none is selected * @see java.awt.FileDialog#setFile */ public String getFile() { @@ -592,12 +592,12 @@ } /** - * Reads the ObjectInputStream and performs + * Reads the {@code ObjectInputStream} and performs * a backwards compatibility check by converting - * either a dir or a file - * equal to an empty string to null. + * either a {@code dir} or a {@code file} + * equal to an empty string to {@code null}. * - * @param s the ObjectInputStream to read + * @param s the {@code ObjectInputStream} to read */ private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException @@ -614,11 +614,11 @@ } /** - * Returns a string representing the state of this FileDialog + * Returns a string representing the state of this {@code FileDialog} * window. This method is intended to be used only for debugging purposes, * and the content and format of the returned string may vary between * implementations. The returned string may be empty but may not be - * null. + * {@code null}. * * @return the parameter string of this file dialog window */ --- old/src/java.desktop/share/classes/java/awt/FlowLayout.java 2015-10-04 22:52:36.597274468 +0400 +++ new/src/java.desktop/share/classes/java/awt/FlowLayout.java 2015-10-04 22:52:36.409274476 +0400 @@ -30,16 +30,16 @@ /** * A flow layout arranges components in a directional flow, much * like lines of text in a paragraph. The flow direction is - * determined by the container's componentOrientation + * determined by the container's {@code componentOrientation} * property and may be one of two values: *

    - *
  • ComponentOrientation.LEFT_TO_RIGHT - *
  • ComponentOrientation.RIGHT_TO_LEFT + *
  • {@code ComponentOrientation.LEFT_TO_RIGHT} + *
  • {@code ComponentOrientation.RIGHT_TO_LEFT} *
* Flow layouts are typically used * to arrange buttons in a panel. It arranges buttons * horizontally until no more buttons fit on the same line. - * The line alignment is determined by the align + * The line alignment is determined by the {@code align} * property. The possible values are: *
* * @see Paint @@ -65,19 +65,19 @@ boolean cyclic; /** - * Constructs a simple acyclic GradientPaint object. + * Constructs a simple acyclic {@code GradientPaint} object. * @param x1 x coordinate of the first specified - * Point in user space + * {@code Point} in user space * @param y1 y coordinate of the first specified - * Point in user space - * @param color1 Color at the first specified - * Point + * {@code Point} in user space + * @param color1 {@code Color} at the first specified + * {@code Point} * @param x2 x coordinate of the second specified - * Point in user space + * {@code Point} in user space * @param y2 y coordinate of the second specified - * Point in user space - * @param color2 Color at the second specified - * Point + * {@code Point} in user space + * @param color2 {@code Color} at the second specified + * {@code Point} * @throws NullPointerException if either one of colors is null */ public GradientPaint(float x1, @@ -97,13 +97,13 @@ } /** - * Constructs a simple acyclic GradientPaint object. - * @param pt1 the first specified Point in user space - * @param color1 Color at the first specified - * Point - * @param pt2 the second specified Point in user space - * @param color2 Color at the second specified - * Point + * Constructs a simple acyclic {@code GradientPaint} object. + * @param pt1 the first specified {@code Point} in user space + * @param color1 {@code Color} at the first specified + * {@code Point} + * @param pt2 the second specified {@code Point} in user space + * @param color2 {@code Color} at the second specified + * {@code Point} * @throws NullPointerException if either one of colors or points * is null */ @@ -123,22 +123,22 @@ } /** - * Constructs either a cyclic or acyclic GradientPaint - * object depending on the boolean parameter. + * Constructs either a cyclic or acyclic {@code GradientPaint} + * object depending on the {@code boolean} parameter. * @param x1 x coordinate of the first specified - * Point in user space + * {@code Point} in user space * @param y1 y coordinate of the first specified - * Point in user space - * @param color1 Color at the first specified - * Point + * {@code Point} in user space + * @param color1 {@code Color} at the first specified + * {@code Point} * @param x2 x coordinate of the second specified - * Point in user space + * {@code Point} in user space * @param y2 y coordinate of the second specified - * Point in user space - * @param color2 Color at the second specified - * Point - * @param cyclic true if the gradient pattern should cycle - * repeatedly between the two colors; false otherwise + * {@code Point} in user space + * @param color2 {@code Color} at the second specified + * {@code Point} + * @param cyclic {@code true} if the gradient pattern should cycle + * repeatedly between the two colors; {@code false} otherwise */ public GradientPaint(float x1, float y1, @@ -152,18 +152,18 @@ } /** - * Constructs either a cyclic or acyclic GradientPaint - * object depending on the boolean parameter. - * @param pt1 the first specified Point + * Constructs either a cyclic or acyclic {@code GradientPaint} + * object depending on the {@code boolean} parameter. + * @param pt1 the first specified {@code Point} * in user space - * @param color1 Color at the first specified - * Point - * @param pt2 the second specified Point + * @param color1 {@code Color} at the first specified + * {@code Point} + * @param pt2 the second specified {@code Point} * in user space - * @param color2 Color at the second specified - * Point - * @param cyclic true if the gradient pattern should cycle - * repeatedly between the two colors; false otherwise + * @param color2 {@code Color} at the second specified + * {@code Point} + * @param cyclic {@code true} if the gradient pattern should cycle + * repeatedly between the two colors; {@code false} otherwise * @throws NullPointerException if either one of colors or points * is null */ @@ -181,7 +181,7 @@ * Returns a copy of the point P1 that anchors the first color. * @return a {@link Point2D} object that is a copy of the point * that anchors the first color of this - * GradientPaint. + * {@code GradientPaint}. */ public Point2D getPoint1() { return new Point2D.Float(p1.x, p1.y); @@ -189,7 +189,7 @@ /** * Returns the color C1 anchored by the point P1. - * @return a Color object that is the color + * @return a {@code Color} object that is the color * anchored by P1. */ public Color getColor1() { @@ -200,7 +200,7 @@ * Returns a copy of the point P2 which anchors the second color. * @return a {@link Point2D} object that is a copy of the point * that anchors the second color of this - * GradientPaint. + * {@code GradientPaint}. */ public Point2D getPoint2() { return new Point2D.Float(p2.x, p2.y); @@ -208,7 +208,7 @@ /** * Returns the color C2 anchored by the point P2. - * @return a Color object that is the color + * @return a {@code Color} object that is the color * anchored by P2. */ public Color getColor2() { @@ -216,10 +216,10 @@ } /** - * Returns true if the gradient cycles repeatedly + * Returns {@code true} if the gradient cycles repeatedly * between the two colors C1 and C2. - * @return true if the gradient cycles repeatedly - * between the two colors; false otherwise. + * @return {@code true} if the gradient cycles repeatedly + * between the two colors; {@code false} otherwise. */ public boolean isCyclic() { return cyclic; @@ -264,8 +264,8 @@ } /** - * Returns the transparency mode for this GradientPaint. - * @return an integer value representing this GradientPaint + * Returns the transparency mode for this {@code GradientPaint}. + * @return an integer value representing this {@code GradientPaint} * object's transparency mode. * @see Transparency */ --- old/src/java.desktop/share/classes/java/awt/Graphics.java 2015-10-04 22:52:40.469274294 +0400 +++ new/src/java.desktop/share/classes/java/awt/Graphics.java 2015-10-04 22:52:40.277274302 +0400 @@ -31,17 +31,17 @@ import java.text.AttributedCharacterIterator; /** - * The Graphics class is the abstract base class for + * The {@code Graphics} class is the abstract base class for * all graphics contexts that allow an application to draw onto * components that are realized on various devices, as well as * onto off-screen images. *

- * A Graphics object encapsulates state information needed + * A {@code Graphics} object encapsulates state information needed * for the basic rendering operations that Java supports. This * state information includes the following properties: * *

    - *
  • The Component object on which to draw. + *
  • The {@code Component} object on which to draw. *
  • A translation origin for rendering and clipping coordinates. *
  • The current clip. *
  • The current color. @@ -72,21 +72,21 @@ * the text, except for any descenders. *

* All coordinates that appear as arguments to the methods of this - * Graphics object are considered relative to the - * translation origin of this Graphics object prior to + * {@code Graphics} object are considered relative to the + * translation origin of this {@code Graphics} object prior to * the invocation of the method. *

* All rendering operations modify only pixels which lie within the * area bounded by the current clip, which is specified by a {@link Shape} * in user space and is controlled by the program using the - * Graphics object. This user clip + * {@code Graphics} object. This user clip * is transformed into device space and combined with the * device clip, which is defined by the visibility of windows and * device extents. The combination of the user clip and device clip * defines the composite clip, which determines the final clipping * region. The user clip cannot be modified by the rendering * system to reflect the resulting composite clip. The user clip can only - * be changed through the setClip or clipRect + * be changed through the {@code setClip} or {@code clipRect} * methods. * All drawing or writing is done in the current color, * using the current paint mode, and in the current font. @@ -104,14 +104,14 @@ public abstract class Graphics { /** - * Constructs a new Graphics object. + * Constructs a new {@code Graphics} object. * This constructor is the default constructor for a graphics * context. *

- * Since Graphics is an abstract class, applications + * Since {@code Graphics} is an abstract class, applications * cannot call this constructor directly. Graphics contexts are * obtained from other graphics contexts or are created by calling - * getGraphics on a component. + * {@code getGraphics} on a component. * @see java.awt.Graphics#create() * @see java.awt.Component#getGraphics */ @@ -119,36 +119,36 @@ } /** - * Creates a new Graphics object that is - * a copy of this Graphics object. + * Creates a new {@code Graphics} object that is + * a copy of this {@code Graphics} object. * @return a new graphics context that is a copy of * this graphics context. */ public abstract Graphics create(); /** - * Creates a new Graphics object based on this - * Graphics object, but with a new translation and clip area. - * The new Graphics object has its origin + * Creates a new {@code Graphics} object based on this + * {@code Graphics} object, but with a new translation and clip area. + * The new {@code Graphics} object has its origin * translated to the specified point (xy). * Its clip area is determined by the intersection of the original * clip area with the specified rectangle. The arguments are all * interpreted in the coordinate system of the original - * Graphics object. The new graphics context is + * {@code Graphics} object. The new graphics context is * identical to the original, except in two respects: * *

    *
  • * The new graphics context is translated by (xy). - * That is to say, the point (00) in the + * That is to say, the point ({@code 0}, {@code 0}) in the * new graphics context is the same as (xy) in * the original graphics context. *
  • * The new graphics context has an additional clipping rectangle, in * addition to whatever (translated) clipping rectangle it inherited * from the original graphics context. The origin of the new clipping - * rectangle is at (00), and its size - * is specified by the width and height + * rectangle is at ({@code 0}, {@code 0}), and its size + * is specified by the {@code width} and {@code height} * arguments. *
* @@ -273,12 +273,12 @@ * This method refers to the user clip, which is independent of the * clipping associated with device bounds and window visibility. * If no clip has previously been set, or if the clip has been - * cleared using setClip(null), this method returns - * null. + * cleared using {@code setClip(null)}, this method returns + * {@code null}. * The coordinates in the rectangle are relative to the coordinate * system origin of this graphics context. * @return the bounding rectangle of the current clipping area, - * or null if no clip is set. + * or {@code null} if no clip is set. * @see java.awt.Graphics#getClip * @see java.awt.Graphics#clipRect * @see java.awt.Graphics#setClip(int, int, int, int) @@ -292,7 +292,7 @@ * The resulting clipping area is the intersection of the current * clipping area and the specified rectangle. If there is no * current clipping area, either because the clip has never been - * set, or the clip has been cleared using setClip(null), + * set, or the clip has been cleared using {@code setClip(null)}, * the specified rectangle becomes the new clip. * This method sets the user clip, which is independent of the * clipping associated with device bounds and window visibility. @@ -330,10 +330,10 @@ * This method returns the user clip, which is independent of the * clipping associated with device bounds and window visibility. * If no clip has previously been set, or if the clip has been - * cleared using setClip(null), this method returns - * null. - * @return a Shape object representing the - * current clipping area, or null if + * cleared using {@code setClip(null)}, this method returns + * {@code null}. + * @return a {@code Shape} object representing the + * current clipping area, or {@code null} if * no clip is set. * @see java.awt.Graphics#getClipBounds * @see java.awt.Graphics#clipRect @@ -345,15 +345,15 @@ /** * Sets the current clipping area to an arbitrary clip shape. - * Not all objects that implement the Shape + * Not all objects that implement the {@code Shape} * interface can be used to set the clip. The only - * Shape objects that are guaranteed to be - * supported are Shape objects that are - * obtained via the getClip method and via - * Rectangle objects. This method sets the + * {@code Shape} objects that are guaranteed to be + * supported are {@code Shape} objects that are + * obtained via the {@code getClip} method and via + * {@code Rectangle} objects. This method sets the * user clip, which is independent of the clipping associated * with device bounds and window visibility. - * @param clip the Shape to use to set the clip + * @param clip the {@code Shape} to use to set the clip * @see java.awt.Graphics#getClip() * @see java.awt.Graphics#clipRect * @see java.awt.Graphics#setClip(int, int, int, int) @@ -363,16 +363,16 @@ /** * Copies an area of the component by a distance specified by - * dx and dy. From the point specified - * by x and y, this method + * {@code dx} and {@code dy}. From the point specified + * by {@code x} and {@code y}, this method * copies downwards and to the right. To copy an area of the * component to the left or upwards, specify a negative value for - * dx or dy. + * {@code dx} or {@code dy}. * If a portion of the source rectangle lies outside the bounds * of the component, or is obscured by another window or component, - * copyArea will be unable to copy the associated + * {@code copyArea} will be unable to copy the associated * pixels. The area that is omitted can be refreshed by calling - * the component's paint method. + * the component's {@code paint} method. * @param x the x coordinate of the source rectangle. * @param y the y coordinate of the source rectangle. * @param width the width of the source rectangle. @@ -397,12 +397,12 @@ /** * Fills the specified rectangle. * The left and right edges of the rectangle are at - * x and x + width - 1. + * {@code x} and x + width - 1. * The top and bottom edges are at - * y and y + height - 1. + * {@code y} and y + height - 1. * The resulting rectangle covers an area - * width pixels wide by - * height pixels tall. + * {@code width} pixels wide by + * {@code height} pixels tall. * The rectangle is filled using the graphics context's current color. * @param x the x coordinate * of the rectangle to be filled. @@ -418,9 +418,9 @@ /** * Draws the outline of the specified rectangle. * The left and right edges of the rectangle are at - * x and x + width. + * {@code x} and x + width. * The top and bottom edges are at - * y and y + height. + * {@code y} and y + height. * The rectangle is drawn using the graphics context's current color. * @param x the x coordinate * of the rectangle to be drawn. @@ -453,7 +453,7 @@ *

* Beginning with Java 1.1, the background color * of offscreen images may be system dependent. Applications should - * use setColor followed by fillRect to + * use {@code setColor} followed by {@code fillRect} to * ensure that an offscreen image is cleared to a specific color. * @param x the x coordinate of the rectangle to clear. * @param y the y coordinate of the rectangle to clear. @@ -470,9 +470,9 @@ /** * Draws an outlined round-cornered rectangle using this graphics * context's current color. The left and right edges of the rectangle - * are at x and x + width, + * are at {@code x} and x + width, * respectively. The top and bottom edges of the rectangle are at - * y and y + height. + * {@code y} and y + height. * @param x the x coordinate of the rectangle to be drawn. * @param y the y coordinate of the rectangle to be drawn. * @param width the width of the rectangle to be drawn. @@ -489,9 +489,9 @@ /** * Fills the specified rounded corner rectangle with the current color. * The left and right edges of the rectangle - * are at x and x + width - 1, + * are at {@code x} and x + width - 1, * respectively. The top and bottom edges of the rectangle are at - * y and y + height - 1. + * {@code y} and y + height - 1. * @param x the x coordinate of the rectangle to be filled. * @param y the y coordinate of the rectangle to be filled. * @param width the width of the rectangle to be filled. @@ -576,8 +576,8 @@ /** * Draws the outline of an oval. * The result is a circle or ellipse that fits within the - * rectangle specified by the x, y, - * width, and height arguments. + * rectangle specified by the {@code x}, {@code y}, + * {@code width}, and {@code height} arguments. *

* The oval covers an area that is * width + 1 pixels wide @@ -609,8 +609,8 @@ * Draws the outline of a circular or elliptical arc * covering the specified rectangle. *

- * The resulting arc begins at startAngle and extends - * for arcAngle degrees, using the current color. + * The resulting arc begins at {@code startAngle} and extends + * for {@code arcAngle} degrees, using the current color. * Angles are interpreted such that 0 degrees * is at the 3 o'clock position. * A positive value indicates a counter-clockwise rotation @@ -618,7 +618,7 @@ *

* The center of the arc is the center of the rectangle whose origin * is (xy) and whose size is specified by the - * width and height arguments. + * {@code width} and {@code height} arguments. *

* The resulting arc covers an area * width + 1 pixels wide @@ -648,8 +648,8 @@ /** * Fills a circular or elliptical arc covering the specified rectangle. *

- * The resulting arc begins at startAngle and extends - * for arcAngle degrees. + * The resulting arc begins at {@code startAngle} and extends + * for {@code arcAngle} degrees. * Angles are interpreted such that 0 degrees * is at the 3 o'clock position. * A positive value indicates a counter-clockwise rotation @@ -657,7 +657,7 @@ *

* The center of the arc is the center of the rectangle whose origin * is (xy) and whose size is specified by the - * width and height arguments. + * {@code width} and {@code height} arguments. *

* The resulting arc covers an area * width + 1 pixels wide @@ -704,16 +704,16 @@ * arrays of x and y coordinates. * Each pair of (xy) coordinates defines a point. *

- * This method draws the polygon defined by nPoint line + * This method draws the polygon defined by {@code nPoint} line * segments, where the first nPoint - 1 * line segments are line segments from * (xPoints[i - 1], yPoints[i - 1]) * to (xPoints[i], yPoints[i]), for - * 1 ≤ i ≤ nPoints. + * 1 ≤ i ≤ {@code nPoints}. * The figure is automatically closed by drawing a line connecting * the final point to the first point, if those points are different. - * @param xPoints a an array of x coordinates. - * @param yPoints a an array of y coordinates. + * @param xPoints a an array of {@code x} coordinates. + * @param yPoints a an array of {@code y} coordinates. * @param nPoints a the total number of points. * @see java.awt.Graphics#fillPolygon * @see java.awt.Graphics#drawPolyline @@ -723,7 +723,7 @@ /** * Draws the outline of a polygon defined by the specified - * Polygon object. + * {@code Polygon} object. * @param p the polygon to draw. * @see java.awt.Graphics#fillPolygon * @see java.awt.Graphics#drawPolyline @@ -736,19 +736,19 @@ * Fills a closed polygon defined by * arrays of x and y coordinates. *

- * This method draws the polygon defined by nPoint line + * This method draws the polygon defined by {@code nPoint} line * segments, where the first nPoint - 1 * line segments are line segments from * (xPoints[i - 1], yPoints[i - 1]) * to (xPoints[i], yPoints[i]), for - * 1 ≤ i ≤ nPoints. + * 1 ≤ i ≤ {@code nPoints}. * The figure is automatically closed by drawing a line connecting * the final point to the first point, if those points are different. *

* The area inside the polygon is defined using an * even-odd fill rule, also known as the alternating rule. - * @param xPoints a an array of x coordinates. - * @param yPoints a an array of y coordinates. + * @param xPoints a an array of {@code x} coordinates. + * @param yPoints a an array of {@code y} coordinates. * @param nPoints a the total number of points. * @see java.awt.Graphics#drawPolygon(int[], int[], int) */ @@ -776,7 +776,7 @@ * @param str the string to be drawn. * @param x the x coordinate. * @param y the y coordinate. - * @throws NullPointerException if str is null. + * @throws NullPointerException if {@code str} is {@code null}. * @see java.awt.Graphics#drawBytes * @see java.awt.Graphics#drawChars */ @@ -792,8 +792,8 @@ * @param iterator the iterator whose text is to be drawn * @param x the x coordinate. * @param y the y coordinate. - * @throws NullPointerException if iterator is - * null. + * @throws NullPointerException if {@code iterator} is + * {@code null}. * @see java.awt.Graphics#drawBytes * @see java.awt.Graphics#drawChars */ @@ -810,11 +810,11 @@ * @param length the number of characters to be drawn * @param x the x coordinate of the baseline of the text * @param y the y coordinate of the baseline of the text - * @throws NullPointerException if data is null. - * @throws IndexOutOfBoundsException if offset or - * lengthis less than zero, or - * offset+length is greater than the length of the - * data array. + * @throws NullPointerException if {@code data} is {@code null}. + * @throws IndexOutOfBoundsException if {@code offset} or + * {@code length} is less than zero, or + * {@code offset+length} is greater than the length of the + * {@code data} array. * @see java.awt.Graphics#drawBytes * @see java.awt.Graphics#drawString */ @@ -836,10 +836,10 @@ * @param length the number of bytes that are drawn * @param x the x coordinate of the baseline of the text * @param y the y coordinate of the baseline of the text - * @throws NullPointerException if data is null. - * @throws IndexOutOfBoundsException if offset or - * lengthis less than zero, or offset+length - * is greater than the length of the data array. + * @throws NullPointerException if {@code data} is {@code null}. + * @throws IndexOutOfBoundsException if {@code offset} or + * {@code length} is less than zero, or {@code offset+length} + * is greater than the length of the {@code data} array. * @see java.awt.Graphics#drawChars * @see java.awt.Graphics#drawString */ @@ -861,21 +861,21 @@ *

* If the image has completely loaded and its pixels are * no longer being changed, then - * drawImage returns true. - * Otherwise, drawImage returns false + * {@code drawImage} returns {@code true}. + * Otherwise, {@code drawImage} returns {@code false} * and as more of * the image becomes available * or it is time to draw another frame of animation, * the process that loads the image notifies * the specified image observer. * @param img the specified image to be drawn. This method does - * nothing if img is null. + * nothing if {@code img} is null. * @param x the x coordinate. * @param y the y coordinate. * @param observer object to be notified as more of * the image is converted. - * @return false if the image pixels are still changing; - * true otherwise. + * @return {@code false} if the image pixels are still changing; + * {@code true} otherwise. * @see java.awt.Image * @see java.awt.image.ImageObserver * @see java.awt.image.ImageObserver#imageUpdate(java.awt.Image, int, int, int, int, int) @@ -896,9 +896,9 @@ * entire image has not yet been scaled, dithered, and converted * for the current output device. * If the current output representation is not yet complete, then - * drawImage returns false. As more of + * {@code drawImage} returns {@code false}. As more of * the image becomes available, the process that loads the image notifies - * the image observer by calling its imageUpdate method. + * the image observer by calling its {@code imageUpdate} method. *

* A scaled version of an image will not necessarily be * available immediately just because an unscaled version of the @@ -906,15 +906,15 @@ * the image may be cached separately and generated from the original * data in a separate image production sequence. * @param img the specified image to be drawn. This method does - * nothing if img is null. + * nothing if {@code img} is null. * @param x the x coordinate. * @param y the y coordinate. * @param width the width of the rectangle. * @param height the height of the rectangle. * @param observer object to be notified as more of * the image is converted. - * @return false if the image pixels are still changing; - * true otherwise. + * @return {@code false} if the image pixels are still changing; + * {@code true} otherwise. * @see java.awt.Image * @see java.awt.image.ImageObserver * @see java.awt.image.ImageObserver#imageUpdate(java.awt.Image, int, int, int, int, int) @@ -940,23 +940,23 @@ *

* If the image has completely loaded and its pixels are * no longer being changed, then - * drawImage returns true. - * Otherwise, drawImage returns false + * {@code drawImage} returns {@code true}. + * Otherwise, {@code drawImage} returns {@code false} * and as more of * the image becomes available * or it is time to draw another frame of animation, * the process that loads the image notifies * the specified image observer. * @param img the specified image to be drawn. This method does - * nothing if img is null. + * nothing if {@code img} is null. * @param x the x coordinate. * @param y the y coordinate. * @param bgcolor the background color to paint under the * non-opaque portions of the image. * @param observer object to be notified as more of * the image is converted. - * @return false if the image pixels are still changing; - * true otherwise. + * @return {@code false} if the image pixels are still changing; + * {@code true} otherwise. * @see java.awt.Image * @see java.awt.image.ImageObserver * @see java.awt.image.ImageObserver#imageUpdate(java.awt.Image, int, int, int, int, int) @@ -981,7 +981,7 @@ * entire image has not yet been scaled, dithered, and converted * for the current output device. * If the current output representation is not yet complete then - * drawImage returns false. As more of + * {@code drawImage} returns {@code false}. As more of * the image becomes available, the process that loads the image notifies * the specified image observer. *

@@ -991,7 +991,7 @@ * the image may be cached separately and generated from the original * data in a separate image production sequence. * @param img the specified image to be drawn. This method does - * nothing if img is null. + * nothing if {@code img} is null. * @param x the x coordinate. * @param y the y coordinate. * @param width the width of the rectangle. @@ -1000,8 +1000,8 @@ * non-opaque portions of the image. * @param observer object to be notified as more of * the image is converted. - * @return false if the image pixels are still changing; - * true otherwise. + * @return {@code false} if the image pixels are still changing; + * {@code true} otherwise. * @see java.awt.Image * @see java.awt.image.ImageObserver * @see java.awt.image.ImageObserver#imageUpdate(java.awt.Image, int, int, int, int, int) @@ -1021,7 +1021,7 @@ * image area to be drawn has not yet been scaled, dithered, and converted * for the current output device. * If the current output representation is not yet complete then - * drawImage returns false. As more of + * {@code drawImage} returns {@code false}. As more of * the image becomes available, the process that loads the image notifies * the specified image observer. *

@@ -1035,7 +1035,7 @@ * mapped to the second destination coordinate. The subimage is * scaled and flipped as needed to preserve those mappings. * @param img the specified image to be drawn. This method does - * nothing if img is null. + * nothing if {@code img} is null. * @param dx1 the x coordinate of the first corner of the * destination rectangle. * @param dy1 the y coordinate of the first corner of the @@ -1054,8 +1054,8 @@ * source rectangle. * @param observer object to be notified as more of the image is * scaled and converted. - * @return false if the image pixels are still changing; - * true otherwise. + * @return {@code false} if the image pixels are still changing; + * {@code true} otherwise. * @see java.awt.Image * @see java.awt.image.ImageObserver * @see java.awt.image.ImageObserver#imageUpdate(java.awt.Image, int, int, int, int, int) @@ -1080,7 +1080,7 @@ * image area to be drawn has not yet been scaled, dithered, and converted * for the current output device. * If the current output representation is not yet complete then - * drawImage returns false. As more of + * {@code drawImage} returns {@code false}. As more of * the image becomes available, the process that loads the image notifies * the specified image observer. *

@@ -1094,7 +1094,7 @@ * mapped to the second destination coordinate. The subimage is * scaled and flipped as needed to preserve those mappings. * @param img the specified image to be drawn. This method does - * nothing if img is null. + * nothing if {@code img} is null. * @param dx1 the x coordinate of the first corner of the * destination rectangle. * @param dy1 the y coordinate of the first corner of the @@ -1115,8 +1115,8 @@ * non-opaque portions of the image. * @param observer object to be notified as more of the image is * scaled and converted. - * @return false if the image pixels are still changing; - * true otherwise. + * @return {@code false} if the image pixels are still changing; + * {@code true} otherwise. * @see java.awt.Image * @see java.awt.image.ImageObserver * @see java.awt.image.ImageObserver#imageUpdate(java.awt.Image, int, int, int, int, int) @@ -1131,10 +1131,10 @@ /** * Disposes of this graphics context and releases * any system resources that it is using. - * A Graphics object cannot be used after - * disposehas been called. + * A {@code Graphics} object cannot be used after + * {@code dispose} has been called. *

- * When a Java program runs, a large number of Graphics + * When a Java program runs, a large number of {@code Graphics} * objects can be created within a short time frame. * Although the finalization process of the garbage collector * also disposes of the same system resources, it is preferable @@ -1143,12 +1143,12 @@ * may not run to completion for a long period of time. *

* Graphics objects which are provided as arguments to the - * paint and update methods + * {@code paint} and {@code update} methods * of components are automatically released by the system when * those methods return. For efficiency, programmers should - * call dispose when finished using - * a Graphics object only if it was created - * directly from a component or another Graphics object. + * call {@code dispose} when finished using + * a {@code Graphics} object only if it was created + * directly from a component or another {@code Graphics} object. * @see java.awt.Graphics#finalize * @see java.awt.Component#paint * @see java.awt.Component#update @@ -1166,8 +1166,8 @@ } /** - * Returns a String object representing this - * Graphics object's value. + * Returns a {@code String} object representing this + * {@code Graphics} object's value. * @return a string representation of this graphics context. */ public String toString() { @@ -1177,9 +1177,9 @@ /** * Returns the bounding rectangle of the current clipping area. * @return the bounding rectangle of the current clipping area - * or null if no clip is set. + * or {@code null} if no clip is set. * @deprecated As of JDK version 1.1, - * replaced by getClipBounds(). + * replaced by {@code getClipBounds()}. */ @Deprecated public Rectangle getClipRect() { @@ -1208,8 +1208,8 @@ * @param y the y coordinate of the rectangle to test against the clip * @param width the width of the rectangle to test against the clip * @param height the height of the rectangle to test against the clip - * @return true if the specified rectangle intersects - * the bounds of the current clip; false + * @return {@code true} if the specified rectangle intersects + * the bounds of the current clip; {@code false} * otherwise. */ public boolean hitClip(int x, int y, int width, int height) { @@ -1232,8 +1232,8 @@ * This method refers to the user clip, which is independent of the * clipping associated with device bounds and window visibility. * If no clip has previously been set, or if the clip has been - * cleared using setClip(null), this method returns the - * specified Rectangle. + * cleared using {@code setClip(null)}, this method returns the + * specified {@code Rectangle}. * @param r the rectangle where the current clipping area is * copied to. Any current values in this rectangle are * overwritten. --- old/src/java.desktop/share/classes/java/awt/Graphics2D.java 2015-10-04 22:52:41.021274269 +0400 +++ new/src/java.desktop/share/classes/java/awt/Graphics2D.java 2015-10-04 22:52:40.833274277 +0400 @@ -39,47 +39,47 @@ import java.util.Map; /** - * This Graphics2D class extends the + * This {@code Graphics2D} class extends the * {@link Graphics} class to provide more sophisticated * control over geometry, coordinate transformations, color management, * and text layout. This is the fundamental class for rendering * 2-dimensional shapes, text and images on the Java(tm) platform. * *

Coordinate Spaces

- * All coordinates passed to a Graphics2D object are specified + * All coordinates passed to a {@code Graphics2D} object are specified * in a device-independent coordinate system called User Space, which is - * used by applications. The Graphics2D object contains + * used by applications. The {@code Graphics2D} object contains * an {@link AffineTransform} object as part of its rendering state * that defines how to convert coordinates from user space to * device-dependent coordinates in Device Space. *

* Coordinates in device space usually refer to individual device pixels * and are aligned on the infinitely thin gaps between these pixels. - * Some Graphics2D objects can be used to capture rendering + * Some {@code Graphics2D} objects can be used to capture rendering * operations for storage into a graphics metafile for playback on a * concrete device of unknown physical resolution at a later time. Since * the resolution might not be known when the rendering operations are - * captured, the Graphics2D Transform is set up + * captured, the {@code Graphics2D Transform} is set up * to transform user coordinates to a virtual device space that * approximates the expected resolution of the target device. Further * transformations might need to be applied at playback time if the * estimate is incorrect. *

* Some of the operations performed by the rendering attribute objects - * occur in the device space, but all Graphics2D methods take + * occur in the device space, but all {@code Graphics2D} methods take * user space coordinates. *

- * Every Graphics2D object is associated with a target that + * Every {@code Graphics2D} object is associated with a target that * defines where rendering takes place. A * {@link GraphicsConfiguration} object defines the characteristics * of the rendering target, such as pixel format and resolution. * The same rendering target is used throughout the life of a - * Graphics2D object. + * {@code Graphics2D} object. *

- * When creating a Graphics2D object, the - * GraphicsConfiguration + * When creating a {@code Graphics2D} object, the + * {@code GraphicsConfiguration} * specifies the default transform for - * the target of the Graphics2D (a + * the target of the {@code Graphics2D} (a * {@link Component} or {@link Image}). This default transform maps the * user space coordinate system to screen and printer device coordinates * such that the origin maps to the upper left hand corner of the @@ -90,11 +90,11 @@ * The scaling of the default transform is set to approximately 72 user * space coordinates per square inch for high resolution devices, such as * printers. For image buffers, the default transform is the - * Identity transform. + * {@code Identity} transform. * *

Rendering Process

* The Rendering Process can be broken down into four phases that are - * controlled by the Graphics2D rendering attributes. + * controlled by the {@code Graphics2D} rendering attributes. * The renderer can optimize many of these steps, either by caching the * results for future calls, by collapsing multiple virtual steps into * a single operation, or by recognizing various attributes as common @@ -106,13 +106,13 @@ *
  • * Determine what to render. *
  • - * Constrain the rendering operation to the current Clip. - * The Clip is specified by a {@link Shape} in user + * Constrain the rendering operation to the current {@code Clip}. + * The {@code Clip} is specified by a {@link Shape} in user * space and is controlled by the program using the various clip - * manipulation methods of Graphics and - * Graphics2D. This user clip + * manipulation methods of {@code Graphics} and + * {@code Graphics2D}. This user clip * is transformed into device space by the current - * Transform and combined with the + * {@code Transform} and combined with the * device clip, which is defined by the visibility of windows and * device extents. The combination of the user clip and device clip * defines the composite clip, which determines the final clipping @@ -122,40 +122,40 @@ * Determine what colors to render. *
  • * Apply the colors to the destination drawing surface using the current - * {@link Composite} attribute in the Graphics2D context. + * {@link Composite} attribute in the {@code Graphics2D} context. * *
    * The three types of rendering operations, along with details of each * of their particular rendering processes are: *
      *
    1. - * Shape operations + * {@code Shape} operations *
        *
      1. - * If the operation is a draw(Shape) operation, then + * If the operation is a {@code draw(Shape)} operation, then * the {@link Stroke#createStrokedShape(Shape) createStrokedShape} * method on the current {@link Stroke} attribute in the - * Graphics2D context is used to construct a new - * Shape object that contains the outline of the specified - * Shape. - *
      2. - * The Shape is transformed from user space to device space - * using the current Transform - * in the Graphics2D context. + * {@code Graphics2D} context is used to construct a new + * {@code Shape} object that contains the outline of the specified + * {@code Shape}. + *
      3. + * The {@code Shape} is transformed from user space to device space + * using the current {@code Transform} + * in the {@code Graphics2D} context. *
      4. - * The outline of the Shape is extracted using the + * The outline of the {@code Shape} is extracted using the * {@link Shape#getPathIterator(AffineTransform) getPathIterator} method of - * Shape, which returns a + * {@code Shape}, which returns a * {@link java.awt.geom.PathIterator PathIterator} - * object that iterates along the boundary of the Shape. + * object that iterates along the boundary of the {@code Shape}. *
      5. - * If the Graphics2D object cannot handle the curved segments - * that the PathIterator object returns then it can call the + * If the {@code Graphics2D} object cannot handle the curved segments + * that the {@code PathIterator} object returns then it can call the * alternate * {@link Shape#getPathIterator(AffineTransform, double) getPathIterator} - * method of Shape, which flattens the Shape. + * method of {@code Shape}, which flattens the {@code Shape}. *
      6. - * The current {@link Paint} in the Graphics2D context + * The current {@link Paint} in the {@code Graphics2D} context * is queried for a {@link PaintContext}, which specifies the * colors to render in device space. *
      @@ -164,12 +164,12 @@ *
        *
      1. * The following steps are used to determine the set of glyphs required - * to render the indicated String: + * to render the indicated {@code String}: *
          *
        1. - * If the argument is a String, then the current - * Font in the Graphics2D context is asked to - * convert the Unicode characters in the String into a set of + * If the argument is a {@code String}, then the current + * {@code Font} in the {@code Graphics2D} context is asked to + * convert the Unicode characters in the {@code String} into a set of * glyphs for presentation with whatever basic layout and shaping * algorithms the font implements. *
        2. @@ -177,75 +177,75 @@ * {@link AttributedCharacterIterator}, * the iterator is asked to convert itself to a * {@link java.awt.font.TextLayout TextLayout} - * using its embedded font attributes. The TextLayout + * using its embedded font attributes. The {@code TextLayout} * implements more sophisticated glyph layout algorithms that * perform Unicode bi-directional layout adjustments automatically * for multiple fonts of differing writing directions. *
        3. * If the argument is a * {@link GlyphVector}, then the - * GlyphVector object already contains the appropriate + * {@code GlyphVector} object already contains the appropriate * font-specific glyph codes with explicit coordinates for the position of * each glyph. *
        *
      2. - * The current Font is queried to obtain outlines for the + * The current {@code Font} is queried to obtain outlines for the * indicated glyphs. These outlines are treated as shapes in user space * relative to the position of each glyph that was determined in step 1. *
      3. * The character outlines are filled as indicated above - * under Shape operations. + * under {@code Shape} operations. *
      4. - * The current Paint is queried for a - * PaintContext, which specifies + * The current {@code Paint} is queried for a + * {@code PaintContext}, which specifies * the colors to render in device space. *
      *
    2. - * Image Operations + * {@code Image} Operations *
        *
      1. * The region of interest is defined by the bounding box of the source - * Image. + * {@code Image}. * This bounding box is specified in Image Space, which is the - * Image object's local coordinate system. + * {@code Image} object's local coordinate system. *
      2. - * If an AffineTransform is passed to + * If an {@code AffineTransform} is passed to * {@link #drawImage(java.awt.Image, java.awt.geom.AffineTransform, java.awt.image.ImageObserver) drawImage(Image, AffineTransform, ImageObserver)}, - * the AffineTransform is used to transform the bounding - * box from image space to user space. If no AffineTransform + * the {@code AffineTransform} is used to transform the bounding + * box from image space to user space. If no {@code AffineTransform} * is supplied, the bounding box is treated as if it is already in user space. *
      3. - * The bounding box of the source Image is transformed from user - * space into device space using the current Transform. + * The bounding box of the source {@code Image} is transformed from user + * space into device space using the current {@code Transform}. * Note that the result of transforming the bounding box does not * necessarily result in a rectangular region in device space. *
      4. - * The Image object determines what colors to render, + * The {@code Image} object determines what colors to render, * sampled according to the source to destination - * coordinate mapping specified by the current Transform and the + * coordinate mapping specified by the current {@code Transform} and the * optional image transform. *
      *
    * *

    Default Rendering Attributes

    - * The default values for the Graphics2D rendering attributes are: + * The default values for the {@code Graphics2D} rendering attributes are: *
    - *
    Paint - *
    The color of the Component. - *
    Font - *
    The Font of the Component. - *
    Stroke + *
    {@code Paint} + *
    The color of the {@code Component}. + *
    {@code Font} + *
    The {@code Font} of the {@code Component}. + *
    {@code Stroke} *
    A square pen with a linewidth of 1, no dashing, miter segment joins * and square end caps. - *
    Transform + *
    {@code Transform} *
    The * {@link GraphicsConfiguration#getDefaultTransform() getDefaultTransform} - * for the GraphicsConfiguration of the Component. - *
    Composite + * for the {@code GraphicsConfiguration} of the {@code Component}. + *
    {@code Composite} *
    The {@link AlphaComposite#SRC_OVER} rule. - *
    Clip - *
    No rendering Clip, the output is clipped to the - * Component. + *
    {@code Clip} + *
    No rendering {@code Clip}, the output is clipped to the + * {@code Component}. *
    * *

    Rendering Compatibility Issues

    @@ -291,14 +291,14 @@ * Java 2D API maintains compatibility with JDK 1.1 rendering * behavior, such that legacy operations and existing renderer * behavior is unchanged under Java 2D API. Legacy - * methods that map onto general draw and - * fill methods are defined, which clearly indicates - * how Graphics2D extends Graphics based - * on settings of Stroke and Transform + * methods that map onto general {@code draw} and + * {@code fill} methods are defined, which clearly indicates + * how {@code Graphics2D} extends {@code Graphics} based + * on settings of {@code Stroke} and {@code Transform} * attributes and rendering hints. The definition * performs identically under default attribute settings. - * For example, the default Stroke is a - * BasicStroke with a width of 1 and no dashing and the + * For example, the default {@code Stroke} is a + * {@code BasicStroke} with a width of 1 and no dashing and the * default Transform for screen drawing is an Identity transform. *

    * The following two rules provide predictable rendering behavior whether @@ -315,7 +315,7 @@ * covered. On the other hand, since coordinates are defined to be * between pixels, a shape like a rectangle would have no half covered * pixels, whether or not it is rendered using antialiasing. - *

  • Lines and paths stroked using the BasicStroke + *
  • Lines and paths stroked using the {@code BasicStroke} * object may be "normalized" to provide consistent rendering of the * outlines when positioned at various points on the drawable and * whether drawn with aliased or antialiased rendering. This @@ -341,11 +341,11 @@ * attribute settings: *
      *
    • - * For fill operations, including fillRect, - * fillRoundRect, fillOval, - * fillArc, fillPolygon, and - * clearRect, {@link #fill(Shape) fill} can now be called - * with the desired Shape. For example, when filling a + * For {@code fill} operations, including {@code fillRect}, + * {@code fillRoundRect}, {@code fillOval}, + * {@code fillArc}, {@code fillPolygon}, and + * {@code clearRect}, {@link #fill(Shape) fill} can now be called + * with the desired {@code Shape}. For example, when filling a * rectangle: *
        * fill(new Rectangle(x, y, w, h));
      @@ -353,11 +353,11 @@
        * is called.
        *
        * 
    • - * Similarly, for draw operations, including drawLine, - * drawRect, drawRoundRect, - * drawOval, drawArc, drawPolyline, - * and drawPolygon, {@link #draw(Shape) draw} can now be - * called with the desired Shape. For example, when drawing a + * Similarly, for draw operations, including {@code drawLine}, + * {@code drawRect}, {@code drawRoundRect}, + * {@code drawOval}, {@code drawArc}, {@code drawPolyline}, + * and {@code drawPolygon}, {@link #draw(Shape) draw} can now be + * called with the desired {@code Shape}. For example, when drawing a * rectangle: *
        * draw(new Rectangle(x, y, w, h));
      @@ -365,36 +365,36 @@
        * is called.
        *
        * 
    • - * The draw3DRect and fill3DRect methods were - * implemented in terms of the drawLine and - * fillRect methods in the Graphics class which - * would predicate their behavior upon the current Stroke - * and Paint objects in a Graphics2D context. + * The {@code draw3DRect} and {@code fill3DRect} methods were + * implemented in terms of the {@code drawLine} and + * {@code fillRect} methods in the {@code Graphics} class which + * would predicate their behavior upon the current {@code Stroke} + * and {@code Paint} objects in a {@code Graphics2D} context. * This class overrides those implementations with versions that use - * the current Color exclusively, overriding the current - * Paint and which uses fillRect to describe + * the current {@code Color} exclusively, overriding the current + * {@code Paint} and which uses {@code fillRect} to describe * the exact same behavior as the preexisting methods regardless of the - * setting of the current Stroke. + * setting of the current {@code Stroke}. *
    - * The Graphics class defines only the setColor + * The {@code Graphics} class defines only the {@code setColor} * method to control the color to be painted. Since the Java 2D API extends - * the Color object to implement the new Paint + * the {@code Color} object to implement the new {@code Paint} * interface, the existing - * setColor method is now a convenience method for setting the - * current Paint attribute to a Color object. - * setColor(c) is equivalent to setPaint(c). + * {@code setColor} method is now a convenience method for setting the + * current {@code Paint} attribute to a {@code Color} object. + * {@code setColor(c)} is equivalent to {@code setPaint(c)}. *

    - * The Graphics class defines two methods for controlling + * The {@code Graphics} class defines two methods for controlling * how colors are applied to the destination. *

      *
    1. - * The setPaintMode method is implemented as a convenience - * method to set the default Composite, equivalent to - * setComposite(new AlphaComposite.SrcOver). - *
    2. - * The setXORMode(Color xorcolor) method is implemented - * as a convenience method to set a special Composite object that - * ignores the Alpha components of source colors and sets the + * The {@code setPaintMode} method is implemented as a convenience + * method to set the default {@code Composite}, equivalent to + * {@code setComposite(new AlphaComposite.SrcOver)}. + *
    3. + * The {@code setXORMode(Color xorcolor)} method is implemented + * as a convenience method to set a special {@code Composite} object that + * ignores the {@code Alpha} components of source colors and sets the * destination color to the value: *
        * dstpixel = (PixelOf(srccolor) ^ PixelOf(xorcolor) ^ dstpixel);
      @@ -407,13 +407,13 @@
       public abstract class Graphics2D extends Graphics {
       
           /**
      -     * Constructs a new Graphics2D object.  Since
      -     * Graphics2D is an abstract class, and since it must be
      +     * Constructs a new {@code Graphics2D} object.  Since
      +     * {@code Graphics2D} is an abstract class, and since it must be
            * customized by subclasses for different output devices,
      -     * Graphics2D objects cannot be created directly.
      -     * Instead, Graphics2D objects must be obtained from another
      -     * Graphics2D object, created by a
      -     * Component, or obtained from images such as
      +     * {@code Graphics2D} objects cannot be created directly.
      +     * Instead, {@code Graphics2D} objects must be obtained from another
      +     * {@code Graphics2D} object, created by a
      +     * {@code Component}, or obtained from images such as
            * {@link BufferedImage} objects.
            * @see java.awt.Component#getGraphics
            * @see java.awt.Graphics#create
      @@ -431,8 +431,8 @@
            * The resulting rectangle covers an area that is
            * width + 1 pixels wide
            * by height + 1 pixels tall.  This method
      -     * uses the current Color exclusively and ignores
      -     * the current Paint.
      +     * uses the current {@code Color} exclusively and ignores
      +     * the current {@code Paint}.
            * @param x the x coordinate of the rectangle to be drawn.
            * @param y the y coordinate of the rectangle to be drawn.
            * @param width the width of the rectangle to be drawn.
      @@ -467,9 +467,9 @@
            * The edges of the rectangle are highlighted so that it appears
            * as if the edges were beveled and lit from the upper left corner.
            * The colors used for the highlighting effect and for filling are
      -     * determined from the current Color.  This method uses
      -     * the current Color exclusively and ignores the current
      -     * Paint.
      +     * determined from the current {@code Color}.  This method uses
      +     * the current {@code Color} exclusively and ignores the current
      +     * {@code Paint}.
            * @param x the x coordinate of the rectangle to be filled.
            * @param y the y coordinate of the rectangle to be filled.
            * @param       width the width of the rectangle to be filled.
      @@ -506,12 +506,12 @@
           }
       
           /**
      -     * Strokes the outline of a Shape using the settings of the
      -     * current Graphics2D context.  The rendering attributes
      -     * applied include the Clip, Transform,
      -     * Paint, Composite and
      -     * Stroke attributes.
      -     * @param s the Shape to be rendered
      +     * Strokes the outline of a {@code Shape} using the settings of the
      +     * current {@code Graphics2D} context.  The rendering attributes
      +     * applied include the {@code Clip}, {@code Transform},
      +     * {@code Paint}, {@code Composite} and
      +     * {@code Stroke} attributes.
      +     * @param s the {@code Shape} to be rendered
            * @see #setStroke
            * @see #setPaint
            * @see java.awt.Graphics#setColor
      @@ -527,22 +527,22 @@
            * Renders an image, applying a transform from image space into user space
            * before drawing.
            * The transformation from user space into device space is done with
      -     * the current Transform in the Graphics2D.
      +     * the current {@code Transform} in the {@code Graphics2D}.
            * The specified transformation is applied to the image before the
      -     * transform attribute in the Graphics2D context is applied.
      -     * The rendering attributes applied include the Clip,
      -     * Transform, and Composite attributes.
      +     * transform attribute in the {@code Graphics2D} context is applied.
      +     * The rendering attributes applied include the {@code Clip},
      +     * {@code Transform}, and {@code Composite} attributes.
            * Note that no rendering is done if the specified transform is
            * noninvertible.
            * @param img the specified image to be rendered.
      -     *            This method does nothing if img is null.
      +     *            This method does nothing if {@code img} is null.
            * @param xform the transformation from image space into user space
            * @param obs the {@link ImageObserver}
      -     * to be notified as more of the Image
      +     * to be notified as more of the {@code Image}
            * is converted
      -     * @return true if the Image is
      +     * @return {@code true} if the {@code Image} is
            * fully loaded and completely rendered, or if it's null;
      -     * false if the Image is still being loaded.
      +     * {@code false} if the {@code Image} is still being loaded.
            * @see #transform
            * @see #setTransform
            * @see #setComposite
      @@ -554,19 +554,19 @@
                                             ImageObserver obs);
       
           /**
      -     * Renders a BufferedImage that is
      +     * Renders a {@code BufferedImage} that is
            * filtered with a
            * {@link BufferedImageOp}.
      -     * The rendering attributes applied include the Clip,
      -     * Transform
      -     * and Composite attributes.  This is equivalent to:
      +     * The rendering attributes applied include the {@code Clip},
      +     * {@code Transform}
      +     * and {@code Composite} attributes.  This is equivalent to:
            * 
            * img1 = op.filter(img, null);
            * drawImage(img1, new AffineTransform(1f,0f,0f,1f,x,y), null);
            * 
      * @param op the filter to be applied to the image before rendering - * @param img the specified BufferedImage to be rendered. - * This method does nothing if img is null. + * @param img the specified {@code BufferedImage} to be rendered. + * This method does nothing if {@code img} is null. * @param x the x coordinate of the location in user space where * the upper left corner of the image is rendered * @param y the y coordinate of the location in user space where @@ -588,15 +588,15 @@ * applying a transform from image * space into user space before drawing. * The transformation from user space into device space is done with - * the current Transform in the Graphics2D. + * the current {@code Transform} in the {@code Graphics2D}. * The specified transformation is applied to the image before the - * transform attribute in the Graphics2D context is applied. - * The rendering attributes applied include the Clip, - * Transform, and Composite attributes. Note + * transform attribute in the {@code Graphics2D} context is applied. + * The rendering attributes applied include the {@code Clip}, + * {@code Transform}, and {@code Composite} attributes. Note * that no rendering is done if the specified transform is * noninvertible. * @param img the image to be rendered. This method does - * nothing if img is null. + * nothing if {@code img} is null. * @param xform the transformation from image space into user space * @see #transform * @see #setTransform @@ -612,24 +612,24 @@ * {@link RenderableImage}, * applying a transform from image space into user space before drawing. * The transformation from user space into device space is done with - * the current Transform in the Graphics2D. + * the current {@code Transform} in the {@code Graphics2D}. * The specified transformation is applied to the image before the - * transform attribute in the Graphics2D context is applied. - * The rendering attributes applied include the Clip, - * Transform, and Composite attributes. Note + * transform attribute in the {@code Graphics2D} context is applied. + * The rendering attributes applied include the {@code Clip}, + * {@code Transform}, and {@code Composite} attributes. Note * that no rendering is done if the specified transform is * noninvertible. *

      - * Rendering hints set on the Graphics2D object might - * be used in rendering the RenderableImage. + * Rendering hints set on the {@code Graphics2D} object might + * be used in rendering the {@code RenderableImage}. * If explicit control is required over specific hints recognized by a - * specific RenderableImage, or if knowledge of which hints - * are used is required, then a RenderedImage should be - * obtained directly from the RenderableImage + * specific {@code RenderableImage}, or if knowledge of which hints + * are used is required, then a {@code RenderedImage} should be + * obtained directly from the {@code RenderableImage} * and rendered using *{@link #drawRenderedImage(RenderedImage, AffineTransform) drawRenderedImage}. * @param img the image to be rendered. This method does - * nothing if img is null. + * nothing if {@code img} is null. * @param xform the transformation from image space into user space * @see #transform * @see #setTransform @@ -642,24 +642,24 @@ AffineTransform xform); /** - * Renders the text of the specified String, using the - * current text attribute state in the Graphics2D context. + * Renders the text of the specified {@code String}, using the + * current text attribute state in the {@code Graphics2D} context. * The baseline of the * first character is at position (xy) in * the User Space. - * The rendering attributes applied include the Clip, - * Transform, Paint, Font and - * Composite attributes. For characters in script + * The rendering attributes applied include the {@code Clip}, + * {@code Transform}, {@code Paint}, {@code Font} and + * {@code Composite} attributes. For characters in script * systems such as Hebrew and Arabic, the glyphs can be rendered from * right to left, in which case the coordinate supplied is the * location of the leftmost character on the baseline. * @param str the string to be rendered * @param x the x coordinate of the location where the - * String should be rendered + * {@code String} should be rendered * @param y the y coordinate of the location where the - * String should be rendered - * @throws NullPointerException if str is - * null + * {@code String} should be rendered + * @throws NullPointerException if {@code str} is + * {@code null} * @see java.awt.Graphics#drawBytes * @see java.awt.Graphics#drawChars * @since 1.0 @@ -667,23 +667,23 @@ public abstract void drawString(String str, int x, int y); /** - * Renders the text specified by the specified String, - * using the current text attribute state in the Graphics2D context. + * Renders the text specified by the specified {@code String}, + * using the current text attribute state in the {@code Graphics2D} context. * The baseline of the first character is at position * (xy) in the User Space. - * The rendering attributes applied include the Clip, - * Transform, Paint, Font and - * Composite attributes. For characters in script systems + * The rendering attributes applied include the {@code Clip}, + * {@code Transform}, {@code Paint}, {@code Font} and + * {@code Composite} attributes. For characters in script systems * such as Hebrew and Arabic, the glyphs can be rendered from right to * left, in which case the coordinate supplied is the location of the * leftmost character on the baseline. - * @param str the String to be rendered + * @param str the {@code String} to be rendered * @param x the x coordinate of the location where the - * String should be rendered + * {@code String} should be rendered * @param y the y coordinate of the location where the - * String should be rendered - * @throws NullPointerException if str is - * null + * {@code String} should be rendered + * @throws NullPointerException if {@code str} is + * {@code null} * @see #setPaint * @see java.awt.Graphics#setColor * @see java.awt.Graphics#setFont @@ -708,8 +708,8 @@ * rendered * @param y the y coordinate where the iterator's text is to be * rendered - * @throws NullPointerException if iterator is - * null + * @throws NullPointerException if {@code iterator} is + * {@code null} * @see #setPaint * @see java.awt.Graphics#setColor * @see #setTransform @@ -734,8 +734,8 @@ * rendered * @param y the y coordinate where the iterator's text is to be * rendered - * @throws NullPointerException if iterator is - * null + * @throws NullPointerException if {@code iterator} is + * {@code null} * @see #setPaint * @see java.awt.Graphics#setColor * @see #setTransform @@ -748,20 +748,20 @@ /** * Renders the text of the specified * {@link GlyphVector} using - * the Graphics2D context's rendering attributes. - * The rendering attributes applied include the Clip, - * Transform, Paint, and - * Composite attributes. The GlyphVector + * the {@code Graphics2D} context's rendering attributes. + * The rendering attributes applied include the {@code Clip}, + * {@code Transform}, {@code Paint}, and + * {@code Composite} attributes. The {@code GlyphVector} * specifies individual glyphs from a {@link Font}. - * The GlyphVector can also contain the glyph positions. + * The {@code GlyphVector} can also contain the glyph positions. * This is the fastest way to render a set of characters to the * screen. - * @param g the GlyphVector to be rendered + * @param g the {@code GlyphVector} to be rendered * @param x the x position in User Space where the glyphs should * be rendered * @param y the y position in User Space where the glyphs should * be rendered - * @throws NullPointerException if g is null. + * @throws NullPointerException if {@code g} is {@code null}. * * @see java.awt.Font#createGlyphVector * @see java.awt.font.GlyphVector @@ -774,11 +774,11 @@ public abstract void drawGlyphVector(GlyphVector g, float x, float y); /** - * Fills the interior of a Shape using the settings of the - * Graphics2D context. The rendering attributes applied - * include the Clip, Transform, - * Paint, and Composite. - * @param s the Shape to be filled + * Fills the interior of a {@code Shape} using the settings of the + * {@code Graphics2D} context. The rendering attributes applied + * include the {@code Clip}, {@code Transform}, + * {@code Paint}, and {@code Composite}. + * @param s the {@code Shape} to be filled * @see #setPaint * @see java.awt.Graphics#setColor * @see #transform @@ -790,25 +790,25 @@ public abstract void fill(Shape s); /** - * Checks whether or not the specified Shape intersects + * Checks whether or not the specified {@code Shape} intersects * the specified {@link Rectangle}, which is in device - * space. If onStroke is false, this method checks - * whether or not the interior of the specified Shape - * intersects the specified Rectangle. If - * onStroke is true, this method checks - * whether or not the Stroke of the specified - * Shape outline intersects the specified - * Rectangle. + * space. If {@code onStroke} is false, this method checks + * whether or not the interior of the specified {@code Shape} + * intersects the specified {@code Rectangle}. If + * {@code onStroke} is {@code true}, this method checks + * whether or not the {@code Stroke} of the specified + * {@code Shape} outline intersects the specified + * {@code Rectangle}. * The rendering attributes taken into account include the - * Clip, Transform, and Stroke + * {@code Clip}, {@code Transform}, and {@code Stroke} * attributes. * @param rect the area in device space to check for a hit - * @param s the Shape to check for a hit + * @param s the {@code Shape} to check for a hit * @param onStroke flag used to choose between testing the - * stroked or the filled shape. If the flag is true, the - * Stroke outline is tested. If the flag is - * false, the filled Shape is tested. - * @return true if there is a hit; false + * stroked or the filled shape. If the flag is {@code true}, the + * {@code Stroke} outline is tested. If the flag is + * {@code false}, the filled {@code Shape} is tested. + * @return {@code true} if there is a hit; {@code false} * otherwise. * @see #setStroke * @see #fill @@ -824,31 +824,31 @@ /** * Returns the device configuration associated with this - * Graphics2D. - * @return the device configuration of this Graphics2D. + * {@code Graphics2D}. + * @return the device configuration of this {@code Graphics2D}. */ public abstract GraphicsConfiguration getDeviceConfiguration(); /** - * Sets the Composite for the Graphics2D context. - * The Composite is used in all drawing methods such as - * drawImage, drawString, draw, - * and fill. It specifies how new pixels are to be combined + * Sets the {@code Composite} for the {@code Graphics2D} context. + * The {@code Composite} is used in all drawing methods such as + * {@code drawImage}, {@code drawString}, {@code draw}, + * and {@code fill}. It specifies how new pixels are to be combined * with the existing pixels on the graphics device during the rendering * process. - *

      If this Graphics2D context is drawing to a - * Component on the display screen and the - * Composite is a custom object rather than an - * instance of the AlphaComposite class, and if - * there is a security manager, its checkPermission - * method is called with an AWTPermission("readDisplayPixels") + *

      If this {@code Graphics2D} context is drawing to a + * {@code Component} on the display screen and the + * {@code Composite} is a custom object rather than an + * instance of the {@code AlphaComposite} class, and if + * there is a security manager, its {@code checkPermission} + * method is called with an {@code AWTPermission("readDisplayPixels")} * permission. * @throws SecurityException - * if a custom Composite object is being + * if a custom {@code Composite} object is being * used to render to the screen and a security manager - * is set and its checkPermission method + * is set and its {@code checkPermission} method * does not allow the operation. - * @param comp the Composite object to be used for rendering + * @param comp the {@code Composite} object to be used for rendering * @see java.awt.Graphics#setXORMode * @see java.awt.Graphics#setPaintMode * @see #getComposite @@ -859,13 +859,13 @@ public abstract void setComposite(Composite comp); /** - * Sets the Paint attribute for the - * Graphics2D context. Calling this method - * with a null Paint object does - * not have any effect on the current Paint attribute - * of this Graphics2D. - * @param paint the Paint object to be used to generate - * color during the rendering process, or null + * Sets the {@code Paint} attribute for the + * {@code Graphics2D} context. Calling this method + * with a {@code null Paint} object does + * not have any effect on the current {@code Paint} attribute + * of this {@code Graphics2D}. + * @param paint the {@code Paint} object to be used to generate + * color during the rendering process, or {@code null} * @see java.awt.Graphics#setColor * @see #getPaint * @see GradientPaint @@ -874,9 +874,9 @@ public abstract void setPaint( Paint paint ); /** - * Sets the Stroke for the Graphics2D context. - * @param s the Stroke object to be used to stroke a - * Shape during the rendering process + * Sets the {@code Stroke} for the {@code Graphics2D} context. + * @param s the {@code Stroke} object to be used to stroke a + * {@code Shape} during the rendering process * @see BasicStroke * @see #getStroke */ @@ -886,7 +886,7 @@ * Sets the value of a single preference for the rendering algorithms. * Hint categories include controls for rendering quality and overall * time/quality trade-off in the rendering process. Refer to the - * RenderingHints class for definitions of some common + * {@code RenderingHints} class for definitions of some common * keys and values. * @param hintKey the key of the hint to be set. * @param hintValue the value indicating preferences for the specified @@ -900,12 +900,12 @@ * Returns the value of a single preference for the rendering algorithms. * Hint categories include controls for rendering quality and overall * time/quality trade-off in the rendering process. Refer to the - * RenderingHints class for definitions of some common + * {@code RenderingHints} class for definitions of some common * keys and values. * @param hintKey the key corresponding to the hint to get. * @return an object representing the value for the specified hint key. * Some of the keys and their associated values are defined in the - * RenderingHints class. + * {@code RenderingHints} class. * @see RenderingHints * @see #setRenderingHint(RenderingHints.Key, Object) */ @@ -913,13 +913,13 @@ /** * Replaces the values of all preferences for the rendering - * algorithms with the specified hints. + * algorithms with the specified {@code hints}. * The existing values for all rendering hints are discarded and * the new set of known hints and values are initialized from the * specified {@link Map} object. * Hint categories include controls for rendering quality and * overall time/quality trade-off in the rendering process. - * Refer to the RenderingHints class for definitions of + * Refer to the {@code RenderingHints} class for definitions of * some common keys and values. * @param hints the rendering hints to be set * @see #getRenderingHints @@ -931,12 +931,12 @@ * Sets the values of an arbitrary number of preferences for the * rendering algorithms. * Only values for the rendering hints that are present in the - * specified Map object are modified. + * specified {@code Map} object are modified. * All other preferences not present in the specified * object are left unmodified. * Hint categories include controls for rendering quality and * overall time/quality trade-off in the rendering process. - * Refer to the RenderingHints class for definitions of + * Refer to the {@code RenderingHints} class for definitions of * some common keys and values. * @param hints the rendering hints to be set * @see RenderingHints @@ -949,9 +949,9 @@ * trade-off in the rendering process. * Returns all of the hint key/value pairs that were ever specified in * one operation. Refer to the - * RenderingHints class for definitions of some common + * {@code RenderingHints} class for definitions of some common * keys and values. - * @return a reference to an instance of RenderingHints + * @return a reference to an instance of {@code RenderingHints} * that contains the current preferences. * @see RenderingHints * @see #setRenderingHints(Map) @@ -959,11 +959,11 @@ public abstract RenderingHints getRenderingHints(); /** - * Translates the origin of the Graphics2D context to the + * Translates the origin of the {@code Graphics2D} context to the * point (xy) in the current coordinate system. - * Modifies the Graphics2D context so that its new origin + * Modifies the {@code Graphics2D} context so that its new origin * corresponds to the point (xy) in the - * Graphics2D context's former coordinate system. All + * {@code Graphics2D} context's former coordinate system. All * coordinates used in subsequent rendering operations on this graphics * context are relative to this new origin. * @param x the specified x coordinate @@ -974,12 +974,12 @@ /** * Concatenates the current - * Graphics2D Transform + * {@code Graphics2D Transform} * with a translation transform. * Subsequent rendering is translated by the specified * distance relative to the previous position. * This is equivalent to calling transform(T), where T is an - * AffineTransform represented by the following matrix: + * {@code AffineTransform} represented by the following matrix: *

            *          [   1    0    tx  ]
            *          [   0    1    ty  ]
      @@ -991,12 +991,12 @@
           public abstract void translate(double tx, double ty);
       
           /**
      -     * Concatenates the current Graphics2D
      -     * Transform with a rotation transform.
      +     * Concatenates the current {@code Graphics2D}
      +     * {@code Transform} with a rotation transform.
            * Subsequent rendering is rotated by the specified radians relative
            * to the previous origin.
      -     * This is equivalent to calling transform(R), where R is an
      -     * AffineTransform represented by the following matrix:
      +     * This is equivalent to calling {@code transform(R)}, where R is an
      +     * {@code AffineTransform} represented by the following matrix:
            * 
            *          [   cos(theta)    -sin(theta)    0   ]
            *          [   sin(theta)     cos(theta)    0   ]
      @@ -1009,8 +1009,8 @@
           public abstract void rotate(double theta);
       
           /**
      -     * Concatenates the current Graphics2D
      -     * Transform with a translated rotation
      +     * Concatenates the current {@code Graphics2D}
      +     * {@code Transform} with a translated rotation
            * transform.  Subsequent rendering is transformed by a transform
            * which is constructed by translating to the specified location,
            * rotating by the specified radians, and translating back by the same
      @@ -1030,12 +1030,12 @@
           public abstract void rotate(double theta, double x, double y);
       
           /**
      -     * Concatenates the current Graphics2D
      -     * Transform with a scaling transformation
      +     * Concatenates the current {@code Graphics2D}
      +     * {@code Transform} with a scaling transformation
            * Subsequent rendering is resized according to the specified scaling
            * factors relative to the previous scaling.
      -     * This is equivalent to calling transform(S), where S is an
      -     * AffineTransform represented by the following matrix:
      +     * This is equivalent to calling {@code transform(S)}, where S is an
      +     * {@code AffineTransform} represented by the following matrix:
            * 
            *          [   sx   0    0   ]
            *          [   0    sy   0   ]
      @@ -1051,12 +1051,12 @@
           public abstract void scale(double sx, double sy);
       
           /**
      -     * Concatenates the current Graphics2D
      -     * Transform with a shearing transform.
      +     * Concatenates the current {@code Graphics2D}
      +     * {@code Transform} with a shearing transform.
            * Subsequent renderings are sheared by the specified
            * multiplier relative to the previous position.
      -     * This is equivalent to calling transform(SH), where SH
      -     * is an AffineTransform represented by the following
      +     * This is equivalent to calling {@code transform(SH)}, where SH
      +     * is an {@code AffineTransform} represented by the following
            * matrix:
            * 
            *          [   1   shx   0   ]
      @@ -1071,37 +1071,37 @@
           public abstract void shear(double shx, double shy);
       
           /**
      -     * Composes an AffineTransform object with the
      -     * Transform in this Graphics2D according
      +     * Composes an {@code AffineTransform} object with the
      +     * {@code Transform} in this {@code Graphics2D} according
            * to the rule last-specified-first-applied.  If the current
      -     * Transform is Cx, the result of composition
      -     * with Tx is a new Transform Cx'.  Cx' becomes the
      -     * current Transform for this Graphics2D.
      -     * Transforming a point p by the updated Transform Cx' is
      +     * {@code Transform} is Cx, the result of composition
      +     * with Tx is a new {@code Transform} Cx'.  Cx' becomes the
      +     * current {@code Transform} for this {@code Graphics2D}.
      +     * Transforming a point p by the updated {@code Transform} Cx' is
            * equivalent to first transforming p by Tx and then transforming
      -     * the result by the original Transform Cx.  In other
      +     * the result by the original {@code Transform} Cx.  In other
            * words, Cx'(p) = Cx(Tx(p)).  A copy of the Tx is made, if necessary,
            * so further modifications to Tx do not affect rendering.
      -     * @param Tx the AffineTransform object to be composed with
      -     * the current Transform
      +     * @param Tx the {@code AffineTransform} object to be composed with
      +     * the current {@code Transform}
            * @see #setTransform
            * @see AffineTransform
            */
           public abstract void transform(AffineTransform Tx);
       
           /**
      -     * Overwrites the Transform in the Graphics2D context.
      +     * Overwrites the Transform in the {@code Graphics2D} context.
            * WARNING: This method should never be used to apply a new
            * coordinate transform on top of an existing transform because the
      -     * Graphics2D might already have a transform that is
      +     * {@code Graphics2D} might already have a transform that is
            * needed for other purposes, such as rendering Swing
            * components or applying a scaling transformation to adjust for the
            * resolution of a printer.
            * 

      To add a coordinate transform, use the - * transform, rotate, scale, - * or shear methods. The setTransform + * {@code transform}, {@code rotate}, {@code scale}, + * or {@code shear} methods. The {@code setTransform} * method is intended only for restoring the original - * Graphics2D transform after rendering, as shown in this + * {@code Graphics2D} transform after rendering, as shown in this * example: *

            * // Get the current transform
      @@ -1114,8 +1114,8 @@
            * g2d.setTransform(saveAT);
            * 
      * - * @param Tx the AffineTransform that was retrieved - * from the getTransform method + * @param Tx the {@code AffineTransform} that was retrieved + * from the {@code getTransform} method * @see #transform * @see #getTransform * @see AffineTransform @@ -1123,19 +1123,19 @@ public abstract void setTransform(AffineTransform Tx); /** - * Returns a copy of the current Transform in the - * Graphics2D context. - * @return the current AffineTransform in the - * Graphics2D context. + * Returns a copy of the current {@code Transform} in the + * {@code Graphics2D} context. + * @return the current {@code AffineTransform} in the + * {@code Graphics2D} context. * @see #transform * @see #setTransform */ public abstract AffineTransform getTransform(); /** - * Returns the current Paint of the - * Graphics2D context. - * @return the current Graphics2D Paint, + * Returns the current {@code Paint} of the + * {@code Graphics2D} context. + * @return the current {@code Graphics2D Paint}, * which defines a color or pattern. * @see #setPaint * @see java.awt.Graphics#setColor @@ -1143,27 +1143,27 @@ public abstract Paint getPaint(); /** - * Returns the current Composite in the - * Graphics2D context. - * @return the current Graphics2D Composite, + * Returns the current {@code Composite} in the + * {@code Graphics2D} context. + * @return the current {@code Graphics2D Composite}, * which defines a compositing style. * @see #setComposite */ public abstract Composite getComposite(); /** - * Sets the background color for the Graphics2D context. + * Sets the background color for the {@code Graphics2D} context. * The background color is used for clearing a region. - * When a Graphics2D is constructed for a - * Component, the background color is - * inherited from the Component. Setting the background color - * in the Graphics2D context only affects the subsequent - * clearRect calls and not the background color of the - * Component. To change the background - * of the Component, use appropriate methods of - * the Component. + * When a {@code Graphics2D} is constructed for a + * {@code Component}, the background color is + * inherited from the {@code Component}. Setting the background color + * in the {@code Graphics2D} context only affects the subsequent + * {@code clearRect} calls and not the background color of the + * {@code Component}. To change the background + * of the {@code Component}, use appropriate methods of + * the {@code Component}. * @param color the background color that is used in - * subsequent calls to clearRect + * subsequent calls to {@code clearRect} * @see #getBackground * @see java.awt.Graphics#clearRect */ @@ -1171,52 +1171,52 @@ /** * Returns the background color used for clearing a region. - * @return the current Graphics2D Color, + * @return the current {@code Graphics2D Color}, * which defines the background color. * @see #setBackground */ public abstract Color getBackground(); /** - * Returns the current Stroke in the - * Graphics2D context. - * @return the current Graphics2D Stroke, + * Returns the current {@code Stroke} in the + * {@code Graphics2D} context. + * @return the current {@code Graphics2D Stroke}, * which defines the line style. * @see #setStroke */ public abstract Stroke getStroke(); /** - * Intersects the current Clip with the interior of the - * specified Shape and sets the Clip to the - * resulting intersection. The specified Shape is - * transformed with the current Graphics2D - * Transform before being intersected with the current - * Clip. This method is used to make the current - * Clip smaller. - * To make the Clip larger, use setClip. + * Intersects the current {@code Clip} with the interior of the + * specified {@code Shape} and sets the {@code Clip} to the + * resulting intersection. The specified {@code Shape} is + * transformed with the current {@code Graphics2D} + * {@code Transform} before being intersected with the current + * {@code Clip}. This method is used to make the current + * {@code Clip} smaller. + * To make the {@code Clip} larger, use {@code setClip}. * The user clip modified by this method is independent of the * clipping associated with device bounds and visibility. If no clip has * previously been set, or if the clip has been cleared using - * {@link Graphics#setClip(Shape) setClip} with a null - * argument, the specified Shape becomes the new + * {@link Graphics#setClip(Shape) setClip} with a {@code null} + * argument, the specified {@code Shape} becomes the new * user clip. - * @param s the Shape to be intersected with the current - * Clip. If s is null, - * this method clears the current Clip. + * @param s the {@code Shape} to be intersected with the current + * {@code Clip}. If {@code s} is {@code null}, + * this method clears the current {@code Clip}. */ public abstract void clip(Shape s); /** - * Get the rendering context of the Font within this - * Graphics2D context. + * Get the rendering context of the {@code Font} within this + * {@code Graphics2D} context. * The {@link FontRenderContext} * encapsulates application hints such as anti-aliasing and * fractional metrics, as well as target device specific information * such as dots-per-inch. This information should be provided by the * application when using objects that perform typographical - * formatting, such as Font and - * TextLayout. This information should also be provided + * formatting, such as {@code Font} and + * {@code TextLayout}. This information should also be provided * by applications that perform their own layout and need accurate * measurements of various characteristics of glyphs such as advance * and line height when various rendering hints have been applied to --- old/src/java.desktop/share/classes/java/awt/GraphicsConfigTemplate.java 2015-10-04 22:52:41.581274244 +0400 +++ new/src/java.desktop/share/classes/java/awt/GraphicsConfigTemplate.java 2015-10-04 22:52:41.393274252 +0400 @@ -28,14 +28,14 @@ import java.io.*; /** - * The GraphicsConfigTemplate class is used to obtain a valid + * The {@code GraphicsConfigTemplate} class is used to obtain a valid * {@link GraphicsConfiguration}. A user instantiates one of these * objects and then sets all non-default attributes as desired. The * {@link GraphicsDevice#getBestConfiguration} method found in the * {@link GraphicsDevice} class is then called with this - * GraphicsConfigTemplate. A valid - * GraphicsConfiguration is returned that meets or exceeds - * what was requested in the GraphicsConfigTemplate. + * {@code GraphicsConfigTemplate}. A valid + * {@code GraphicsConfiguration} is returned that meets or exceeds + * what was requested in the {@code GraphicsConfigTemplate}. * @see GraphicsDevice * @see GraphicsConfiguration * @@ -56,15 +56,15 @@ /** * Value used for "Enum" (Integer) type. States that this - * feature is required for the GraphicsConfiguration + * feature is required for the {@code GraphicsConfiguration} * object. If this feature is not available, do not select the - * GraphicsConfiguration object. + * {@code GraphicsConfiguration} object. */ public static final int REQUIRED = 1; /** * Value used for "Enum" (Integer) type. States that this - * feature is desired for the GraphicsConfiguration + * feature is desired for the {@code GraphicsConfiguration} * object. A selection with this feature is preferred over a * selection that does not include this feature, although both * selections can be considered valid matches. @@ -74,7 +74,7 @@ /** * Value used for "Enum" (Integer) type. States that this * feature is not necessary for the selection of the - * GraphicsConfiguration object. A selection + * {@code GraphicsConfiguration} object. A selection * without this feature is preferred over a selection that * includes this feature since it is not used. */ @@ -82,10 +82,10 @@ /** * Returns the "best" configuration possible that passes the - * criteria defined in the GraphicsConfigTemplate. - * @param gc the array of GraphicsConfiguration + * criteria defined in the {@code GraphicsConfigTemplate}. + * @param gc the array of {@code GraphicsConfiguration} * objects to choose from. - * @return a GraphicsConfiguration object that is + * @return a {@code GraphicsConfiguration} object that is * the best configuration possible. * @see GraphicsConfiguration */ @@ -93,15 +93,15 @@ getBestConfiguration(GraphicsConfiguration[] gc); /** - * Returns a boolean indicating whether or - * not the specified GraphicsConfiguration can be + * Returns a {@code boolean} indicating whether or + * not the specified {@code GraphicsConfiguration} can be * used to create a drawing surface that supports the indicated * features. - * @param gc the GraphicsConfiguration object to test - * @return true if this - * GraphicsConfiguration object can be used to create + * @param gc the {@code GraphicsConfiguration} object to test + * @return {@code true} if this + * {@code GraphicsConfiguration} object can be used to create * surfaces that support the indicated features; - * false if the GraphicsConfiguration can + * {@code false} if the {@code GraphicsConfiguration} can * not be used to create a drawing surface usable by this Java(tm) * API. */ --- old/src/java.desktop/share/classes/java/awt/GraphicsConfiguration.java 2015-10-04 22:52:42.105274220 +0400 +++ new/src/java.desktop/share/classes/java/awt/GraphicsConfiguration.java 2015-10-04 22:52:41.917274229 +0400 @@ -34,23 +34,23 @@ import sun.awt.image.SunVolatileImage; /** - * The GraphicsConfiguration class describes the + * The {@code GraphicsConfiguration} class describes the * characteristics of a graphics destination such as a printer or monitor. - * There can be many GraphicsConfiguration objects associated + * There can be many {@code GraphicsConfiguration} objects associated * with a single graphics device, representing different drawing modes or * capabilities. The corresponding native structure will vary from platform * to platform. For example, on X11 windowing systems, - * each visual is a different GraphicsConfiguration. - * On Microsoft Windows, GraphicsConfigurations represent + * each visual is a different {@code GraphicsConfiguration}. + * On Microsoft Windows, {@code GraphicsConfiguration}s represent * PixelFormats available in the current resolution and color depth. *

      * In a virtual device multi-screen environment in which the desktop * area could span multiple physical screen devices, the bounds of the - * GraphicsConfiguration objects are relative to the + * {@code GraphicsConfiguration} objects are relative to the * virtual coordinate system. When setting the location of a * component, use {@link #getBounds() getBounds} to get the bounds of - * the desired GraphicsConfiguration and offset the location - * with the coordinates of the GraphicsConfiguration, + * the desired {@code GraphicsConfiguration} and offset the location + * with the coordinates of the {@code GraphicsConfiguration}, * as the following code sample illustrates: *

      * @@ -61,17 +61,17 @@ * *

      * To determine if your environment is a virtual device - * environment, call getBounds on all of the - * GraphicsConfiguration objects in your system. If + * environment, call {@code getBounds} on all of the + * {@code GraphicsConfiguration} objects in your system. If * any of the origins of the returned bounds is not (0, 0), * your environment is a virtual device environment. * *

      - * You can also use getBounds to determine the bounds - * of the virtual device. To do this, first call getBounds on all - * of the GraphicsConfiguration objects in your + * You can also use {@code getBounds} to determine the bounds + * of the virtual device. To do this, first call {@code getBounds} on all + * of the {@code GraphicsConfiguration} objects in your * system. Then calculate the union of all of the bounds returned - * from the calls to getBounds. The union is the + * from the calls to {@code getBounds}. The union is the * bounds of the virtual device. The following code sample * calculates the bounds of the virtual device. * @@ -125,24 +125,24 @@ /** * Returns the {@link GraphicsDevice} associated with this - * GraphicsConfiguration. - * @return a GraphicsDevice object that is - * associated with this GraphicsConfiguration. + * {@code GraphicsConfiguration}. + * @return a {@code GraphicsDevice} object that is + * associated with this {@code GraphicsConfiguration}. */ public abstract GraphicsDevice getDevice(); /** * Returns a {@link BufferedImage} with a data layout and color model - * compatible with this GraphicsConfiguration. This + * compatible with this {@code GraphicsConfiguration}. This * method has nothing to do with memory-mapping - * a device. The returned BufferedImage has + * a device. The returned {@code BufferedImage} has * a layout and color model that is closest to this native device * configuration and can therefore be optimally blitted to this * device. - * @param width the width of the returned BufferedImage - * @param height the height of the returned BufferedImage - * @return a BufferedImage whose data layout and color - * model is compatible with this GraphicsConfiguration. + * @param width the width of the returned {@code BufferedImage} + * @param height the height of the returned {@code BufferedImage} + * @return a {@code BufferedImage} whose data layout and color + * model is compatible with this {@code GraphicsConfiguration}. */ public BufferedImage createCompatibleImage(int width, int height) { ColorModel model = getColorModel(); @@ -153,18 +153,18 @@ } /** - * Returns a BufferedImage that supports the specified + * Returns a {@code BufferedImage} that supports the specified * transparency and has a data layout and color model - * compatible with this GraphicsConfiguration. This + * compatible with this {@code GraphicsConfiguration}. This * method has nothing to do with memory-mapping - * a device. The returned BufferedImage has a layout and + * a device. The returned {@code BufferedImage} has a layout and * color model that can be optimally blitted to a device - * with this GraphicsConfiguration. - * @param width the width of the returned BufferedImage - * @param height the height of the returned BufferedImage + * with this {@code GraphicsConfiguration}. + * @param width the width of the returned {@code BufferedImage} + * @param height the height of the returned {@code BufferedImage} * @param transparency the specified transparency mode - * @return a BufferedImage whose data layout and color - * model is compatible with this GraphicsConfiguration + * @return a {@code BufferedImage} whose data layout and color + * model is compatible with this {@code GraphicsConfiguration} * and also supports the specified transparency. * @throws IllegalArgumentException if the transparency is not a valid value * @see Transparency#OPAQUE @@ -190,15 +190,15 @@ /** * Returns a {@link VolatileImage} with a data layout and color model - * compatible with this GraphicsConfiguration. - * The returned VolatileImage + * compatible with this {@code GraphicsConfiguration}. + * The returned {@code VolatileImage} * may have data that is stored optimally for the underlying graphics * device and may therefore benefit from platform-specific rendering * acceleration. - * @param width the width of the returned VolatileImage - * @param height the height of the returned VolatileImage - * @return a VolatileImage whose data layout and color - * model is compatible with this GraphicsConfiguration. + * @param width the width of the returned {@code VolatileImage} + * @param height the height of the returned {@code VolatileImage} + * @return a {@code VolatileImage} whose data layout and color + * model is compatible with this {@code GraphicsConfiguration}. * @see Component#createVolatileImage(int, int) * @since 1.4 */ @@ -216,16 +216,16 @@ /** * Returns a {@link VolatileImage} with a data layout and color model - * compatible with this GraphicsConfiguration. - * The returned VolatileImage + * compatible with this {@code GraphicsConfiguration}. + * The returned {@code VolatileImage} * may have data that is stored optimally for the underlying graphics * device and may therefore benefit from platform-specific rendering * acceleration. - * @param width the width of the returned VolatileImage - * @param height the height of the returned VolatileImage + * @param width the width of the returned {@code VolatileImage} + * @param height the height of the returned {@code VolatileImage} * @param transparency the specified transparency mode - * @return a VolatileImage whose data layout and color - * model is compatible with this GraphicsConfiguration. + * @return a {@code VolatileImage} whose data layout and color + * model is compatible with this {@code GraphicsConfiguration}. * @throws IllegalArgumentException if the transparency is not a valid value * @see Transparency#OPAQUE * @see Transparency#BITMASK @@ -248,20 +248,20 @@ /** * Returns a {@link VolatileImage} with a data layout and color model - * compatible with this GraphicsConfiguration, using + * compatible with this {@code GraphicsConfiguration}, using * the specified image capabilities. - * If the caps parameter is null, it is effectively ignored + * If the {@code caps} parameter is null, it is effectively ignored * and this method will create a VolatileImage without regard to - * ImageCapabilities constraints. + * {@code ImageCapabilities} constraints. * - * The returned VolatileImage has + * The returned {@code VolatileImage} has * a layout and color model that is closest to this native device * configuration and can therefore be optimally blitted to this * device. - * @return a VolatileImage whose data layout and color - * model is compatible with this GraphicsConfiguration. - * @param width the width of the returned VolatileImage - * @param height the height of the returned VolatileImage + * @return a {@code VolatileImage} whose data layout and color + * model is compatible with this {@code GraphicsConfiguration}. + * @param width the width of the returned {@code VolatileImage} + * @param height the height of the returned {@code VolatileImage} * @param caps the image capabilities * @exception AWTException if the supplied image capabilities could not * be met by this graphics configuration @@ -276,22 +276,22 @@ /** * Returns a {@link VolatileImage} with a data layout and color model - * compatible with this GraphicsConfiguration, using + * compatible with this {@code GraphicsConfiguration}, using * the specified image capabilities and transparency value. - * If the caps parameter is null, it is effectively ignored + * If the {@code caps} parameter is null, it is effectively ignored * and this method will create a VolatileImage without regard to - * ImageCapabilities constraints. + * {@code ImageCapabilities} constraints. * - * The returned VolatileImage has + * The returned {@code VolatileImage} has * a layout and color model that is closest to this native device * configuration and can therefore be optimally blitted to this * device. - * @param width the width of the returned VolatileImage - * @param height the height of the returned VolatileImage + * @param width the width of the returned {@code VolatileImage} + * @param height the height of the returned {@code VolatileImage} * @param caps the image capabilities * @param transparency the specified transparency mode - * @return a VolatileImage whose data layout and color - * model is compatible with this GraphicsConfiguration. + * @return a {@code VolatileImage} whose data layout and color + * model is compatible with this {@code GraphicsConfiguration}. * @see Transparency#OPAQUE * @see Transparency#BITMASK * @see Transparency#TRANSLUCENT @@ -317,19 +317,19 @@ /** * Returns the {@link ColorModel} associated with this - * GraphicsConfiguration. - * @return a ColorModel object that is associated with - * this GraphicsConfiguration. + * {@code GraphicsConfiguration}. + * @return a {@code ColorModel} object that is associated with + * this {@code GraphicsConfiguration}. */ public abstract ColorModel getColorModel(); /** - * Returns the ColorModel associated with this - * GraphicsConfiguration that supports the specified + * Returns the {@code ColorModel} associated with this + * {@code GraphicsConfiguration} that supports the specified * transparency. * @param transparency the specified transparency mode - * @return a ColorModel object that is associated with - * this GraphicsConfiguration and supports the + * @return a {@code ColorModel} object that is associated with + * this {@code GraphicsConfiguration} and supports the * specified transparency or null if the transparency is not a valid * value. * @see Transparency#OPAQUE @@ -340,30 +340,30 @@ /** * Returns the default {@link AffineTransform} for this - * GraphicsConfiguration. This - * AffineTransform is typically the Identity transform - * for most normal screens. The default AffineTransform + * {@code GraphicsConfiguration}. This + * {@code AffineTransform} is typically the Identity transform + * for most normal screens. The default {@code AffineTransform} * maps coordinates onto the device such that 72 user space * coordinate units measure approximately 1 inch in device * space. The normalizing transform can be used to make * this mapping more exact. Coordinates in the coordinate space - * defined by the default AffineTransform for screen and + * defined by the default {@code AffineTransform} for screen and * printer devices have the origin in the upper left-hand corner of * the target region of the device, with X coordinates * increasing to the right and Y coordinates increasing downwards. * For image buffers not associated with a device, such as those not - * created by createCompatibleImage, - * this AffineTransform is the Identity transform. - * @return the default AffineTransform for this - * GraphicsConfiguration. + * created by {@code createCompatibleImage}, + * this {@code AffineTransform} is the Identity transform. + * @return the default {@code AffineTransform} for this + * {@code GraphicsConfiguration}. */ public abstract AffineTransform getDefaultTransform(); /** * - * Returns a AffineTransform that can be concatenated - * with the default AffineTransform - * of a GraphicsConfiguration so that 72 units in user + * Returns a {@code AffineTransform} that can be concatenated + * with the default {@code AffineTransform} + * of a {@code GraphicsConfiguration} so that 72 units in user * space equals 1 inch in device space. *

      * For a particular {@link Graphics2D}, g, one @@ -375,27 +375,27 @@ * g.setTransform(gc.getDefaultTransform()); * g.transform(gc.getNormalizingTransform()); *

      - * Note that sometimes this AffineTransform is identity, + * Note that sometimes this {@code AffineTransform} is identity, * such as for printers or metafile output, and that this - * AffineTransform is only as accurate as the information + * {@code AffineTransform} is only as accurate as the information * supplied by the underlying system. For image buffers not * associated with a device, such as those not created by - * createCompatibleImage, this - * AffineTransform is the Identity transform + * {@code createCompatibleImage}, this + * {@code AffineTransform} is the Identity transform * since there is no valid distance measurement. - * @return an AffineTransform to concatenate to the - * default AffineTransform so that 72 units in user + * @return an {@code AffineTransform} to concatenate to the + * default {@code AffineTransform} so that 72 units in user * space is mapped to 1 inch in device space. */ public abstract AffineTransform getNormalizingTransform(); /** - * Returns the bounds of the GraphicsConfiguration + * Returns the bounds of the {@code GraphicsConfiguration} * in the device coordinates. In a multi-screen environment * with a virtual device, the bounds can have negative X * or Y origins. * @return the bounds of the area covered by this - * GraphicsConfiguration. + * {@code GraphicsConfiguration}. * @since 1.3 */ public abstract Rectangle getBounds(); @@ -408,7 +408,7 @@ /** * Returns the buffering capabilities of this - * GraphicsConfiguration. + * {@code GraphicsConfiguration}. * @return the buffering capabilities of this graphics * configuration object * @since 1.4 @@ -423,7 +423,7 @@ /** * Returns the image capabilities of this - * GraphicsConfiguration. + * {@code GraphicsConfiguration}. * @return the image capabilities of this graphics * configuration object * @since 1.4 --- old/src/java.desktop/share/classes/java/awt/GraphicsDevice.java 2015-10-04 22:52:42.637274196 +0400 +++ new/src/java.desktop/share/classes/java/awt/GraphicsDevice.java 2015-10-04 22:52:42.449274205 +0400 @@ -33,19 +33,19 @@ import sun.awt.SunToolkit; /** - * The GraphicsDevice class describes the graphics devices + * The {@code GraphicsDevice} class describes the graphics devices * that might be available in a particular graphics environment. These * include screen and printer devices. Note that there can be many screens * and many printers in an instance of {@link GraphicsEnvironment}. Each * graphics device has one or more {@link GraphicsConfiguration} objects * associated with it. These objects specify the different configurations - * in which the GraphicsDevice can be used. + * in which the {@code GraphicsDevice} can be used. *

      - * In a multi-screen environment, the GraphicsConfiguration + * In a multi-screen environment, the {@code GraphicsConfiguration} * objects can be used to render components on multiple screens. The - * following code sample demonstrates how to create a JFrame - * object for each GraphicsConfiguration on each screen - * device in the GraphicsEnvironment: + * following code sample demonstrates how to create a {@code JFrame} + * object for each {@code GraphicsConfiguration} on each screen + * device in the {@code GraphicsEnvironment}: *

      {@code
        *   GraphicsEnvironment ge = GraphicsEnvironment.
        *   getLocalGraphicsEnvironment();
      @@ -142,8 +142,8 @@
           }
       
           /**
      -     * Returns the type of this GraphicsDevice.
      -     * @return the type of this GraphicsDevice, which can
      +     * Returns the type of this {@code GraphicsDevice}.
      +     * @return the type of this {@code GraphicsDevice}, which can
            * either be TYPE_RASTER_SCREEN, TYPE_PRINTER or TYPE_IMAGE_BUFFER.
            * @see #TYPE_RASTER_SCREEN
            * @see #TYPE_PRINTER
      @@ -153,52 +153,52 @@
       
           /**
            * Returns the identification string associated with this
      -     * GraphicsDevice.
      +     * {@code GraphicsDevice}.
            * 

      * A particular program might use more than one - * GraphicsDevice in a GraphicsEnvironment. - * This method returns a String identifying a - * particular GraphicsDevice in the local - * GraphicsEnvironment. Although there is - * no public method to set this String, a programmer can - * use the String for debugging purposes. Vendors of + * {@code GraphicsDevice} in a {@code GraphicsEnvironment}. + * This method returns a {@code String} identifying a + * particular {@code GraphicsDevice} in the local + * {@code GraphicsEnvironment}. Although there is + * no public method to set this {@code String}, a programmer can + * use the {@code String} for debugging purposes. Vendors of * the Java™ Runtime Environment can - * format the return value of the String. To determine - * how to interpret the value of the String, contact the + * format the return value of the {@code String}. To determine + * how to interpret the value of the {@code String}, contact the * vendor of your Java Runtime. To find out who the vendor is, from * your program, call the * {@link System#getProperty(String) getProperty} method of the * System class with "java.vendor". - * @return a String that is the identification - * of this GraphicsDevice. + * @return a {@code String} that is the identification + * of this {@code GraphicsDevice}. */ public abstract String getIDstring(); /** - * Returns all of the GraphicsConfiguration - * objects associated with this GraphicsDevice. - * @return an array of GraphicsConfiguration + * Returns all of the {@code GraphicsConfiguration} + * objects associated with this {@code GraphicsDevice}. + * @return an array of {@code GraphicsConfiguration} * objects that are associated with this - * GraphicsDevice. + * {@code GraphicsDevice}. */ public abstract GraphicsConfiguration[] getConfigurations(); /** - * Returns the default GraphicsConfiguration - * associated with this GraphicsDevice. - * @return the default GraphicsConfiguration - * of this GraphicsDevice. + * Returns the default {@code GraphicsConfiguration} + * associated with this {@code GraphicsDevice}. + * @return the default {@code GraphicsConfiguration} + * of this {@code GraphicsDevice}. */ public abstract GraphicsConfiguration getDefaultConfiguration(); /** * Returns the "best" configuration possible that passes the * criteria defined in the {@link GraphicsConfigTemplate}. - * @param gct the GraphicsConfigTemplate object - * used to obtain a valid GraphicsConfiguration - * @return a GraphicsConfiguration that passes + * @param gct the {@code GraphicsConfigTemplate} object + * used to obtain a valid {@code GraphicsConfiguration} + * @return a {@code GraphicsConfiguration} that passes * the criteria defined in the specified - * GraphicsConfigTemplate. + * {@code GraphicsConfigTemplate}. * @see GraphicsConfigTemplate */ public GraphicsConfiguration @@ -208,12 +208,12 @@ } /** - * Returns true if this GraphicsDevice + * Returns {@code true} if this {@code GraphicsDevice} * supports full-screen exclusive mode. * If a SecurityManager is installed, its - * checkPermission method will be called - * with AWTPermission("fullScreenExclusive"). - * isFullScreenSupported returns true only if + * {@code checkPermission} method will be called + * with {@code AWTPermission("fullScreenExclusive")}. + * {@code isFullScreenSupported} returns true only if * that permission is granted. * @return whether full-screen exclusive mode is available for * this graphics device @@ -227,8 +227,8 @@ /** * Enter full-screen mode, or return to windowed mode. The entered * full-screen mode may be either exclusive or simulated. Exclusive - * mode is only available if isFullScreenSupported - * returns true. + * mode is only available if {@code isFullScreenSupported} + * returns {@code true}. *

      * Exclusive mode implies: *

        @@ -239,7 +239,7 @@ * will cause the existing full-screen window to * return to windowed mode. *
      • Input method windows are disabled. It is advisable to call - * Component.enableInputMethods(false) to make a component + * {@code Component.enableInputMethods(false)} to make a component * a non-client of the input method framework. *
      *

      @@ -341,10 +341,10 @@ } /** - * Returns the Window object representing the + * Returns the {@code Window} object representing the * full-screen window if the device is in full-screen mode. * - * @return the full-screen window, or null if the device is + * @return the full-screen window, or {@code null} if the device is * not in full-screen mode. * @see #setFullScreenWindow(Window) * @since 1.4 @@ -362,7 +362,7 @@ } /** - * Returns true if this GraphicsDevice + * Returns {@code true} if this {@code GraphicsDevice} * supports low-level display changes. * On some platforms low-level display changes may only be allowed in * full-screen exclusive mode (i.e., if {@link #isFullScreenSupported()} @@ -420,11 +420,11 @@ *

      * * @param dm The new display mode of this graphics device. - * @exception IllegalArgumentException if the DisplayMode - * supplied is null, or is not available in the array returned - * by getDisplayModes + * @exception IllegalArgumentException if the {@code DisplayMode} + * supplied is {@code null}, or is not available in the array returned + * by {@code getDisplayModes} * @exception UnsupportedOperationException if - * isDisplayChangeSupported returns false + * {@code isDisplayChangeSupported} returns {@code false} * @see #getDisplayMode * @see #getDisplayModes * @see #isDisplayChangeSupported @@ -436,7 +436,7 @@ /** * Returns the current display mode of this - * GraphicsDevice. + * {@code GraphicsDevice}. * The returned display mode is allowed to have a refresh rate * {@link DisplayMode#REFRESH_RATE_UNKNOWN} if it is indeterminate. * Likewise, the returned display mode is allowed to have a bit depth @@ -455,7 +455,7 @@ /** * Returns all display modes available for this - * GraphicsDevice. + * {@code GraphicsDevice}. * The returned display modes are allowed to have a refresh rate * {@link DisplayMode#REFRESH_RATE_UNKNOWN} if it is indeterminate. * Likewise, the returned display modes are allowed to have a bit depth --- old/src/java.desktop/share/classes/java/awt/GraphicsEnvironment.java 2015-10-04 22:52:43.165274173 +0400 +++ new/src/java.desktop/share/classes/java/awt/GraphicsEnvironment.java 2015-10-04 22:52:42.977274181 +0400 @@ -39,16 +39,16 @@ /** * - * The GraphicsEnvironment class describes the collection + * The {@code GraphicsEnvironment} class describes the collection * of {@link GraphicsDevice} objects and {@link java.awt.Font} objects * available to a Java(tm) application on a particular platform. - * The resources in this GraphicsEnvironment might be local - * or on a remote machine. GraphicsDevice objects can be + * The resources in this {@code GraphicsEnvironment} might be local + * or on a remote machine. {@code GraphicsDevice} objects can be * screens, printers or image buffers and are the destination of - * {@link Graphics2D} drawing methods. Each GraphicsDevice + * {@link Graphics2D} drawing methods. Each {@code GraphicsDevice} * has a number of {@link GraphicsConfiguration} objects associated with * it. These objects specify the different configurations in which the - * GraphicsDevice can be used. + * {@code GraphicsDevice} can be used. * @see GraphicsDevice * @see GraphicsConfiguration */ @@ -74,8 +74,8 @@ } /** - * Returns the local GraphicsEnvironment. - * @return the local GraphicsEnvironment + * Returns the local {@code GraphicsEnvironment}. + * @return the local {@code GraphicsEnvironment} */ public static synchronized GraphicsEnvironment getLocalGraphicsEnvironment() { if (localEnv == null) { @@ -132,8 +132,8 @@ * a HeadlessException is thrown from areas of the Toolkit * and GraphicsEnvironment that are dependent on a display, * keyboard, or mouse. - * @return true if this environment cannot support - * a display, keyboard, and mouse; false + * @return {@code true} if this environment cannot support + * a display, keyboard, and mouse; {@code false} * otherwise * @see java.awt.HeadlessException * @since 1.4 @@ -209,11 +209,11 @@ /** * Returns whether or not a display, keyboard, and mouse can be * supported in this graphics environment. If this returns true, - * HeadlessException will be thrown from areas of the + * {@code HeadlessException} will be thrown from areas of the * graphics environment that are dependent on a display, keyboard, or * mouse. - * @return true if a display, keyboard, and mouse - * can be supported in this environment; false + * @return {@code true} if a display, keyboard, and mouse + * can be supported in this environment; {@code false} * otherwise * @see java.awt.HeadlessException * @see #isHeadless @@ -226,9 +226,9 @@ } /** - * Returns an array of all of the screen GraphicsDevice + * Returns an array of all of the screen {@code GraphicsDevice} * objects. - * @return an array containing all the GraphicsDevice + * @return an array containing all the {@code GraphicsDevice} * objects that represent screen devices * @exception HeadlessException if isHeadless() returns true * @see #isHeadless() @@ -237,8 +237,8 @@ throws HeadlessException; /** - * Returns the default screen GraphicsDevice. - * @return the GraphicsDevice that represents the + * Returns the default screen {@code GraphicsDevice}. + * @return the {@code GraphicsDevice} that represents the * default screen device * @exception HeadlessException if isHeadless() returns true * @see #isHeadless() @@ -247,35 +247,35 @@ throws HeadlessException; /** - * Returns a Graphics2D object for rendering into the + * Returns a {@code Graphics2D} object for rendering into the * specified {@link BufferedImage}. - * @param img the specified BufferedImage - * @return a Graphics2D to be used for rendering into - * the specified BufferedImage - * @throws NullPointerException if img is null + * @param img the specified {@code BufferedImage} + * @return a {@code Graphics2D} to be used for rendering into + * the specified {@code BufferedImage} + * @throws NullPointerException if {@code img} is null */ public abstract Graphics2D createGraphics(BufferedImage img); /** * Returns an array containing a one-point size instance of all fonts - * available in this GraphicsEnvironment. Typical usage + * available in this {@code GraphicsEnvironment}. Typical usage * would be to allow a user to select a particular font. Then, the * application can size the font and set various font attributes by - * calling the deriveFont method on the chosen instance. + * calling the {@code deriveFont} method on the chosen instance. *

      * This method provides for the application the most precise control - * over which Font instance is used to render text. - * If a font in this GraphicsEnvironment has multiple + * over which {@code Font} instance is used to render text. + * If a font in this {@code GraphicsEnvironment} has multiple * programmable variations, only one - * instance of that Font is returned in the array, and + * instance of that {@code Font} is returned in the array, and * other variations must be derived by the application. *

      * If a font in this environment has multiple programmable variations, * such as Multiple-Master fonts, only one instance of that font is - * returned in the Font array. The other variations + * returned in the {@code Font} array. The other variations * must be derived by the application. * - * @return an array of Font objects + * @return an array of {@code Font} objects * @see #getAvailableFontFamilyNames * @see java.awt.Font * @see java.awt.Font#deriveFont @@ -286,8 +286,8 @@ /** * Returns an array containing the names of all font families in this - * GraphicsEnvironment localized for the default locale, - * as returned by Locale.getDefault(). + * {@code GraphicsEnvironment} localized for the default locale, + * as returned by {@code Locale.getDefault()}. *

      * Typical usage would be for presentation to a user for selection of * a particular family name. An application can then specify this name @@ -295,7 +295,7 @@ * italic, giving the font system flexibility in choosing its own best * match among multiple fonts in the same font family. * - * @return an array of String containing font family names + * @return an array of {@code String} containing font family names * localized for the default locale, or a suitable alternative * name if no name exists for this locale. * @see #getAllFonts @@ -307,7 +307,7 @@ /** * Returns an array containing the names of all font families in this - * GraphicsEnvironment localized for the specified locale. + * {@code GraphicsEnvironment} localized for the specified locale. *

      * Typical usage would be for presentation to a user for selection of * a particular family name. An application can then specify this name @@ -317,10 +317,10 @@ * * @param l a {@link Locale} object that represents a * particular geographical, political, or cultural region. - * Specifying null is equivalent to - * specifying Locale.getDefault(). - * @return an array of String containing font family names - * localized for the specified Locale, or a + * Specifying {@code null} is equivalent to + * specifying {@code Locale.getDefault()}. + * @return an array of {@code String} containing font family names + * localized for the specified {@code Locale}, or a * suitable alternative name if no name exists for the specified locale. * @see #getAllFonts * @see java.awt.Font @@ -330,24 +330,24 @@ public abstract String[] getAvailableFontFamilyNames(Locale l); /** - * Registers a created Fontin this - * GraphicsEnvironment. + * Registers a created {@code Font} in this + * {@code GraphicsEnvironment}. * A created font is one that was returned from calling * {@link Font#createFont}, or derived from a created font by * calling {@link Font#deriveFont}. * After calling this method for such a font, it is available to - * be used in constructing new Fonts by name or family name, + * be used in constructing new {@code Font}s by name or family name, * and is enumerated by {@link #getAvailableFontFamilyNames} and * {@link #getAllFonts} within the execution context of this * application or applet. This means applets cannot register fonts in * a way that they are visible to other applets. *

      * Reasons that this method might not register the font and therefore - * return false are: + * return {@code false} are: *

        - *
      • The font is not a created Font. - *
      • The font conflicts with a non-created Font already - * in this GraphicsEnvironment. For example if the name + *
      • The font is not a created {@code Font}. + *
      • The font conflicts with a non-created {@code Font} already + * in this {@code GraphicsEnvironment}. For example if the name * is that of a system font, or a logical font as described in the * documentation of the {@link Font} class. It is implementation dependent * whether a font may also conflict if it has the same family name @@ -357,9 +357,9 @@ *
      * * @param font the font to be registered - * @return true if the font is successfully - * registered in this GraphicsEnvironment. - * @throws NullPointerException if font is null + * @return true if the {@code font} is successfully + * registered in this {@code GraphicsEnvironment}. + * @throws NullPointerException if {@code font} is null * @since 1.6 */ public boolean registerFont(Font font) { @@ -444,8 +444,8 @@ * entire display area. *

      * To get the usable bounds of a single display, use - * GraphicsConfiguration.getBounds() and - * Toolkit.getScreenInsets(). + * {@code GraphicsConfiguration.getBounds()} and + * {@code Toolkit.getScreenInsets()}. * @return the maximum bounds for centered Windows * * @exception HeadlessException if isHeadless() returns true --- old/src/java.desktop/share/classes/java/awt/GridBagConstraints.java 2015-10-04 22:52:44.221274125 +0400 +++ new/src/java.desktop/share/classes/java/awt/GridBagConstraints.java 2015-10-04 22:52:43.961274137 +0400 @@ -25,9 +25,9 @@ package java.awt; /** - * The GridBagConstraints class specifies constraints + * The {@code GridBagConstraints} class specifies constraints * for components that are laid out using the - * GridBagLayout class. + * {@code GridBagLayout} class. * * @author Doug Stein * @author Bill Spitzak (orignial NeWS & OLIT implementation) @@ -38,9 +38,9 @@ /** * Specifies that this component is the next-to-last component in its - * column or row (gridwidth, gridheight), + * column or row ({@code gridwidth}, {@code gridheight}), * or that this component be placed next to the previously added - * component (gridx, gridy). + * component ({@code gridx}, {@code gridy}). * @see java.awt.GridBagConstraints#gridwidth * @see java.awt.GridBagConstraints#gridheight * @see java.awt.GridBagConstraints#gridx @@ -194,7 +194,7 @@ public static final int LAST_LINE_END = 26; /** - * Possible value for the anchor field. Specifies + * Possible value for the {@code anchor} field. Specifies * that the component should be horizontally centered and * vertically aligned along the baseline of the prevailing row. * If the component does not have a baseline it will be vertically @@ -205,7 +205,7 @@ public static final int BASELINE = 0x100; /** - * Possible value for the anchor field. Specifies + * Possible value for the {@code anchor} field. Specifies * that the component should be horizontally placed along the * leading edge. For components with a left-to-right orientation, * the leading edge is the left edge. Vertically the component is @@ -218,7 +218,7 @@ public static final int BASELINE_LEADING = 0x200; /** - * Possible value for the anchor field. Specifies + * Possible value for the {@code anchor} field. Specifies * that the component should be horizontally placed along the * trailing edge. For components with a left-to-right * orientation, the trailing edge is the right edge. Vertically @@ -231,7 +231,7 @@ public static final int BASELINE_TRAILING = 0x300; /** - * Possible value for the anchor field. Specifies + * Possible value for the {@code anchor} field. Specifies * that the component should be horizontally centered. Vertically * the component is positioned so that its bottom edge touches * the baseline of the starting row. If the starting row does not @@ -242,7 +242,7 @@ public static final int ABOVE_BASELINE = 0x400; /** - * Possible value for the anchor field. Specifies + * Possible value for the {@code anchor} field. Specifies * that the component should be horizontally placed along the * leading edge. For components with a left-to-right orientation, * the leading edge is the left edge. Vertically the component is @@ -255,7 +255,7 @@ public static final int ABOVE_BASELINE_LEADING = 0x500; /** - * Possible value for the anchor field. Specifies + * Possible value for the {@code anchor} field. Specifies * that the component should be horizontally placed along the * trailing edge. For components with a left-to-right * orientation, the trailing edge is the right edge. Vertically @@ -268,7 +268,7 @@ public static final int ABOVE_BASELINE_TRAILING = 0x600; /** - * Possible value for the anchor field. Specifies + * Possible value for the {@code anchor} field. Specifies * that the component should be horizontally centered. Vertically * the component is positioned so that its top edge touches the * baseline of the starting row. If the starting row does not @@ -279,7 +279,7 @@ public static final int BELOW_BASELINE = 0x700; /** - * Possible value for the anchor field. Specifies + * Possible value for the {@code anchor} field. Specifies * that the component should be horizontally placed along the * leading edge. For components with a left-to-right orientation, * the leading edge is the left edge. Vertically the component is @@ -292,7 +292,7 @@ public static final int BELOW_BASELINE_LEADING = 0x800; /** - * Possible value for the anchor field. Specifies + * Possible value for the {@code anchor} field. Specifies * that the component should be horizontally placed along the * trailing edge. For components with a left-to-right * orientation, the trailing edge is the right edge. Vertically @@ -306,17 +306,17 @@ /** * Specifies the cell containing the leading edge of the component's - * display area, where the first cell in a row has gridx=0. + * display area, where the first cell in a row has {@code gridx=0}. * The leading edge of a component's display area is its left edge for * a horizontal, left-to-right container and its right edge for a * horizontal, right-to-left container. * The value - * RELATIVE specifies that the component be placed + * {@code RELATIVE} specifies that the component be placed * immediately following the component that was added to the container * just before this component was added. *

      - * The default value is RELATIVE. - * gridx should be a non-negative value. + * The default value is {@code RELATIVE}. + * {@code gridx} should be a non-negative value. * @serial * @see #clone() * @see java.awt.GridBagConstraints#gridy @@ -326,13 +326,13 @@ /** * Specifies the cell at the top of the component's display area, - * where the topmost cell has gridy=0. The value - * RELATIVE specifies that the component be placed just + * where the topmost cell has {@code gridy=0}. The value + * {@code RELATIVE} specifies that the component be placed just * below the component that was added to the container just before * this component was added. *

      - * The default value is RELATIVE. - * gridy should be a non-negative value. + * The default value is {@code RELATIVE}. + * {@code gridy} should be a non-negative value. * @serial * @see #clone() * @see java.awt.GridBagConstraints#gridx @@ -343,14 +343,14 @@ * Specifies the number of cells in a row for the component's * display area. *

      - * Use REMAINDER to specify that the component's - * display area will be from gridx to the last + * Use {@code REMAINDER} to specify that the component's + * display area will be from {@code gridx} to the last * cell in the row. - * Use RELATIVE to specify that the component's - * display area will be from gridx to the next + * Use {@code RELATIVE} to specify that the component's + * display area will be from {@code gridx} to the next * to the last one in its row. *

      - * gridwidth should be non-negative and the default + * {@code gridwidth} should be non-negative and the default * value is 1. * @serial * @see #clone() @@ -362,14 +362,14 @@ * Specifies the number of cells in a column for the component's * display area. *

      - * Use REMAINDER to specify that the component's - * display area will be from gridy to the last + * Use {@code REMAINDER} to specify that the component's + * display area will be from {@code gridy} to the last * cell in the column. - * Use RELATIVE to specify that the component's - * display area will be from gridy to the next + * Use {@code RELATIVE} to specify that the component's + * display area will be from {@code gridy} to the next * to the last one in its column. *

      - * gridheight should be a non-negative value and the + * {@code gridheight} should be a non-negative value and the * default value is 1. * @serial * @see #clone() @@ -381,7 +381,7 @@ * Specifies how to distribute extra horizontal space. *

      * The grid bag layout manager calculates the weight of a column to - * be the maximum weightx of all the components in a + * be the maximum {@code weightx} of all the components in a * column. If the resulting layout is smaller horizontally than the area * it needs to fill, the extra space is distributed to each column in * proportion to its weight. A column that has a weight of zero receives @@ -390,8 +390,8 @@ * If all the weights are zero, all the extra space appears between * the grids of the cell and the left and right edges. *

      - * The default value of this field is 0. - * weightx should be a non-negative value. + * The default value of this field is {@code 0}. + * {@code weightx} should be a non-negative value. * @serial * @see #clone() * @see java.awt.GridBagConstraints#weighty @@ -402,7 +402,7 @@ * Specifies how to distribute extra vertical space. *

      * The grid bag layout manager calculates the weight of a row to be - * the maximum weighty of all the components in a row. + * the maximum {@code weighty} of all the components in a row. * If the resulting layout is smaller vertically than the area it * needs to fill, the extra space is distributed to each row in * proportion to its weight. A row that has a weight of zero receives no @@ -411,8 +411,8 @@ * If all the weights are zero, all the extra space appears between * the grids of the cell and the top and bottom edges. *

      - * The default value of this field is 0. - * weighty should be a non-negative value. + * The default value of this field is {@code 0}. + * {@code weighty} should be a non-negative value. * @serial * @see #clone() * @see java.awt.GridBagConstraints#weightx @@ -429,22 +429,22 @@ * orientation property, baseline relative values are interpreted * relative to the baseline and absolute values are not. The * absolute values are: - * CENTER, NORTH, NORTHEAST, - * EAST, SOUTHEAST, SOUTH, - * SOUTHWEST, WEST, and NORTHWEST. - * The orientation relative values are: PAGE_START, - * PAGE_END, - * LINE_START, LINE_END, - * FIRST_LINE_START, FIRST_LINE_END, - * LAST_LINE_START and LAST_LINE_END. The + * {@code CENTER}, {@code NORTH}, {@code NORTHEAST}, + * {@code EAST}, {@code SOUTHEAST}, {@code SOUTH}, + * {@code SOUTHWEST}, {@code WEST}, and {@code NORTHWEST}. + * The orientation relative values are: {@code PAGE_START}, + * {@code PAGE_END}, + * {@code LINE_START}, {@code LINE_END}, + * {@code FIRST_LINE_START}, {@code FIRST_LINE_END}, + * {@code LAST_LINE_START} and {@code LAST_LINE_END}. The * baseline relative values are: - * BASELINE, BASELINE_LEADING, - * BASELINE_TRAILING, - * ABOVE_BASELINE, ABOVE_BASELINE_LEADING, - * ABOVE_BASELINE_TRAILING, - * BELOW_BASELINE, BELOW_BASELINE_LEADING, - * and BELOW_BASELINE_TRAILING. - * The default value is CENTER. + * {@code BASELINE}, {@code BASELINE_LEADING}, + * {@code BASELINE_TRAILING}, + * {@code ABOVE_BASELINE}, {@code ABOVE_BASELINE_LEADING}, + * {@code ABOVE_BASELINE_TRAILING}, + * {@code BELOW_BASELINE}, {@code BELOW_BASELINE_LEADING}, + * and {@code BELOW_BASELINE_TRAILING}. + * The default value is {@code CENTER}. * @serial * @see #clone() * @see java.awt.ComponentOrientation @@ -456,23 +456,23 @@ * than the component's requested size. It determines whether to * resize the component, and if so, how. *

      - * The following values are valid for fill: + * The following values are valid for {@code fill}: * *

        *
      • - * NONE: Do not resize the component. + * {@code NONE}: Do not resize the component. *
      • - * HORIZONTAL: Make the component wide enough to fill + * {@code HORIZONTAL}: Make the component wide enough to fill * its display area horizontally, but do not change its height. *
      • - * VERTICAL: Make the component tall enough to fill its + * {@code VERTICAL}: Make the component tall enough to fill its * display area vertically, but do not change its width. *
      • - * BOTH: Make the component fill its display area + * {@code BOTH}: Make the component fill its display area * entirely. *
      *

      - * The default value is NONE. + * The default value is {@code NONE}. * @serial * @see #clone() */ @@ -483,7 +483,7 @@ * minimum amount of space between the component and the edges of its * display area. *

      - * The default value is new Insets(0, 0, 0, 0). + * The default value is {@code new Insets(0, 0, 0, 0)}. * @serial * @see #clone() */ @@ -493,9 +493,9 @@ * This field specifies the internal padding of the component, how much * space to add to the minimum width of the component. The width of * the component is at least its minimum width plus - * ipadx pixels. + * {@code ipadx} pixels. *

      - * The default value is 0. + * The default value is {@code 0}. * @serial * @see #clone() * @see java.awt.GridBagConstraints#ipady @@ -506,7 +506,7 @@ * This field specifies the internal padding, that is, how much * space to add to the minimum height of the component. The height of * the component is at least its minimum height plus - * ipady pixels. + * {@code ipady} pixels. *

      * The default value is 0. * @serial @@ -537,14 +537,14 @@ int tempHeight; /** * The minimum width of the component. It is used to calculate - * ipady, where the default will be 0. + * {@code ipady}, where the default will be 0. * @serial * @see #ipady */ int minWidth; /** * The minimum height of the component. It is used to calculate - * ipadx, where the default will be 0. + * {@code ipadx}, where the default will be 0. * @serial * @see #ipadx */ @@ -571,7 +571,7 @@ private static final long serialVersionUID = -1000070633030801713L; /** - * Creates a GridBagConstraint object with + * Creates a {@code GridBagConstraint} object with * all of its fields set to their default value. */ public GridBagConstraints () { @@ -591,7 +591,7 @@ } /** - * Creates a GridBagConstraints object with + * Creates a {@code GridBagConstraints} object with * all of its fields set to the passed-in arguments. * * Note: Because the use of this constructor hinders readability --- old/src/java.desktop/share/classes/java/awt/GridBagLayout.java 2015-10-04 22:52:44.773274100 +0400 +++ new/src/java.desktop/share/classes/java/awt/GridBagLayout.java 2015-10-04 22:52:44.581274109 +0400 @@ -28,18 +28,18 @@ import java.util.Arrays; /** - * The GridBagLayout class is a flexible layout + * The {@code GridBagLayout} class is a flexible layout * manager that aligns components vertically, horizontally or along their * baseline without requiring that the components be of the same size. - * Each GridBagLayout object maintains a dynamic, + * Each {@code GridBagLayout} object maintains a dynamic, * rectangular grid of cells, with each component occupying * one or more cells, called its display area. *

      - * Each component managed by a GridBagLayout is associated with + * Each component managed by a {@code GridBagLayout} is associated with * an instance of {@link GridBagConstraints}. The constraints object * specifies where a component's display area should be located on the grid * and how the component should be positioned within its display area. In - * addition to its constraints object, the GridBagLayout also + * addition to its constraints object, the {@code GridBagLayout} also * considers each component's minimum and preferred sizes in order to * determine a component's size. *

      @@ -52,8 +52,8 @@ * increasing downward. *

      * To use a grid bag layout effectively, you must customize one or more - * of the GridBagConstraints objects that are associated - * with its components. You customize a GridBagConstraints + * of the {@code GridBagConstraints} objects that are associated + * with its components. You customize a {@code GridBagConstraints} * object by setting one or more of its instance variables: * *

      @@ -65,51 +65,51 @@ * gridy = 0. For horizontal left-to-right layout, * a component's leading corner is its upper left. For horizontal * right-to-left layout, a component's leading corner is its upper right. - * Use GridBagConstraints.RELATIVE (the default value) + * Use {@code GridBagConstraints.RELATIVE} (the default value) * to specify that the component be placed immediately following - * (along the x axis for gridx or the y axis for - * gridy) the component that was added to the container + * (along the x axis for {@code gridx} or the y axis for + * {@code gridy}) the component that was added to the container * just before this component was added. *
      {@link GridBagConstraints#gridwidth}, * {@link GridBagConstraints#gridheight} - *
      Specifies the number of cells in a row (for gridwidth) - * or column (for gridheight) + *
      Specifies the number of cells in a row (for {@code gridwidth}) + * or column (for {@code gridheight}) * in the component's display area. * The default value is 1. - * Use GridBagConstraints.REMAINDER to specify - * that the component's display area will be from gridx - * to the last cell in the row (for gridwidth) - * or from gridy to the last cell in the column - * (for gridheight). - * - * Use GridBagConstraints.RELATIVE to specify - * that the component's display area will be from gridx - * to the next to the last cell in its row (for gridwidth - * or from gridy to the next to the last cell in its - * column (for gridheight). + * Use {@code GridBagConstraints.REMAINDER} to specify + * that the component's display area will be from {@code gridx} + * to the last cell in the row (for {@code gridwidth}) + * or from {@code gridy} to the last cell in the column + * (for {@code gridheight}). + * + * Use {@code GridBagConstraints.RELATIVE} to specify + * that the component's display area will be from {@code gridx} + * to the next to the last cell in its row (for {@code gridwidth} + * or from {@code gridy} to the next to the last cell in its + * column (for {@code gridheight}). * *
      {@link GridBagConstraints#fill} *
      Used when the component's display area * is larger than the component's requested size * to determine whether (and how) to resize the component. * Possible values are - * GridBagConstraints.NONE (the default), - * GridBagConstraints.HORIZONTAL + * {@code GridBagConstraints.NONE} (the default), + * {@code GridBagConstraints.HORIZONTAL} * (make the component wide enough to fill its display area * horizontally, but don't change its height), - * GridBagConstraints.VERTICAL + * {@code GridBagConstraints.VERTICAL} * (make the component tall enough to fill its display area * vertically, but don't change its width), and - * GridBagConstraints.BOTH + * {@code GridBagConstraints.BOTH} * (make the component fill its display area entirely). *
      {@link GridBagConstraints#ipadx}, * {@link GridBagConstraints#ipady} *
      Specifies the component's internal padding within the layout, * how much to add to the minimum size of the component. * The width of the component will be at least its minimum width - * plus ipadx pixels. Similarly, the height of + * plus {@code ipadx} pixels. Similarly, the height of * the component will be at least the minimum height plus - * ipady pixels. + * {@code ipady} pixels. *
      {@link GridBagConstraints#insets} *
      Specifies the component's external padding, the minimum * amount of space between the component and the edges of its display area. @@ -118,7 +118,7 @@ * There are three kinds of possible values: absolute, orientation-relative, * and baseline-relative * Orientation relative values are interpreted relative to the container's - * ComponentOrientation property while absolute values + * {@code ComponentOrientation} property while absolute values * are not. Baseline relative values are calculated relative to the * baseline. Valid values are: * @@ -132,40 +132,40 @@ * * *
        - *
      • GridBagConstraints.NORTH
      • - *
      • GridBagConstraints.SOUTH
      • - *
      • GridBagConstraints.WEST
      • - *
      • GridBagConstraints.EAST
      • - *
      • GridBagConstraints.NORTHWEST
      • - *
      • GridBagConstraints.NORTHEAST
      • - *
      • GridBagConstraints.SOUTHWEST
      • - *
      • GridBagConstraints.SOUTHEAST
      • - *
      • GridBagConstraints.CENTER (the default)
      • + *
      • {@code GridBagConstraints.NORTH}
      • + *
      • {@code GridBagConstraints.SOUTH}
      • + *
      • {@code GridBagConstraints.WEST}
      • + *
      • {@code GridBagConstraints.EAST}
      • + *
      • {@code GridBagConstraints.NORTHWEST}
      • + *
      • {@code GridBagConstraints.NORTHEAST}
      • + *
      • {@code GridBagConstraints.SOUTHWEST}
      • + *
      • {@code GridBagConstraints.SOUTHEAST}
      • + *
      • {@code GridBagConstraints.CENTER} (the default)
      • *
      * * *
        - *
      • GridBagConstraints.PAGE_START
      • - *
      • GridBagConstraints.PAGE_END
      • - *
      • GridBagConstraints.LINE_START
      • - *
      • GridBagConstraints.LINE_END
      • - *
      • GridBagConstraints.FIRST_LINE_START
      • - *
      • GridBagConstraints.FIRST_LINE_END
      • - *
      • GridBagConstraints.LAST_LINE_START
      • - *
      • GridBagConstraints.LAST_LINE_END
      • + *
      • {@code GridBagConstraints.PAGE_START}
      • + *
      • {@code GridBagConstraints.PAGE_END}
      • + *
      • {@code GridBagConstraints.LINE_START}
      • + *
      • {@code GridBagConstraints.LINE_END}
      • + *
      • {@code GridBagConstraints.FIRST_LINE_START}
      • + *
      • {@code GridBagConstraints.FIRST_LINE_END}
      • + *
      • {@code GridBagConstraints.LAST_LINE_START}
      • + *
      • {@code GridBagConstraints.LAST_LINE_END}
      • *
      * * *
        - *
      • GridBagConstraints.BASELINE
      • - *
      • GridBagConstraints.BASELINE_LEADING
      • - *
      • GridBagConstraints.BASELINE_TRAILING
      • - *
      • GridBagConstraints.ABOVE_BASELINE
      • - *
      • GridBagConstraints.ABOVE_BASELINE_LEADING
      • - *
      • GridBagConstraints.ABOVE_BASELINE_TRAILING
      • - *
      • GridBagConstraints.BELOW_BASELINE
      • - *
      • GridBagConstraints.BELOW_BASELINE_LEADING
      • - *
      • GridBagConstraints.BELOW_BASELINE_TRAILING
      • + *
      • {@code GridBagConstraints.BASELINE}
      • + *
      • {@code GridBagConstraints.BASELINE_LEADING}
      • + *
      • {@code GridBagConstraints.BASELINE_TRAILING}
      • + *
      • {@code GridBagConstraints.ABOVE_BASELINE}
      • + *
      • {@code GridBagConstraints.ABOVE_BASELINE_LEADING}
      • + *
      • {@code GridBagConstraints.ABOVE_BASELINE_TRAILING}
      • + *
      • {@code GridBagConstraints.BELOW_BASELINE}
      • + *
      • {@code GridBagConstraints.BELOW_BASELINE_LEADING}
      • + *
      • {@code GridBagConstraints.BELOW_BASELINE_TRAILING}
      • *
      * * @@ -175,10 +175,10 @@ *
      Used to determine how to distribute space, which is * important for specifying resizing behavior. * Unless you specify a weight for at least one component - * in a row (weightx) and column (weighty), + * in a row ({@code weightx}) and column ({@code weighty}), * all the components clump together in the center of their container. * This is because when the weight is zero (the default), - * the GridBagLayout object puts any extra space + * the {@code GridBagLayout} object puts any extra space * between its grid of cells and the edges of the container. *
      *

      @@ -206,12 +206,12 @@ * * This layout consists of three components: *

      • A panel that starts in row 0 and ends in row 1. The panel - * has a baseline-resize behavior of CONSTANT_DESCENT and has - * an anchor of BASELINE. As the baseline-resize behavior - * is CONSTANT_DESCENT the prevailing row for the panel is + * has a baseline-resize behavior of {@code CONSTANT_DESCENT} and has + * an anchor of {@code BASELINE}. As the baseline-resize behavior + * is {@code CONSTANT_DESCENT} the prevailing row for the panel is * row 1. *
      • Two buttons, each with a baseline-resize behavior of - * CENTER_OFFSET and an anchor of BASELINE. + * {@code CENTER_OFFSET} and an anchor of {@code BASELINE}. *
      * Because the second button and the panel share the same prevailing row, * they are both aligned along their baseline. @@ -221,7 +221,7 @@ * value. How components change is dictated by how the baseline of the * prevailing row changes. The baseline is anchored to the * bottom of the display area if any components with the same prevailing row - * have a baseline-resize behavior of CONSTANT_DESCENT, + * have a baseline-resize behavior of {@code CONSTANT_DESCENT}, * otherwise the baseline is anchored to the top of the display area. * The following rules dictate the resize behavior: *
        @@ -233,12 +233,12 @@ * only grow as high as the difference between the display height and the * baseline. *
      • Resizable components positioned on the baseline with a - * baseline-resize behavior of OTHER are only resized if + * baseline-resize behavior of {@code OTHER} are only resized if * the baseline at the resized size fits within the display area. If * the baseline is such that it does not fit within the display area * the component is not resized. *
      • Components positioned on the baseline that do not have a - * baseline-resize behavior of OTHER + * baseline-resize behavior of {@code OTHER} * can only grow as tall as {@code display height - baseline + baseline of component}. *
      * If you position a component along the baseline, but the @@ -266,9 +266,9 @@ * * *

      - * Each of the ten components has the fill field - * of its associated GridBagConstraints object - * set to GridBagConstraints.BOTH. + * Each of the ten components has the {@code fill} field + * of its associated {@code GridBagConstraints} object + * set to {@code GridBagConstraints.BOTH}. * In addition, the components have the following non-default constraints: * *

        @@ -387,8 +387,8 @@ /** * This hashtable maintains the association between * a component and its gridbag constraints. - * The Keys in comptable are the components and the - * values are the instances of GridBagConstraints. + * The Keys in {@code comptable} are the components and the + * values are the instances of {@code GridBagConstraints}. * * @serial * @see java.awt.GridBagConstraints @@ -400,7 +400,7 @@ * containing the default values, so if a component * does not have gridbag constraints associated with * it, then the component will be assigned a - * copy of the defaultConstraints. + * copy of the {@code defaultConstraints}. * * @serial * @see #getConstraints(Component) @@ -414,7 +414,7 @@ * for the gridbag. The information in this field * is based on the most recent validation of the * gridbag. - * If layoutInfo is null + * If {@code layoutInfo} is {@code null} * this indicates that there are no components in * the gridbag or if there are components, they have * not yet been validated. @@ -426,7 +426,7 @@ /** * This field holds the overrides to the column minimum - * width. If this field is non-null the values are + * width. If this field is non-{@code null} the values are * applied to the gridbag after all of the minimum columns * widths have been calculated. * If columnWidths has more elements than the number of @@ -440,12 +440,12 @@ /** * This field holds the overrides to the row minimum - * heights. If this field is non-null the values are + * heights. If this field is non-{@code null} the values are * applied to the gridbag after all of the minimum row * heights have been calculated. - * If rowHeights has more elements than the number of + * If {@code rowHeights} has more elements than the number of * rows, rows are added to the gridbag to match - * the number of elements in rowHeights. + * the number of elements in {@code rowHeights}. * * @serial * @see #getLayoutDimensions() @@ -454,12 +454,12 @@ /** * This field holds the overrides to the column weights. - * If this field is non-null the values are + * If this field is non-{@code null} the values are * applied to the gridbag after all of the columns * weights have been calculated. - * If columnWeights[i] > weight for column i, then - * column i is assigned the weight in columnWeights[i]. - * If columnWeights has more elements than the number + * If {@code columnWeights[i] >} weight for column i, then + * column i is assigned the weight in {@code columnWeights[i]}. + * If {@code columnWeights} has more elements than the number * of columns, the excess elements are ignored - they do * not cause more columns to be created. * @@ -469,12 +469,12 @@ /** * This field holds the overrides to the row weights. - * If this field is non-null the values are + * If this field is non-{@code null} the values are * applied to the gridbag after all of the rows * weights have been calculated. - * If rowWeights[i] > weight for row i, then - * row i is assigned the weight in rowWeights[i]. - * If rowWeights has more elements than the number + * If {@code rowWeights[i] > } weight for row i, then + * row i is assigned the weight in {@code rowWeights[i]}. + * If {@code rowWeights} has more elements than the number * of rows, the excess elements are ignored - they do * not cause more rows to be created. * @@ -484,7 +484,7 @@ /** * The component being positioned. This is set before calling into - * adjustForGravity. + * {@code adjustForGravity}. */ private Component componentAdjusting; @@ -507,7 +507,7 @@ /** * Gets the constraints for the specified component. A copy of - * the actual GridBagConstraints object is returned. + * the actual {@code GridBagConstraints} object is returned. * @param comp the component to be queried * @return the constraint for the specified component in this * grid bag layout; a copy of the actual constraint @@ -525,12 +525,12 @@ /** * Retrieves the constraints for the specified component. * The return value is not a copy, but is the actual - * GridBagConstraints object used by the layout mechanism. + * {@code GridBagConstraints} object used by the layout mechanism. *

        - * If comp is not in the GridBagLayout, - * a set of default GridBagConstraints are returned. - * A comp value of null is invalid - * and returns null. + * If {@code comp} is not in the {@code GridBagLayout}, + * a set of default {@code GridBagConstraints} are returned. + * A {@code comp} value of {@code null} is invalid + * and returns {@code null}. * * @param comp the component to be queried * @return the constraints for the specified component @@ -556,7 +556,7 @@ * Determines the origin of the layout area, in the graphics coordinate * space of the target container. This value represents the pixel * coordinates of the top-left corner of the layout area regardless of - * the ComponentOrientation value of the container. This + * the {@code ComponentOrientation} value of the container. This * is distinct from the grid origin given by the cell coordinates (0,0). * Most applications do not call this method directly. * @return the graphics origin of the cell in the top-left @@ -631,16 +631,16 @@ *

        * If the (x, y) point lies * outside the grid, the following rules are used. - * The column index is returned as zero if x lies to the + * The column index is returned as zero if {@code x} lies to the * left of the layout for a left-to-right container or to the right of * the layout for a right-to-left container. The column index is returned - * as the number of columns if x lies + * as the number of columns if {@code x} lies * to the right of the layout in a left-to-right container or to the left * in a right-to-left container. - * The row index is returned as zero if y lies above the - * layout, and as the number of rows if y lies + * The row index is returned as zero if {@code y} lies above the + * layout, and as the number of rows if {@code y} lies * below the layout. The orientation of a container is determined by its - * ComponentOrientation property. + * {@code ComponentOrientation} property. * @param x the x coordinate of a point * @param y the y coordinate of a point * @return an ordered pair of indexes that indicate which cell @@ -692,14 +692,14 @@ /** * Adds the specified component to the layout, using the specified - * constraints object. Note that constraints + * {@code constraints} object. Note that constraints * are mutable and are, therefore, cloned when cached. * * @param comp the component to be added * @param constraints an object that determines how * the component is added to the layout - * @exception IllegalArgumentException if constraints - * is not a GridBagConstraint + * @exception IllegalArgumentException if {@code constraints} + * is not a {@code GridBagConstraint} */ public void addLayoutComponent(Component comp, Object constraints) { if (constraints instanceof GridBagConstraints) { @@ -722,14 +722,14 @@ } /** - * Determines the preferred size of the parent + * Determines the preferred size of the {@code parent} * container using this grid bag layout. *

        * Most applications do not call this method directly. * * @param parent the container in which to do the layout * @see java.awt.Container#getPreferredSize - * @return the preferred size of the parent + * @return the preferred size of the {@code parent} * container */ public Dimension preferredLayoutSize(Container parent) { @@ -738,13 +738,13 @@ } /** - * Determines the minimum size of the parent container + * Determines the minimum size of the {@code parent} container * using this grid bag layout. *

        * Most applications do not call this method directly. * @param parent the container in which to do the layout * @see java.awt.Container#doLayout - * @return the minimum size of the parent container + * @return the minimum size of the {@code parent} container */ public Dimension minimumLayoutSize(Container parent) { GridBagLayoutInfo info = getLayoutInfo(parent, MINSIZE); @@ -771,7 +771,7 @@ * where 0 represents alignment along the origin, 1 is aligned * the furthest away from the origin, 0.5 is centered, etc. * - * @return the value 0.5f to indicate centered + * @return the value {@code 0.5f} to indicate centered */ public float getLayoutAlignmentX(Container parent) { return 0.5f; @@ -784,7 +784,7 @@ * where 0 represents alignment along the origin, 1 is aligned * the furthest away from the origin, 0.5 is centered, etc. * - * @return the value 0.5f to indicate centered + * @return the value {@code 0.5f} to indicate centered */ public float getLayoutAlignmentY(Container parent) { return 0.5f; @@ -800,7 +800,7 @@ /** * Lays out the specified container using this grid bag layout. * This method reshapes components in the specified container in - * order to satisfy the constraints of this GridBagLayout + * order to satisfy the constraints of this {@code GridBagLayout} * object. *

        * Most applications do not call this method directly. @@ -890,7 +890,7 @@ */ /** - * Fills in an instance of GridBagLayoutInfo for the + * Fills in an instance of {@code GridBagLayoutInfo} for the * current set of managed children. This requires three passes through the * set of children: * @@ -904,12 +904,12 @@ * first encountered (so subsequent loops don't need to ask again). *

        * This method should only be used internally by - * GridBagLayout. + * {@code GridBagLayout}. * * @param parent the layout container - * @param sizeflag either PREFERREDSIZE or - * MINSIZE - * @return the GridBagLayoutInfo for the set of children + * @param sizeflag either {@code PREFERREDSIZE} or + * {@code MINSIZE} + * @return the {@code GridBagLayoutInfo} for the set of children * @since 1.4 */ protected GridBagLayoutInfo getLayoutInfo(Container parent, int sizeflag) { @@ -1605,10 +1605,10 @@ * Adjusts the x, y, width, and height fields to the correct * values depending on the constraint geometry and pads. * This method should only be used internally by - * GridBagLayout. + * {@code GridBagLayout}. * * @param constraints the constraints to be applied - * @param r the Rectangle to be adjusted + * @param r the {@code Rectangle} to be adjusted * @since 1.4 */ protected void adjustForGravity(GridBagConstraints constraints, @@ -1624,7 +1624,7 @@ * compatibility only; new code should call {@link * #adjustForGravity(java.awt.GridBagConstraints, java.awt.Rectangle) * adjustForGravity} instead. - * This method is the same as adjustForGravity + * This method is the same as {@code adjustForGravity} * * @param constraints the constraints to be applied * @param r the {@code Rectangle} to be adjusted @@ -1987,13 +1987,13 @@ /** * Figures out the minimum size of the - * master based on the information from getLayoutInfo. + * master based on the information from {@code getLayoutInfo}. * This method should only be used internally by - * GridBagLayout. + * {@code GridBagLayout}. * * @param parent the layout container * @param info the layout info for this parent - * @return a Dimension object containing the + * @return a {@code Dimension} object containing the * minimum size * @since 1.4 */ @@ -2005,11 +2005,11 @@ * This method is obsolete and supplied for backwards * compatibility only; new code should call {@link * #getMinSize(java.awt.Container, GridBagLayoutInfo) getMinSize} instead. - * This method is the same as getMinSize + * This method is the same as {@code getMinSize} * * @param parent the layout container * @param info the layout info for this parent - * @return a Dimension object containing the + * @return a {@code Dimension} object containing the * minimum size */ protected Dimension GetMinSize(Container parent, GridBagLayoutInfo info) { @@ -2035,7 +2035,7 @@ /** * Lays out the grid. * This method should only be used internally by - * GridBagLayout. + * {@code GridBagLayout}. * * @param parent the layout container * @since 1.4 @@ -2048,7 +2048,7 @@ * This method is obsolete and supplied for backwards * compatibility only; new code should call {@link * #arrangeGrid(Container) arrangeGrid} instead. - * This method is the same as arrangeGrid + * This method is the same as {@code arrangeGrid} * * @param parent the layout container */ --- old/src/java.desktop/share/classes/java/awt/Image.java 2015-10-04 22:52:45.333274075 +0400 +++ new/src/java.desktop/share/classes/java/awt/Image.java 2015-10-04 22:52:45.145274084 +0400 @@ -35,7 +35,7 @@ /** - * The abstract class Image is the superclass of all + * The abstract class {@code Image} is the superclass of all * classes that represent graphical images. The image must be * obtained in a platform-specific manner. * @@ -57,17 +57,17 @@ * Priority for accelerating this image. Subclasses are free to * set different default priorities and applications are free to * set the priority for specific images via the - * setAccelerationPriority(float) method. + * {@code setAccelerationPriority(float)} method. * @since 1.5 */ protected float accelerationPriority = .5f; /** * Determines the width of the image. If the width is not yet known, - * this method returns -1 and the specified - * ImageObserver object is notified later. + * this method returns {@code -1} and the specified + * {@code ImageObserver} object is notified later. * @param observer an object waiting for the image to be loaded. - * @return the width of this image, or -1 + * @return the width of this image, or {@code -1} * if the width is not yet known. * @see java.awt.Image#getHeight * @see java.awt.image.ImageObserver @@ -76,10 +76,10 @@ /** * Determines the height of the image. If the height is not yet known, - * this method returns -1 and the specified - * ImageObserver object is notified later. + * this method returns {@code -1} and the specified + * {@code ImageObserver} object is notified later. * @param observer an object waiting for the image to be loaded. - * @return the height of this image, or -1 + * @return the height of this image, or {@code -1} * if the height is not yet known. * @see java.awt.Image#getWidth * @see java.awt.image.ImageObserver @@ -112,13 +112,13 @@ *

        * Individual property names are defined by the various image * formats. If a property is not defined for a particular image, this - * method returns the UndefinedProperty object. + * method returns the {@code UndefinedProperty} object. *

        * If the properties for this image are not yet known, this method - * returns null, and the ImageObserver + * returns {@code null}, and the {@code ImageObserver} * object is notified later. *

        - * The property name "comment" should be used to store + * The property name {@code "comment"} should be used to store * an optional comment which can be presented to the application as a * description of the image, its source, or its author. * @param name a property name. @@ -131,25 +131,25 @@ public abstract Object getProperty(String name, ImageObserver observer); /** - * The UndefinedProperty object should be returned whenever a + * The {@code UndefinedProperty} object should be returned whenever a * property which was not defined for a particular image is fetched. */ public static final Object UndefinedProperty = new Object(); /** * Creates a scaled version of this image. - * A new Image object is returned which will render - * the image at the specified width and - * height by default. The new Image object + * A new {@code Image} object is returned which will render + * the image at the specified {@code width} and + * {@code height} by default. The new {@code Image} object * may be loaded asynchronously even if the original source image * has already been loaded completely. * *

        * - * If either width - * or height is a negative number then a value is + * If either {@code width} + * or {@code height} is a negative number then a value is * substituted to maintain the aspect ratio of the original image - * dimensions. If both width and height + * dimensions. If both {@code width} and {@code height} * are negative, then the original image dimensions are used. * * @param width the width to which to scale the image. @@ -157,8 +157,8 @@ * @param hints flags to indicate the type of algorithm to use * for image resampling. * @return a scaled version of the image. - * @exception IllegalArgumentException if width - * or height is zero. + * @exception IllegalArgumentException if {@code width} + * or {@code height} is zero. * @see java.awt.Image#SCALE_DEFAULT * @see java.awt.Image#SCALE_FAST * @see java.awt.Image#SCALE_SMOOTH @@ -200,8 +200,8 @@ /** * Use the image scaling algorithm embodied in the - * ReplicateScaleFilter class. - * The Image object is free to substitute a different filter + * {@code ReplicateScaleFilter} class. + * The {@code Image} object is free to substitute a different filter * that performs the same algorithm yet integrates more efficiently * into the imaging infrastructure supplied by the toolkit. * @see java.awt.image.ReplicateScaleFilter @@ -274,11 +274,11 @@ * size on the given GraphicsConfiguration, so although the object * may be acceleratable in general, it * does not have that capability on this GraphicsConfiguration. - * @param gc a GraphicsConfiguration object. A value of null + * @param gc a {@code GraphicsConfiguration} object. A value of null * for this parameter will result in getting the image capabilities - * for the default GraphicsConfiguration. - * @return an ImageCapabilities object that contains - * the capabilities of this Image on the specified + * for the default {@code GraphicsConfiguration}. + * @return an {@code ImageCapabilities} object that contains + * the capabilities of this {@code Image} on the specified * GraphicsConfiguration. * @see java.awt.image.VolatileImage#getCapabilities() * VolatileImage.getCapabilities() @@ -313,7 +313,7 @@ * means that this Image should never be accelerated. Other values * are used simply to determine acceleration priority relative to other * Images. - * @throws IllegalArgumentException if priority is less + * @throws IllegalArgumentException if {@code priority} is less * than zero or greater than 1. * @since 1.5 */ --- old/src/java.desktop/share/classes/java/awt/ImageCapabilities.java 2015-10-04 22:52:45.861274052 +0400 +++ new/src/java.desktop/share/classes/java/awt/ImageCapabilities.java 2015-10-04 22:52:45.673274060 +0400 @@ -43,8 +43,8 @@ } /** - * Returns true if the object whose capabilities are - * encapsulated in this ImageCapabilities can be or is + * Returns {@code true} if the object whose capabilities are + * encapsulated in this {@code ImageCapabilities} can be or is * accelerated. * @return whether or not an image can be, or is, accelerated. There are * various platform-specific ways to accelerate an image, including @@ -56,8 +56,8 @@ } /** - * Returns true if the VolatileImage - * described by this ImageCapabilities can lose + * Returns {@code true} if the {@code VolatileImage} + * described by this {@code ImageCapabilities} can lose * its surfaces. * @return whether or not a volatile image is subject to losing its surfaces * at the whim of the operating system. --- old/src/java.desktop/share/classes/java/awt/Insets.java 2015-10-04 22:52:46.381274028 +0400 +++ new/src/java.desktop/share/classes/java/awt/Insets.java 2015-10-04 22:52:46.189274037 +0400 @@ -26,7 +26,7 @@ package java.awt; /** - * An Insets object is a representation of the borders + * An {@code Insets} object is a representation of the borders * of a container. It specifies the space that a container must leave * at each of its edges. The space can be a border, a blank space, or * a title. @@ -93,7 +93,7 @@ } /** - * Creates and initializes a new Insets object with the + * Creates and initializes a new {@code Insets} object with the * specified top, left, bottom, and right insets. * @param top the inset from the top. * @param left the inset from the left. @@ -125,11 +125,11 @@ /** * Checks whether two insets objects are equal. Two instances - * of Insets are equal if the four integer values - * of the fields top, left, - * bottom, and right are all equal. - * @return true if the two insets are equal; - * otherwise false. + * of {@code Insets} are equal if the four integer values + * of the fields {@code top}, {@code left}, + * {@code bottom}, and {@code right} are all equal. + * @return {@code true} if the two insets are equal; + * otherwise {@code false}. * @since 1.1 */ public boolean equals(Object obj) { @@ -156,13 +156,13 @@ } /** - * Returns a string representation of this Insets object. + * Returns a string representation of this {@code Insets} object. * This method is intended to be used only for debugging purposes, and * the content and format of the returned string may vary between * implementations. The returned string may be empty but may not be - * null. + * {@code null}. * - * @return a string representation of this Insets object. + * @return a string representation of this {@code Insets} object. */ public String toString() { return getClass().getName() + "[top=" + top + ",left=" + left + ",bottom=" + bottom + ",right=" + right + "]"; @@ -170,7 +170,7 @@ /** * Create a copy of this object. - * @return a copy of this Insets object. + * @return a copy of this {@code Insets} object. */ public Object clone() { try { --- old/src/java.desktop/share/classes/java/awt/ItemSelectable.java 2015-10-04 22:52:46.901274005 +0400 +++ new/src/java.desktop/share/classes/java/awt/ItemSelectable.java 2015-10-04 22:52:46.713274013 +0400 @@ -37,7 +37,7 @@ public interface ItemSelectable { /** - * Returns the selected items or null if no + * Returns the selected items or {@code null} if no * items are selected. * * @return the list of selected objects, or {@code null} @@ -47,8 +47,8 @@ /** * Adds a listener to receive item events when the state of an item is * changed by the user. Item events are not sent when an item's - * state is set programmatically. If l is - * null, no exception is thrown and no action is performed. + * state is set programmatically. If {@code l} is + * {@code null}, no exception is thrown and no action is performed. * * @param l the listener to receive events * @see ItemEvent @@ -57,7 +57,7 @@ /** * Removes an item listener. - * If l is null, + * If {@code l} is {@code null}, * no exception is thrown and no action is performed. * * @param l the listener being removed --- old/src/java.desktop/share/classes/java/awt/JobAttributes.java 2015-10-04 22:52:47.421273982 +0400 +++ new/src/java.desktop/share/classes/java/awt/JobAttributes.java 2015-10-04 22:52:47.233273990 +0400 @@ -72,19 +72,19 @@ }; /** - * The DefaultSelectionType instance to use for + * The {@code DefaultSelectionType} instance to use for * specifying that all pages of the job should be printed. */ public static final DefaultSelectionType ALL = new DefaultSelectionType(I_ALL); /** - * The DefaultSelectionType instance to use for + * The {@code DefaultSelectionType} instance to use for * specifying that a range of pages of the job should be printed. */ public static final DefaultSelectionType RANGE = new DefaultSelectionType(I_RANGE); /** - * The DefaultSelectionType instance to use for + * The {@code DefaultSelectionType} instance to use for * specifying that the current selection should be printed. */ public static final DefaultSelectionType SELECTION = @@ -108,13 +108,13 @@ }; /** - * The DestinationType instance to use for + * The {@code DestinationType} instance to use for * specifying print to file. */ public static final DestinationType FILE = new DestinationType(I_FILE); /** - * The DestinationType instance to use for + * The {@code DestinationType} instance to use for * specifying print to printer. */ public static final DestinationType PRINTER = @@ -139,17 +139,17 @@ }; /** - * The DialogType instance to use for + * The {@code DialogType} instance to use for * specifying the cross-platform, pure Java print dialog. */ public static final DialogType COMMON = new DialogType(I_COMMON); /** - * The DialogType instance to use for + * The {@code DialogType} instance to use for * specifying the platform's native print dialog. */ public static final DialogType NATIVE = new DialogType(I_NATIVE); /** - * The DialogType instance to use for + * The {@code DialogType} instance to use for * specifying no print dialog. */ public static final DialogType NONE = new DialogType(I_NONE); @@ -176,7 +176,7 @@ }; /** - * The MultipleDocumentHandlingType instance to use for specifying + * The {@code MultipleDocumentHandlingType} instance to use for specifying * that the job should be divided into separate, collated copies. */ public static final MultipleDocumentHandlingType @@ -184,7 +184,7 @@ new MultipleDocumentHandlingType( I_SEPARATE_DOCUMENTS_COLLATED_COPIES); /** - * The MultipleDocumentHandlingType instance to use for specifying + * The {@code MultipleDocumentHandlingType} instance to use for specifying * that the job should be divided into separate, uncollated copies. */ public static final MultipleDocumentHandlingType @@ -212,13 +212,13 @@ }; /** - * The SidesType instance to use for specifying that + * The {@code SidesType} instance to use for specifying that * consecutive job pages should be printed upon the same side of * consecutive media sheets. */ public static final SidesType ONE_SIDED = new SidesType(I_ONE_SIDED); /** - * The SidesType instance to use for specifying that + * The {@code SidesType} instance to use for specifying that * consecutive job pages should be printed upon front and back sides * of consecutive media sheets, such that the orientation of each pair * of pages on the medium would be correct for the reader as if for @@ -227,7 +227,7 @@ public static final SidesType TWO_SIDED_LONG_EDGE = new SidesType(I_TWO_SIDED_LONG_EDGE); /** - * The SidesType instance to use for specifying that + * The {@code SidesType} instance to use for specifying that * consecutive job pages should be printed upon front and back sides * of consecutive media sheets, such that the orientation of each pair * of pages on the medium would be correct for the reader as if for @@ -258,16 +258,16 @@ private int toPage; /** - * Constructs a JobAttributes instance with default + * Constructs a {@code JobAttributes} instance with default * values for every attribute. The dialog defaults to - * DialogType.NATIVE. Min page defaults to - * 1. Max page defaults to Integer.MAX_VALUE. - * Destination defaults to DestinationType.PRINTER. - * Selection defaults to DefaultSelectionType.ALL. - * Number of copies defaults to 1. Multiple document handling defaults - * to MultipleDocumentHandlingType.SEPARATE_DOCUMENTS_UNCOLLATED_COPIES. - * Sides defaults to SidesType.ONE_SIDED. File name defaults - * to null. + * {@code DialogType.NATIVE}. Min page defaults to + * {@code 1}. Max page defaults to {@code Integer.MAX_VALUE}. + * Destination defaults to {@code DestinationType.PRINTER}. + * Selection defaults to {@code DefaultSelectionType.ALL}. + * Number of copies defaults to {@code 1}. Multiple document handling defaults + * to {@code MultipleDocumentHandlingType.SEPARATE_DOCUMENTS_UNCOLLATED_COPIES}. + * Sides defaults to {@code SidesType.ONE_SIDED}. File name defaults + * to {@code null}. */ public JobAttributes() { setCopiesToDefault(); @@ -281,36 +281,36 @@ } /** - * Constructs a JobAttributes instance which is a copy - * of the supplied JobAttributes. + * Constructs a {@code JobAttributes} instance which is a copy + * of the supplied {@code JobAttributes}. * - * @param obj the JobAttributes to copy + * @param obj the {@code JobAttributes} to copy */ public JobAttributes(JobAttributes obj) { set(obj); } /** - * Constructs a JobAttributes instance with the + * Constructs a {@code JobAttributes} instance with the * specified values for every attribute. * * @param copies an integer greater than 0 - * @param defaultSelection DefaultSelectionType.ALL, - * DefaultSelectionType.RANGE, or - * DefaultSelectionType.SELECTION - * @param destination DestinationType.FILE or - * DestinationType.PRINTER - * @param dialog DialogType.COMMON, - * DialogType.NATIVE, or - * DialogType.NONE - * @param fileName the possibly null file name + * @param defaultSelection {@code DefaultSelectionType.ALL}, + * {@code DefaultSelectionType.RANGE}, or + * {@code DefaultSelectionType.SELECTION} + * @param destination {@code DestinationType.FILE} or + * {@code DestinationType.PRINTER} + * @param dialog {@code DialogType.COMMON}, + * {@code DialogType.NATIVE}, or + * {@code DialogType.NONE} + * @param fileName the possibly {@code null} file name * @param maxPage an integer greater than zero and greater than or equal * to minPage * @param minPage an integer greater than zero and less than or equal * to maxPage * @param multipleDocumentHandling - * MultipleDocumentHandlingType.SEPARATE_DOCUMENTS_COLLATED_COPIES or - * MultipleDocumentHandlingType.SEPARATE_DOCUMENTS_UNCOLLATED_COPIES + * {@code MultipleDocumentHandlingType.SEPARATE_DOCUMENTS_COLLATED_COPIES} or + * {@code MultipleDocumentHandlingType.SEPARATE_DOCUMENTS_UNCOLLATED_COPIES} * @param pageRanges an array of integer arrays of two elements; an array * is interpreted as a range spanning all pages including and * between the specified pages; ranges must be in ascending @@ -322,13 +322,13 @@ * new int[] { 15, 19 } }), *

      * specifies pages 1, 2, 3, 5, 15, 16, 17, 18, and 19. Note that - * (new int[][] { new int[] { 1, 1 }, new int[] { 1, 2 } }), + * ({@code new int[][] { new int[] { 1, 1 }, new int[] { 1, 2 } }}), * is an invalid set of page ranges because the two ranges * overlap - * @param printer the possibly null printer name - * @param sides SidesType.ONE_SIDED, - * SidesType.TWO_SIDED_LONG_EDGE, or - * SidesType.TWO_SIDED_SHORT_EDGE + * @param printer the possibly {@code null} printer name + * @param sides {@code SidesType.ONE_SIDED}, + * {@code SidesType.TWO_SIDED_LONG_EDGE}, or + * {@code SidesType.TWO_SIDED_SHORT_EDGE} * @throws IllegalArgumentException if one or more of the above * conditions is violated */ @@ -351,10 +351,10 @@ } /** - * Creates and returns a copy of this JobAttributes. + * Creates and returns a copy of this {@code JobAttributes}. * * @return the newly created copy; it is safe to cast this Object into - * a JobAttributes + * a {@code JobAttributes} */ public Object clone() { try { @@ -366,10 +366,10 @@ } /** - * Sets all of the attributes of this JobAttributes to + * Sets all of the attributes of this {@code JobAttributes} to * the same values as the attributes of obj. * - * @param obj the JobAttributes to copy + * @param obj the {@code JobAttributes} to copy */ public void set(JobAttributes obj) { copies = obj.copies; @@ -404,10 +404,10 @@ /** * Specifies the number of copies the application should render for jobs * using these attributes. Not specifying this attribute is equivalent to - * specifying 1. + * specifying {@code 1}. * * @param copies an integer greater than 0 - * @throws IllegalArgumentException if copies is less than + * @throws IllegalArgumentException if {@code copies} is less than * or equal to 0 */ public void setCopies(int copies) { @@ -429,7 +429,7 @@ /** * Specifies whether, for jobs using these attributes, the application * should print all pages, the range specified by the return value of - * getPageRanges, or the current selection. This attribute + * {@code getPageRanges}, or the current selection. This attribute * is updated to the value chosen by the user. * * @return DefaultSelectionType.ALL, DefaultSelectionType.RANGE, or @@ -442,12 +442,12 @@ /** * Specifies whether, for jobs using these attributes, the application * should print all pages, the range specified by the return value of - * getPageRanges, or the current selection. Not specifying + * {@code getPageRanges}, or the current selection. Not specifying * this attribute is equivalent to specifying DefaultSelectionType.ALL. * * @param defaultSelection DefaultSelectionType.ALL, * DefaultSelectionType.RANGE, or DefaultSelectionType.SELECTION. - * @throws IllegalArgumentException if defaultSelection is null + * @throws IllegalArgumentException if defaultSelection is {@code null} */ public void setDefaultSelection(DefaultSelectionType defaultSelection) { if (defaultSelection == null) { @@ -495,8 +495,8 @@ * This attribute cannot be modified by, and is not subject to any * limitations of, the implementation or the target printer. * - * @return DialogType.COMMON, DialogType.NATIVE, or - * DialogType.NONE + * @return {@code DialogType.COMMON}, {@code DialogType.NATIVE}, or + * {@code DialogType.NONE} */ public DialogType getDialog() { return dialog; @@ -529,7 +529,7 @@ * Specifies the file name for the output file for jobs using these * attributes. This attribute is updated to the value chosen by the user. * - * @return the possibly null file name + * @return the possibly {@code null} file name */ public String getFileName() { return fileName; @@ -549,9 +549,9 @@ * Returns, for jobs using these attributes, the first page to be * printed, if a range of pages is to be printed. This attribute is * updated to the value chosen by the user. An application should ignore - * this attribute on output, unless the return value of the - * getDefaultSelection method is DefaultSelectionType.RANGE. An - * application should honor the return value of getPageRanges + * this attribute on output, unless the return value of the + * {@code getDefaultSelection} method is DefaultSelectionType.RANGE. An + * application should honor the return value of {@code getPageRanges} * over the return value of this method, if possible. * * @return an integer greater than zero and less than or equal to @@ -612,7 +612,7 @@ /** * Specifies the maximum value the user can specify as the last page to * be printed for jobs using these attributes. Not specifying this - * attribute is equivalent to specifying Integer.MAX_VALUE. + * attribute is equivalent to specifying {@code Integer.MAX_VALUE}. * * @param maxPage an integer greater than zero and greater than or equal * to minPage @@ -643,7 +643,7 @@ /** * Specifies the minimum value the user can specify as the first page to * be printed for jobs using these attributes. Not specifying this - * attribute is equivalent to specifying 1. + * attribute is equivalent to specifying {@code 1}. * * @param minPage an integer greater than zero and less than or equal * to maxPage. @@ -706,7 +706,7 @@ * printed, if a range of pages is to be printed. All range numbers are * inclusive. This attribute is updated to the value chosen by the user. * An application should ignore this attribute on output, unless the - * return value of the getDefaultSelection method is + * return value of the {@code getDefaultSelection} method is * DefaultSelectionType.RANGE. * * @return an array of integer arrays of 2 elements. An array @@ -888,9 +888,9 @@ * Returns, for jobs using these attributes, the last page (inclusive) * to be printed, if a range of pages is to be printed. This attribute is * updated to the value chosen by the user. An application should ignore - * this attribute on output, unless the return value of the - * getDefaultSelection method is DefaultSelectionType.RANGE. An - * application should honor the return value of getPageRanges + * this attribute on output, unless the return value of the + * {@code getDefaultSelection} method is DefaultSelectionType.RANGE. An + * application should honor the return value of {@code getPageRanges} * over the return value of this method, if possible. * * @return an integer greater than zero and greater than or equal --- old/src/java.desktop/share/classes/java/awt/KeyEventDispatcher.java 2015-10-04 22:52:47.957273957 +0400 +++ new/src/java.desktop/share/classes/java/awt/KeyEventDispatcher.java 2015-10-04 22:52:47.769273966 +0400 @@ -62,28 +62,28 @@ * used to deliver KeyEvents to Components other than the focus owner. This * can be useful when navigating children of non-focusable Windows in an * accessible environment, for example. Note that if a KeyEventDispatcher - * dispatches the KeyEvent itself, it must use redispatchEvent + * dispatches the KeyEvent itself, it must use {@code redispatchEvent} * to prevent the current KeyboardFocusManager from recursively requesting * that this KeyEventDispatcher dispatch the event again. *

      - * If an implementation of this method returns false, then + * If an implementation of this method returns {@code false}, then * the KeyEvent is passed to the next KeyEventDispatcher in the chain, * ending with the current KeyboardFocusManager. If an implementation - * returns true, the KeyEvent is assumed to have been + * returns {@code true}, the KeyEvent is assumed to have been * dispatched (although this need not be the case), and the current * KeyboardFocusManager will take no further action with regard to the * KeyEvent. In such a case, - * KeyboardFocusManager.dispatchEvent should return - * true as well. If an implementation consumes the KeyEvent, - * but returns false, the consumed event will still be passed + * {@code KeyboardFocusManager.dispatchEvent} should return + * {@code true} as well. If an implementation consumes the KeyEvent, + * but returns {@code false}, the consumed event will still be passed * to the next KeyEventDispatcher in the chain. It is important for * developers to check whether the KeyEvent has been consumed before * dispatching it to a target. By default, the current KeyboardFocusManager * will not dispatch a consumed KeyEvent. * * @param e the KeyEvent to dispatch - * @return true if the KeyboardFocusManager should take no - * further action with regard to the KeyEvent; false + * @return {@code true} if the KeyboardFocusManager should take no + * further action with regard to the KeyEvent; {@code false} * otherwise * @see KeyboardFocusManager#redispatchEvent */ --- old/src/java.desktop/share/classes/java/awt/KeyEventPostProcessor.java 2015-10-04 22:52:48.477273934 +0400 +++ new/src/java.desktop/share/classes/java/awt/KeyEventPostProcessor.java 2015-10-04 22:52:48.289273943 +0400 @@ -68,17 +68,17 @@ * will be used to implement features which require global KeyEvent * post-handling, such as menu shortcuts. Note that if a * KeyEventPostProcessor wishes to dispatch the KeyEvent, it must use - * redispatchEvent to prevent the AWT from recursively + * {@code redispatchEvent} to prevent the AWT from recursively * requesting that this KeyEventPostProcessor perform post-processing * of the event again. *

      - * If an implementation of this method returns false, then the + * If an implementation of this method returns {@code false}, then the * KeyEvent is passed to the next KeyEventPostProcessor in the chain, * ending with the current KeyboardFocusManager. If an implementation - * returns true, the KeyEvent is assumed to have been fully + * returns {@code true}, the KeyEvent is assumed to have been fully * handled (although this need not be the case), and the AWT will take no * further action with regard to the KeyEvent. If an implementation - * consumes the KeyEvent but returns false, the consumed + * consumes the KeyEvent but returns {@code false}, the consumed * event will still be passed to the next KeyEventPostProcessor in the * chain. It is important for developers to check whether the KeyEvent has * been consumed before performing any post-processing of the KeyEvent. By @@ -86,8 +86,8 @@ * processing in response to a consumed KeyEvent. * * @param e the KeyEvent to post-process - * @return true if the AWT should take no further action with - * regard to the KeyEvent; false otherwise + * @return {@code true} if the AWT should take no further action with + * regard to the KeyEvent; {@code false} otherwise * @see KeyboardFocusManager#redispatchEvent */ boolean postProcessKeyEvent(KeyEvent e); --- old/src/java.desktop/share/classes/java/awt/KeyboardFocusManager.java 2015-10-04 22:52:48.997273911 +0400 +++ new/src/java.desktop/share/classes/java/awt/KeyboardFocusManager.java 2015-10-04 22:52:48.805273919 +0400 @@ -373,7 +373,7 @@ /** * This KeyboardFocusManager's KeyEventDispatcher chain. The List does not * include this KeyboardFocusManager unless it was explicitly re-registered - * via a call to addKeyEventDispatcher. If no other + * via a call to {@code addKeyEventDispatcher}. If no other * KeyEventDispatchers are registered, this field may be null or refer to * a List of length 0. */ @@ -382,7 +382,7 @@ /** * This KeyboardFocusManager's KeyEventPostProcessor chain. The List does * not include this KeyboardFocusManager unless it was explicitly - * re-registered via a call to addKeyEventPostProcessor. + * re-registered via a call to {@code addKeyEventPostProcessor}. * If no other KeyEventPostProcessors are registered, this field may be * null or refer to a List of length 0. */ @@ -514,8 +514,8 @@ *

      * This method does not actually set the focus to the specified Component. * It merely stores the value to be subsequently returned by - * getFocusOwner(). Use Component.requestFocus() - * or Component.requestFocusInWindow() to change the focus + * {@code getFocusOwner()}. Use {@code Component.requestFocus()} + * or {@code Component.requestFocusInWindow()} to change the focus * owner, subject to platform limitations. * * @param focusOwner the focus owner @@ -605,7 +605,7 @@ * FOCUS_LOST event. After this operation completes, the native windowing * system will discard all user-generated KeyEvents until the user selects * a new Component to receive focus, or a Component is given focus - * explicitly via a call to requestFocus(). This operation + * explicitly via a call to {@code requestFocus()}. This operation * does not change the focused or active Windows. *

      * If a SecurityManager is installed, the calling thread must be granted @@ -729,9 +729,9 @@ *

      * This method does not actually set the focus to the specified Component. * It merely stores the value to be subsequently returned by - * getPermanentFocusOwner(). Use - * Component.requestFocus() or - * Component.requestFocusInWindow() to change the focus owner, + * {@code getPermanentFocusOwner()}. Use + * {@code Component.requestFocus()} or + * {@code Component.requestFocusInWindow()} to change the focus owner, * subject to platform limitations. * * @param permanentFocusOwner the permanent focus owner @@ -832,9 +832,9 @@ *

      * This method does not actually change the focused Window as far as the * native windowing system is concerned. It merely stores the value to be - * subsequently returned by getFocusedWindow(). Use - * Component.requestFocus() or - * Component.requestFocusInWindow() to change the focused + * subsequently returned by {@code getFocusedWindow()}. Use + * {@code Component.requestFocus()} or + * {@code Component.requestFocusInWindow()} to change the focused * Window, subject to platform limitations. * * @param focusedWindow the focused Window @@ -938,9 +938,9 @@ *

      * This method does not actually change the active Window as far as the * native windowing system is concerned. It merely stores the value to be - * subsequently returned by getActiveWindow(). Use - * Component.requestFocus() or - * Component.requestFocusInWindow()to change the active + * subsequently returned by {@code getActiveWindow()}. Use + * {@code Component.requestFocus()} or + * {@code Component.requestFocusInWindow()} to change the active * Window, subject to platform limitations. * * @param activeWindow the active Window @@ -1168,16 +1168,16 @@ * have no such Set of their own explicitly defined. This Set will also be * inherited, recursively, by any child Component of those Windows that has * no such Set of its own explicitly defined. (See - * setDefaultFocusTraversalKeys for a full description of each + * {@code setDefaultFocusTraversalKeys} for a full description of each * operation.) * * @param id one of KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS, * KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS, * KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS, or * KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS - * @return the Set of AWTKeyStrokes - * for the specified operation; the Set - * will be unmodifiable, and may be empty; null + * @return the {@code Set} of {@code AWTKeyStroke}s + * for the specified operation; the {@code Set} + * will be unmodifiable, and may be empty; {@code null} * will never be returned * @see #setDefaultFocusTraversalKeys * @see Component#setFocusTraversalKeys @@ -1369,7 +1369,7 @@ * registered on this keyboard focus manager. * * @return all of this keyboard focus manager's - * PropertyChangeListeners + * {@code PropertyChangeListener}s * or an empty array if no property change * listeners are currently registered * @@ -1456,11 +1456,11 @@ } /** - * Returns an array of all the PropertyChangeListeners + * Returns an array of all the {@code PropertyChangeListener}s * associated with the named property. * * @param propertyName the property name - * @return all of the PropertyChangeListeners associated with + * @return all of the {@code PropertyChangeListener}s associated with * the named property or an empty array if no such listeners have * been added. * @@ -1552,7 +1552,7 @@ * registered on this keyboard focus manager. * * @return all of this keyboard focus manager's - * VetoableChangeListeners + * {@code VetoableChangeListener}s * or an empty array if no vetoable change * listeners are currently registered * @@ -1626,11 +1626,11 @@ } /** - * Returns an array of all the VetoableChangeListeners + * Returns an array of all the {@code VetoableChangeListener}s * associated with the named property. * * @param propertyName the property name - * @return all of the VetoableChangeListeners associated with + * @return all of the {@code VetoableChangeListener}s associated with * the named property or an empty array if no such listeners have * been added. * @@ -1659,8 +1659,8 @@ * @param oldValue the property's previous value * @param newValue the property's new value * @throws java.beans.PropertyVetoException if a - * VetoableChangeListener threw - * PropertyVetoException + * {@code VetoableChangeListener} threw + * {@code PropertyVetoException} */ protected void fireVetoableChange(String propertyName, Object oldValue, Object newValue) @@ -1683,8 +1683,8 @@ * KeyEventDispatcher dispatch KeyEvents generated by the user before * finally dispatching the KeyEvent itself. KeyEventDispatchers will be * notified in the order in which they were added. Notifications will halt - * as soon as one KeyEventDispatcher returns true from its - * dispatchKeyEvent method. There is no limit to the total + * as soon as one KeyEventDispatcher returns {@code true} from its + * {@code dispatchKeyEvent} method. There is no limit to the total * number of KeyEventDispatchers which can be added, nor to the number of * times which a particular KeyEventDispatcher instance can be added. *

      @@ -1714,7 +1714,7 @@ * Removes a KeyEventDispatcher which was previously added to this * KeyboardFocusManager's dispatcher chain. This KeyboardFocusManager * cannot itself be removed, unless it was explicitly re-registered via a - * call to addKeyEventDispatcher. + * call to {@code addKeyEventDispatcher}. *

      * If a null dispatcher is specified, if the specified dispatcher is not * in the dispatcher chain, or if this KeyboardFocusManager is specified @@ -1744,7 +1744,7 @@ * Returns this KeyboardFocusManager's KeyEventDispatcher chain as a List. * The List will not include this KeyboardFocusManager unless it was * explicitly re-registered via a call to - * addKeyEventDispatcher. If no other KeyEventDispatchers are + * {@code addKeyEventDispatcher}. If no other KeyEventDispatchers are * registered, implementations are free to return null or a List of length * 0. Client code should not assume one behavior over another, nor should * it assume that the behavior, once established, will not change. @@ -1770,8 +1770,8 @@ * of the KeyEvent's final resolution. KeyEventPostProcessors * will be notified in the order in which they were added; the current * KeyboardFocusManager will be notified last. Notifications will halt - * as soon as one KeyEventPostProcessor returns true from its - * postProcessKeyEvent method. There is no limit to the + * as soon as one KeyEventPostProcessor returns {@code true} from its + * {@code postProcessKeyEvent} method. There is no limit to the * total number of KeyEventPostProcessors that can be added, nor to the * number of times that a particular KeyEventPostProcessor instance can be * added. @@ -1804,7 +1804,7 @@ * Removes a previously added KeyEventPostProcessor from this * KeyboardFocusManager's post-processor chain. This KeyboardFocusManager * cannot itself be entirely removed from the chain. Only additional - * references added via addKeyEventPostProcessor can be + * references added via {@code addKeyEventPostProcessor} can be * removed. *

      * If a null post-processor is specified, if the specified post-processor @@ -1835,7 +1835,7 @@ /** * Returns this KeyboardFocusManager's KeyEventPostProcessor chain as a * List. The List will not include this KeyboardFocusManager unless it was - * explicitly added via a call to addKeyEventPostProcessor. If + * explicitly added via a call to {@code addKeyEventPostProcessor}. If * no KeyEventPostProcessors are registered, implementations are free to * return null or a List of length 0. Client code should not assume one * behavior over another, nor should it assume that the behavior, once @@ -1924,14 +1924,14 @@ * These events should be dispatched based on the KeyboardFocusManager's * notion of the focus owner and the focused and active Windows, sometimes * overriding the source of the specified AWTEvent. Dispatching must be - * done using redispatchEvent to prevent the AWT event + * done using {@code redispatchEvent} to prevent the AWT event * dispatcher from recursively requesting that the KeyboardFocusManager - * dispatch the event again. If this method returns false, + * dispatch the event again. If this method returns {@code false}, * then the AWT event dispatcher will attempt to dispatch the event itself. * * @param e the AWTEvent to be dispatched - * @return true if this method dispatched the event; - * false otherwise + * @return {@code true} if this method dispatched the event; + * {@code false} otherwise * @see #redispatchEvent * @see #dispatchKeyEvent */ @@ -1941,9 +1941,9 @@ * Redispatches an AWTEvent in such a way that the AWT event dispatcher * will not recursively request that the KeyboardFocusManager, or any * installed KeyEventDispatchers, dispatch the event again. Client - * implementations of dispatchEvent and client-defined - * KeyEventDispatchers must call redispatchEvent(target, e) - * instead of target.dispatchEvent(e) to dispatch an event. + * implementations of {@code dispatchEvent} and client-defined + * KeyEventDispatchers must call {@code redispatchEvent(target, e)} + * instead of {@code target.dispatchEvent(e)} to dispatch an event. *

      * This method is intended to be used only by KeyboardFocusManagers and * KeyEventDispatchers. It is not for general client use. @@ -1960,30 +1960,30 @@ } /** - * Typically this method will be called by dispatchEvent if no + * Typically this method will be called by {@code dispatchEvent} if no * other KeyEventDispatcher in the dispatcher chain dispatched the * KeyEvent, or if no other KeyEventDispatchers are registered. If an - * implementation of this method returns false, - * dispatchEvent may try to dispatch the KeyEvent itself, or - * may simply return false. If true is returned, - * dispatchEvent should return true as well. + * implementation of this method returns {@code false}, + * {@code dispatchEvent} may try to dispatch the KeyEvent itself, or + * may simply return {@code false}. If {@code true} is returned, + * {@code dispatchEvent} should return {@code true} as well. * * @param e the KeyEvent which the current KeyboardFocusManager has * requested that this KeyEventDispatcher dispatch - * @return true if the KeyEvent was dispatched; - * false otherwise + * @return {@code true} if the KeyEvent was dispatched; + * {@code false} otherwise * @see #dispatchEvent */ public abstract boolean dispatchKeyEvent(KeyEvent e); /** - * This method will be called by dispatchKeyEvent. + * This method will be called by {@code dispatchKeyEvent}. * By default, this method will handle any unconsumed KeyEvents that - * map to an AWT MenuShortcut by consuming the event + * map to an AWT {@code MenuShortcut} by consuming the event * and activating the shortcut. * * @param e the KeyEvent to post-process - * @return true to indicate that no other + * @return {@code true} to indicate that no other * KeyEventPostProcessor will be notified of the KeyEvent. * @see #dispatchKeyEvent * @see MenuShortcut @@ -2015,8 +2015,8 @@ * the KeyboardFocusManager to delay dispatching of KeyEvents with * timestamps later than the specified time stamp until the specified * Component receives a FOCUS_GAINED event, or the AWT cancels the delay - * request by invoking dequeueKeyEvents or - * discardKeyEvents. + * request by invoking {@code dequeueKeyEvents} or + * {@code discardKeyEvents}. * * @param after timestamp of current event, or the current, system time if * the current event has no timestamp, or the AWT cannot determine @@ -2032,16 +2032,16 @@ /** * Called by the AWT to notify the KeyboardFocusManager that it should * cancel delayed dispatching of KeyEvents. All KeyEvents which were - * enqueued because of a call to enqueueKeyEvents with the + * enqueued because of a call to {@code enqueueKeyEvents} with the * same timestamp and Component should be released for normal dispatching * to the current focus owner. If the given timestamp is less than zero, * the outstanding enqueue request for the given Component with the * oldest timestamp (if any) should be cancelled. * * @param after the timestamp specified in the call to - * enqueueKeyEvents, or any value < 0 + * {@code enqueueKeyEvents}, or any value < 0 * @param untilFocused the Component specified in the call to - * enqueueKeyEvents + * {@code enqueueKeyEvents} * @see #enqueueKeyEvents * @see #discardKeyEvents */ @@ -2051,11 +2051,11 @@ /** * Called by the AWT to notify the KeyboardFocusManager that it should * cancel delayed dispatching of KeyEvents. All KeyEvents which were - * enqueued because of one or more calls to enqueueKeyEvents + * enqueued because of one or more calls to {@code enqueueKeyEvents} * with the same Component should be discarded. * * @param comp the Component specified in one or more calls to - * enqueueKeyEvents + * {@code enqueueKeyEvents} * @see #enqueueKeyEvents * @see #dequeueKeyEvents */ --- old/src/java.desktop/share/classes/java/awt/Label.java 2015-10-04 22:52:49.561273885 +0400 +++ new/src/java.desktop/share/classes/java/awt/Label.java 2015-10-04 22:52:49.373273894 +0400 @@ -30,7 +30,7 @@ import javax.accessibility.*; /** - * A Label object is a component for placing text in a + * A {@code Label} object is a component for placing text in a * container. A label displays a single line of read-only text. * The text can be changed by the application, but a user cannot edit it * directly. @@ -107,7 +107,7 @@ /** * Constructs an empty label. - * The text of the label is the empty string "". + * The text of the label is the empty string {@code ""}. * @exception HeadlessException if GraphicsEnvironment.isHeadless() * returns true. * @see java.awt.GraphicsEnvironment#isHeadless @@ -120,7 +120,7 @@ * Constructs a new label with the specified string of text, * left justified. * @param text the string that the label presents. - * A null value + * A {@code null} value * will be accepted without causing a NullPointerException * to be thrown. * @exception HeadlessException if GraphicsEnvironment.isHeadless() @@ -134,10 +134,10 @@ /** * Constructs a new label that presents the specified string of * text with the specified alignment. - * Possible values for alignment are Label.LEFT, - * Label.RIGHT, and Label.CENTER. + * Possible values for {@code alignment} are {@code Label.LEFT}, + * {@code Label.RIGHT}, and {@code Label.CENTER}. * @param text the string that the label presents. - * A null value + * A {@code null} value * will be accepted without causing a NullPointerException * to be thrown. * @param alignment the alignment value. @@ -154,8 +154,8 @@ /** * Read a label from an object input stream. * @exception HeadlessException if - * GraphicsEnvironment.isHeadless() returns - * true + * {@code GraphicsEnvironment.isHeadless()} returns + * {@code true} * @serial * @since 1.4 * @see java.awt.GraphicsEnvironment#isHeadless @@ -168,7 +168,7 @@ /** * Construct a name for this component. Called by getName() when the - * name is null. + * name is {@code null}. */ String constructComponentName() { synchronized (Label.class) { @@ -191,8 +191,8 @@ /** * Gets the current alignment of this label. Possible values are - * Label.LEFT, Label.RIGHT, and - * Label.CENTER. + * {@code Label.LEFT}, {@code Label.RIGHT}, and + * {@code Label.CENTER}. * @return the alignment of this label * @see java.awt.Label#setAlignment */ @@ -202,11 +202,11 @@ /** * Sets the alignment for this label to the specified alignment. - * Possible values are Label.LEFT, - * Label.RIGHT, and Label.CENTER. + * Possible values are {@code Label.LEFT}, + * {@code Label.RIGHT}, and {@code Label.CENTER}. * @param alignment the alignment to be set. * @exception IllegalArgumentException if an improper value for - * alignment is given. + * {@code alignment} is given. * @see java.awt.Label#getAlignment */ public synchronized void setAlignment(int alignment) { @@ -226,8 +226,8 @@ /** * Gets the text of this label. - * @return the text of this label, or null if - * the text has been set to null. + * @return the text of this label, or {@code null} if + * the text has been set to {@code null}. * @see java.awt.Label#setText */ public String getText() { @@ -237,9 +237,9 @@ /** * Sets the text for this label to the specified text. * @param text the text that this label displays. If - * text is null, it is + * {@code text} is {@code null}, it is * treated for display purposes like an empty - * string "". + * string {@code ""}. * @see java.awt.Label#getText */ public void setText(String text) { @@ -263,11 +263,11 @@ } /** - * Returns a string representing the state of this Label. + * Returns a string representing the state of this {@code Label}. * This method is intended to be used only for debugging purposes, and the * content and format of the returned string may vary between * implementations. The returned string may be empty but may not be - * null. + * {@code null}. * * @return the parameter string of this label */ @@ -311,7 +311,7 @@ /** * This class implements accessibility support for the - * Label class. It provides an implementation of the + * {@code Label} class. It provides an implementation of the * Java Accessibility API appropriate to label user-interface elements. * @since 1.3 */ --- old/src/java.desktop/share/classes/java/awt/LayoutManager.java 2015-10-04 22:52:50.089273862 +0400 +++ new/src/java.desktop/share/classes/java/awt/LayoutManager.java 2015-10-04 22:52:49.897273870 +0400 @@ -26,13 +26,13 @@ /** * Defines the interface for classes that know how to lay out - * Containers. + * {@code Container}s. *

      * Swing's painting architecture assumes the children of a - * JComponent do not overlap. If a - * JComponent's LayoutManager allows - * children to overlap, the JComponent must override - * isOptimizedDrawingEnabled to return false. + * {@code JComponent} do not overlap. If a + * {@code JComponent}'s {@code LayoutManager} allows + * children to overlap, the {@code JComponent} must override + * {@code isOptimizedDrawingEnabled} to return false. * * @see Container * @see javax.swing.JComponent#isOptimizedDrawingEnabled @@ -43,9 +43,9 @@ public interface LayoutManager { /** * If the layout manager uses a per-component string, - * adds the component comp to the layout, + * adds the component {@code comp} to the layout, * associating it - * with the string specified by name. + * with the string specified by {@code name}. * * @param name the string to be associated with the component * @param comp the component to be added --- old/src/java.desktop/share/classes/java/awt/LinearGradientPaintContext.java 2015-10-04 22:52:50.629273837 +0400 +++ new/src/java.desktop/share/classes/java/awt/LinearGradientPaintContext.java 2015-10-04 22:52:50.437273846 +0400 @@ -56,7 +56,7 @@ * @param paint the {@code LinearGradientPaint} from which this context * is created * @param cm {@code ColorModel} that receives - * the Paint data. This is used only as a hint. + * the {@code Paint} data. This is used only as a hint. * @param deviceBounds the device space bounding box of the * graphics primitive being rendered * @param userBounds the user space bounding box of the --- old/src/java.desktop/share/classes/java/awt/List.java 2015-10-04 22:52:51.149273814 +0400 +++ new/src/java.desktop/share/classes/java/awt/List.java 2015-10-04 22:52:50.961273823 +0400 @@ -36,7 +36,7 @@ /** - * The List component presents the user with a + * The {@code List} component presents the user with a * scrolling list of text items. The list can be set up so that * the user can choose either one item or multiple items. *

      @@ -57,7 +57,7 @@ * cnt.add(lst); *


      *

      - * where cnt is a container, produces the following + * where {@code cnt} is a container, produces the following * scrolling list: *

      * false. If the List does not allow multiple + * list is {@code false}. If the List does not allow multiple * selections, selecting an item causes any other selected item * to be deselected. *

      * Note that the list in the example shown was created with four visible * rows. Once the list has been created, the number of visible rows - * cannot be changed. A default List is created with - * four rows, so that lst = new List() is equivalent to - * list = new List(4, false). + * cannot be changed. A default {@code List} is created with + * four rows, so that {@code lst = new List()} is equivalent to + * {@code list = new List(4, false)}. *

      * Beginning with Java 1.1, the Abstract Window Toolkit - * sends the List object all mouse, keyboard, and focus events + * sends the {@code List} object all mouse, keyboard, and focus events * that occur over it. (The old AWT event model is being maintained * only for backwards compatibility, and its use is discouraged.) *

      * When an item is selected or deselected by the user, AWT sends an instance - * of ItemEvent to the list. + * of {@code ItemEvent} to the list. * When the user double-clicks on an item in a scrolling list, - * AWT sends an instance of ActionEvent to the + * AWT sends an instance of {@code ActionEvent} to the * list following the item event. AWT also generates an action event * when the user presses the return key while an item in the * list is selected. *

      * If an application wants to perform some action based on an item * in this list being selected or activated by the user, it should implement - * ItemListener or ActionListener + * {@code ItemListener} or {@code ActionListener} * as appropriate and register the new listener to receive * events from this list. *

      @@ -119,7 +119,7 @@ /** * This field will represent the number of visible rows in the - * List Component. It is specified only once, and + * {@code List} Component. It is specified only once, and * that is when the list component is actually * created. It will never change. * @@ -129,11 +129,11 @@ int rows = 0; /** - * multipleMode is a variable that will - * be set to true if a list component is to be set to + * {@code multipleMode} is a variable that will + * be set to {@code true} if a list component is to be set to * multiple selection mode, that is where the user can * select more than one item in a list at one time. - * multipleMode will be set to false if the + * {@code multipleMode} will be set to false if the * list component is set to single selection, that is where * the user can only select one item on the list at any * one time. @@ -145,7 +145,7 @@ boolean multipleMode = false; /** - * selected is an array that will contain + * {@code selected} is an array that will contain * the indices of items that have been selected. * * @serial @@ -178,7 +178,7 @@ * Creates a new scrolling list. * By default, there are four visible lines and multiple selections are * not allowed. Note that this is a convenience method for - * List(0, false). Also note that the number of visible + * {@code List(0, false)}. Also note that the number of visible * lines in the list cannot be changed after it has been created. * @exception HeadlessException if GraphicsEnvironment.isHeadless() * returns true. @@ -192,7 +192,7 @@ * Creates a new scrolling list initialized with the specified * number of visible lines. By default, multiple selections are * not allowed. Note that this is a convenience method for - * List(rows, false). Also note that the number + * {@code List(rows, false)}. Also note that the number * of visible rows in the list cannot be changed after it has * been created. * @param rows the number of items to show. @@ -217,12 +217,12 @@ * the list will be created with a default of four rows. * Also note that the number of visible rows in the list cannot * be changed after it has been created. - * If the value of multipleMode is - * true, then the user can select multiple items from - * the list. If it is false, only one item at a time + * If the value of {@code multipleMode} is + * {@code true}, then the user can select multiple items from + * the list. If it is {@code false}, only one item at a time * can be selected. * @param rows the number of items to show. - * @param multipleMode if true, + * @param multipleMode if {@code true}, * then multiple selections are allowed; * otherwise, only one item can be selected at a time. * @exception HeadlessException if GraphicsEnvironment.isHeadless() @@ -237,7 +237,7 @@ /** * Construct a name for this component. Called by - * getName when the name is null. + * {@code getName} when the name is {@code null}. */ String constructComponentName() { synchronized (List.class) { @@ -286,7 +286,7 @@ * * @return the number of items in the list * @deprecated As of JDK version 1.1, - * replaced by getItemCount(). + * replaced by {@code getItemCount()}. */ @Deprecated public int countItems() { @@ -339,7 +339,7 @@ * Adds the specified item to the end of the list. * * @param item the item to be added - * @deprecated replaced by add(String). + * @deprecated replaced by {@code add(String)}. */ @Deprecated public void addItem(String item) { @@ -354,8 +354,8 @@ * the number of items in the list, then the item is added * to the end of the list. * @param item the item to be added; - * if this parameter is null then the item is - * treated as an empty string, "" + * if this parameter is {@code null} then the item is + * treated as an empty string, {@code ""} * @param index the position at which to add the item * @since 1.1 */ @@ -369,7 +369,7 @@ * * @param item the item to be added * @param index the position at which to add the item - * @deprecated replaced by add(String, int). + * @deprecated replaced by {@code add(String, int)}. */ @Deprecated public synchronized void addItem(String item, int index) { @@ -398,7 +398,7 @@ * with the new string. * @param newValue a new string to replace an existing item * @param index the position of the item to replace - * @exception ArrayIndexOutOfBoundsException if index + * @exception ArrayIndexOutOfBoundsException if {@code index} * is out of range */ public synchronized void replaceItem(String newValue, int index) { @@ -418,7 +418,7 @@ /** * @deprecated As of JDK version 1.1, - * replaced by removeAll(). + * replaced by {@code removeAll()}. */ @Deprecated public synchronized void clear() { @@ -458,8 +458,8 @@ * @see #add(String, int) * @since 1.1 * @exception ArrayIndexOutOfBoundsException - * if the position is less than 0 or - * greater than getItemCount()-1 + * if the {@code position} is less than 0 or + * greater than {@code getItemCount()-1} */ public void remove(int position) { delItem(position); @@ -469,8 +469,8 @@ * Removes the item at the specified position. * * @param position the index of the item to delete - * @deprecated replaced by remove(String) - * and remove(int). + * @deprecated replaced by {@code remove(String)} + * and {@code remove(int)}. */ @Deprecated public void delItem(int position) { @@ -482,7 +482,7 @@ * * @return the index of the selected item; * if no item is selected, or if multiple items are - * selected, -1 is returned. + * selected, {@code -1} is returned. * @see #select * @see #deselect * @see #isIndexSelected @@ -514,7 +514,7 @@ * * @return the selected item on the list; * if no item is selected, or if multiple items are - * selected, null is returned. + * selected, {@code null} is returned. * @see #select * @see #deselect * @see #isIndexSelected @@ -544,7 +544,7 @@ /** * Gets the selected items on this scrolling list in an array of Objects. - * @return an array of Objects representing the + * @return an array of {@code Object}s representing the * selected items on this scrolling list; * if no item is selected, a zero-length array is returned. * @see #getSelectedItems @@ -563,8 +563,8 @@ *

      Note that this method should be primarily used to * initially select an item in this component. * Programmatically calling this method will not trigger - * an ItemEvent. The only way to trigger an - * ItemEvent is by user interaction. + * an {@code ItemEvent}. The only way to trigger an + * {@code ItemEvent} is by user interaction. * * @param index the position of the item to select * @see #getSelectedItem @@ -649,8 +649,8 @@ * Determines if the specified item in this scrolling list is * selected. * @param index the item to be checked - * @return true if the specified item has been - * selected; false otherwise + * @return {@code true} if the specified item has been + * selected; {@code false} otherwise * @see #select * @see #deselect * @since 1.1 @@ -665,7 +665,7 @@ * @param index specifies the item to be checked * @return {@code true} if the item is selected; otherwise {@code false} * @deprecated As of JDK version 1.1, - * replaced by isIndexSelected(int). + * replaced by {@code isIndexSelected(int)}. */ @Deprecated public boolean isSelected(int index) { @@ -680,7 +680,7 @@ /** * Gets the number of visible lines in this list. Note that - * once the List has been created, this number + * once the {@code List} has been created, this number * will never change. * @return the number of visible lines in this scrolling list */ @@ -691,8 +691,8 @@ /** * Determines whether this list allows multiple selections. * - * @return true if this list allows multiple - * selections; otherwise, false + * @return {@code true} if this list allows multiple + * selections; otherwise, {@code false} * @see #setMultipleMode * @since 1.1 */ @@ -706,7 +706,7 @@ * @return {@code true} if this list allows multiple * selections; otherwise {@code false} * @deprecated As of JDK version 1.1, - * replaced by isMultipleMode(). + * replaced by {@code isMultipleMode()}. */ @Deprecated public boolean allowsMultipleSelections() { @@ -721,7 +721,7 @@ * If a selected item has the location cursor, only that * item will remain selected. If no selected item has the * location cursor, all items will be deselected. - * @param b if true then multiple selections + * @param b if {@code true} then multiple selections * are allowed; otherwise, only one item from * the list can be selected at once * @see #isMultipleMode @@ -736,7 +736,7 @@ * * @param b {@code true} to enable multiple mode, {@code false} otherwise * @deprecated As of JDK version 1.1, - * replaced by setMultipleMode(boolean). + * replaced by {@code setMultipleMode(boolean)}. */ @Deprecated public synchronized void setMultipleSelections(boolean b) { @@ -751,7 +751,7 @@ /** * Gets the index of the item that was last made visible by - * the method makeVisible. + * the method {@code makeVisible}. * @return the index of the item that was last made visible * @see #makeVisible */ @@ -792,7 +792,7 @@ * @param rows the number of rows * @return the preferred dimensions for displaying this list * @deprecated As of JDK version 1.1, - * replaced by getPreferredSize(int). + * replaced by {@code getPreferredSize(int)}. */ @Deprecated public Dimension preferredSize(int rows) { @@ -816,7 +816,7 @@ /** * @deprecated As of JDK version 1.1, - * replaced by getPreferredSize(). + * replaced by {@code getPreferredSize()}. */ @Deprecated public Dimension preferredSize() { @@ -847,7 +847,7 @@ * @param rows the number of rows in the list * @return the minimum dimensions for displaying this list * @deprecated As of JDK version 1.1, - * replaced by getMinimumSize(int). + * replaced by {@code getMinimumSize(int)}. */ @Deprecated public Dimension minimumSize(int rows) { @@ -872,7 +872,7 @@ /** * @deprecated As of JDK version 1.1, - * replaced by getMinimumSize(). + * replaced by {@code getMinimumSize()}. */ @Deprecated public Dimension minimumSize() { @@ -884,8 +884,8 @@ /** * Adds the specified item listener to receive item events from * this list. Item events are sent in response to user input, but not - * in response to calls to select or deselect. - * If listener l is null, + * in response to calls to {@code select} or {@code deselect}. + * If listener {@code l} is {@code null}, * no exception is thrown and no action is performed. *

      Refer to AWT Threading Issues for details on AWT's threading model. @@ -910,7 +910,7 @@ /** * Removes the specified item listener so that it no longer * receives item events from this list. - * If listener l is null, + * If listener {@code l} is {@code null}, * no exception is thrown and no action is performed. *

      Refer to AWT Threading Issues for details on AWT's threading model. @@ -933,7 +933,7 @@ * Returns an array of all the item listeners * registered on this list. * - * @return all of this list's ItemListeners + * @return all of this list's {@code ItemListener}s * or an empty array if no item * listeners are currently registered * @@ -953,7 +953,7 @@ * on a list item or types Enter when the list has the keyboard * focus. *

      - * If listener l is null, + * If listener {@code l} is {@code null}, * no exception is thrown and no action is performed. *

      Refer to AWT Threading Issues for details on AWT's threading model. @@ -977,7 +977,7 @@ * Removes the specified action listener so that it no longer * receives action events from this list. Action events * occur when a user double-clicks on a list item. - * If listener l is null, + * If listener {@code l} is {@code null}, * no exception is thrown and no action is performed. *

      Refer to AWT Threading Issues for details on AWT's threading model. @@ -1000,7 +1000,7 @@ * Returns an array of all the action listeners * registered on this list. * - * @return all of this list's ActionListeners + * @return all of this list's {@code ActionListener}s * or an empty array if no action * listeners are currently registered * @@ -1017,16 +1017,16 @@ /** * Returns an array of all the objects currently registered * as FooListeners - * upon this List. + * upon this {@code List}. * FooListeners are registered using the * addFooListener method. * *

      - * You can specify the listenerType argument + * You can specify the {@code listenerType} argument * with a class literal, such as * FooListener.class. * For example, you can query a - * List l + * {@code List l} * for its item listeners with the following code: * *

      ItemListener[] ils = (ItemListener[])(l.getListeners(ItemListener.class));
      @@ -1035,14 +1035,14 @@ * * @param listenerType the type of listeners requested; this parameter * should specify an interface that descends from - * java.util.EventListener + * {@code java.util.EventListener} * @return an array of all objects registered as * FooListeners on this list, * or an empty array if no such * listeners have been added - * @exception ClassCastException if listenerType + * @exception ClassCastException if {@code listenerType} * doesn't specify a class or interface that implements - * java.util.EventListener + * {@code java.util.EventListener} * * @see #getItemListeners * @since 1.3 @@ -1082,13 +1082,13 @@ /** * Processes events on this scrolling list. If an event is - * an instance of ItemEvent, it invokes the - * processItemEvent method. Else, if the - * event is an instance of ActionEvent, - * it invokes processActionEvent. + * an instance of {@code ItemEvent}, it invokes the + * {@code processItemEvent} method. Else, if the + * event is an instance of {@code ActionEvent}, + * it invokes {@code processActionEvent}. * If the event is not an item event or an action event, - * it invokes processEvent on the superclass. - *

      Note that if the event parameter is null + * it invokes {@code processEvent} on the superclass. + *

      Note that if the event parameter is {@code null} * the behavior is unspecified and may result in an * exception. * @@ -1113,17 +1113,17 @@ /** * Processes item events occurring on this list by * dispatching them to any registered - * ItemListener objects. + * {@code ItemListener} objects. *

      * This method is not called unless item events are * enabled for this component. Item events are enabled * when one of the following occurs: *

        - *
      • An ItemListener object is registered - * via addItemListener. - *
      • Item events are enabled via enableEvents. + *
      • An {@code ItemListener} object is registered + * via {@code addItemListener}. + *
      • Item events are enabled via {@code enableEvents}. *
      - *

      Note that if the event parameter is null + *

      Note that if the event parameter is {@code null} * the behavior is unspecified and may result in an * exception. * @@ -1144,17 +1144,17 @@ /** * Processes action events occurring on this component * by dispatching them to any registered - * ActionListener objects. + * {@code ActionListener} objects. *

      * This method is not called unless action events are * enabled for this component. Action events are enabled * when one of the following occurs: *

        - *
      • An ActionListener object is registered - * via addActionListener. - *
      • Action events are enabled via enableEvents. + *
      • An {@code ActionListener} object is registered + * via {@code addActionListener}. + *
      • Action events are enabled via {@code enableEvents}. *
      - *

      Note that if the event parameter is null + *

      Note that if the event parameter is {@code null} * the behavior is unspecified and may result in an * exception. * @@ -1209,7 +1209,7 @@ */ /** - * The List component's + * The {@code List} component's * Serialized Data Version. * * @serial @@ -1218,22 +1218,22 @@ /** * Writes default serializable fields to stream. Writes - * a list of serializable ItemListeners - * and ActionListeners as optional data. + * a list of serializable {@code ItemListeners} + * and {@code ActionListeners} as optional data. * The non-serializable listeners are detected and * no attempt is made to serialize them. * - * @serialData null terminated sequence of 0 - * or more pairs; the pair consists of a String - * and an Object; the String + * @serialData {@code null} terminated sequence of 0 + * or more pairs; the pair consists of a {@code String} + * and an {@code Object}; the {@code String} * indicates the type of object and is one of the * following: - * itemListenerK indicating an - * ItemListener object; - * actionListenerK indicating an - * ActionListener object + * {@code itemListenerK} indicating an + * {@code ItemListener} object; + * {@code actionListenerK} indicating an + * {@code ActionListener} object * - * @param s the ObjectOutputStream to write + * @param s the {@code ObjectOutputStream} to write * @see AWTEventMulticaster#save(ObjectOutputStream, String, EventListener) * @see java.awt.Component#itemListenerK * @see java.awt.Component#actionListenerK @@ -1256,17 +1256,17 @@ } /** - * Reads the ObjectInputStream and if it - * isn't null adds a listener to receive + * Reads the {@code ObjectInputStream} and if it + * isn't {@code null} adds a listener to receive * both item events and action events (as specified * by the key stored in the stream) fired by the - * List. + * {@code List}. * Unrecognized keys or values will be ignored. * - * @param s the ObjectInputStream to write + * @param s the {@code ObjectInputStream} to write * @exception HeadlessException if - * GraphicsEnvironment.isHeadless returns - * true + * {@code GraphicsEnvironment.isHeadless} returns + * {@code true} * @see #removeItemListener(ItemListener) * @see #addItemListener(ItemListener) * @see java.awt.GraphicsEnvironment#isHeadless @@ -1300,13 +1300,13 @@ /** - * Gets the AccessibleContext associated with this - * List. For lists, the AccessibleContext - * takes the form of an AccessibleAWTList. - * A new AccessibleAWTList instance is created, if necessary. + * Gets the {@code AccessibleContext} associated with this + * {@code List}. For lists, the {@code AccessibleContext} + * takes the form of an {@code AccessibleAWTList}. + * A new {@code AccessibleAWTList} instance is created, if necessary. * - * @return an AccessibleAWTList that serves as the - * AccessibleContext of this List + * @return an {@code AccessibleAWTList} that serves as the + * {@code AccessibleContext} of this {@code List} * @since 1.3 */ public AccessibleContext getAccessibleContext() { @@ -1318,7 +1318,7 @@ /** * This class implements accessibility support for the - * List class. It provides an implementation of the + * {@code List} class. It provides an implementation of the * Java Accessibility API appropriate to list user-interface elements. * @since 1.3 */ @@ -1930,13 +1930,13 @@ } /** - * Returns the Accessible child, if one exists, - * contained at the local coordinate Point. + * Returns the {@code Accessible} child, if one exists, + * contained at the local coordinate {@code Point}. * * @param p the point relative to the coordinate system of this * object - * @return the Accessible, if it exists, - * at the specified location; otherwise null + * @return the {@code Accessible}, if it exists, + * at the specified location; otherwise {@code null} */ public Accessible getAccessibleAt(Point p) { return null; // object cannot have children! @@ -1945,8 +1945,8 @@ /** * Returns whether this object can accept focus or not. Objects * that can accept focus will also have the - * AccessibleState.FOCUSABLE state set in their - * AccessibleStateSet. + * {@code AccessibleState.FOCUSABLE} state set in their + * {@code AccessibleStateSet}. * * @return true if object can accept focus; otherwise false * @see AccessibleContext#getAccessibleStateSet --- old/src/java.desktop/share/classes/java/awt/MediaTracker.java 2015-10-04 22:52:51.709273789 +0400 +++ new/src/java.desktop/share/classes/java/awt/MediaTracker.java 2015-10-04 22:52:51.517273798 +0400 @@ -31,13 +31,13 @@ import sun.awt.image.MultiResolutionToolkitImage; /** - * The MediaTracker class is a utility class to track + * The {@code MediaTracker} class is a utility class to track * the status of a number of media objects. Media objects could * include audio clips as well as images, though currently only * images are supported. *

      * To use a media tracker, create an instance of - * MediaTracker and call its addImage + * {@code MediaTracker} and call its {@code addImage} * method for each image to be tracked. In addition, each image can * be assigned a unique identifier. This identifier controls the * priority order in which the images are fetched. It can also be used @@ -52,20 +52,20 @@ * due to the multi-part nature of animated image * loading and painting, * but it is supported. - * MediaTracker treats an animated image + * {@code MediaTracker} treats an animated image * as completely loaded * when the first frame is completely loaded. - * At that point, the MediaTracker + * At that point, the {@code MediaTracker} * signals any waiters * that the image is completely loaded. - * If no ImageObservers are observing the image + * If no {@code ImageObserver}s are observing the image * when the first frame has finished loading, * the image might flush itself * to conserve resources * (see {@link Image#flush()}). * *

      - * Here is an example of using MediaTracker: + * Here is an example of using {@code MediaTracker}: * *


      {@code
        * import java.applet.Applet;
      @@ -169,7 +169,7 @@
       public class MediaTracker implements java.io.Serializable {
       
           /**
      -     * A given Component that will be
      +     * A given {@code Component} that will be
            * tracked by a media tracker where the image will
            * eventually be drawn.
            *
      @@ -178,8 +178,8 @@
            */
           Component target;
           /**
      -     * The head of the list of Images that is being
      -     * tracked by the MediaTracker.
      +     * The head of the list of {@code Images} that is being
      +     * tracked by the {@code MediaTracker}.
            *
            * @serial
            * @see #addImage(Image, int)
      @@ -277,11 +277,11 @@
            * 

      * If there is an error while loading or scaling an image, then that * image is considered to have finished loading. Use the - * isErrorAny or isErrorID methods to + * {@code isErrorAny} or {@code isErrorID} methods to * check for errors. - * @return true if all images have finished loading, + * @return {@code true} if all images have finished loading, * have been aborted, or have encountered - * an error; false otherwise + * an error; {@code false} otherwise * @see java.awt.MediaTracker#checkAll(boolean) * @see java.awt.MediaTracker#checkID * @see java.awt.MediaTracker#isErrorAny @@ -295,19 +295,19 @@ * Checks to see if all images being tracked by this media tracker * have finished loading. *

      - * If the value of the load flag is true, + * If the value of the {@code load} flag is {@code true}, * then this method starts loading any images that are not yet * being loaded. *

      * If there is an error while loading or scaling an image, that * image is considered to have finished loading. Use the - * isErrorAny and isErrorID methods to + * {@code isErrorAny} and {@code isErrorID} methods to * check for errors. - * @param load if true, start loading any + * @param load if {@code true}, start loading any * images that are not yet being loaded - * @return true if all images have finished loading, + * @return {@code true} if all images have finished loading, * have been aborted, or have encountered - * an error; false otherwise + * an error; {@code false} otherwise * @see java.awt.MediaTracker#checkID * @see java.awt.MediaTracker#checkAll() * @see java.awt.MediaTracker#isErrorAny() @@ -331,9 +331,9 @@ /** * Checks the error status of all of the images. - * @return true if any of the images tracked + * @return {@code true} if any of the images tracked * by this media tracker had an error during - * loading; false otherwise + * loading; {@code false} otherwise * @see java.awt.MediaTracker#isErrorID * @see java.awt.MediaTracker#getErrorsAny */ @@ -352,7 +352,7 @@ * Returns a list of all media that have encountered an error. * @return an array of media objects tracked by this * media tracker that have encountered - * an error, or null if + * an error, or {@code null} if * there are none with errors * @see java.awt.MediaTracker#isErrorAny * @see java.awt.MediaTracker#getErrorsID @@ -388,7 +388,7 @@ *

      * If there is an error while loading or scaling an image, then that * image is considered to have finished loading. Use the - * isErrorAny or isErrorID methods to + * {@code isErrorAny} or {@code isErrorID} methods to * check for errors. * @see java.awt.MediaTracker#waitForID(int) * @see java.awt.MediaTracker#waitForAll(long) @@ -405,16 +405,16 @@ * Starts loading all images tracked by this media tracker. This * method waits until all the images being tracked have finished * loading, or until the length of time specified in milliseconds - * by the ms argument has passed. + * by the {@code ms} argument has passed. *

      * If there is an error while loading or scaling an image, then * that image is considered to have finished loading. Use the - * isErrorAny or isErrorID methods to + * {@code isErrorAny} or {@code isErrorID} methods to * check for errors. * @param ms the number of milliseconds to wait * for the loading to complete - * @return true if all images were successfully - * loaded; false otherwise + * @return {@code true} if all images were successfully + * loaded; {@code false} otherwise * @see java.awt.MediaTracker#waitForID(int) * @see java.awt.MediaTracker#waitForAll(long) * @see java.awt.MediaTracker#isErrorAny @@ -451,15 +451,15 @@ * status of all media that are tracked by this media tracker. *

      * Possible flags defined by the - * MediaTracker class are LOADING, - * ABORTED, ERRORED, and - * COMPLETE. An image that hasn't started + * {@code MediaTracker} class are {@code LOADING}, + * {@code ABORTED}, {@code ERRORED}, and + * {@code COMPLETE}. An image that hasn't started * loading has zero as its status. *

      - * If the value of load is true, then + * If the value of {@code load} is {@code true}, then * this method starts loading any images that are not yet being loaded. * - * @param load if true, start loading + * @param load if {@code true}, start loading * any images that are not yet being loaded * @return the bitwise inclusive OR of the status of * all of the media being tracked @@ -492,12 +492,12 @@ *

      * If there is an error while loading or scaling an image, then that * image is considered to have finished loading. Use the - * isErrorAny or isErrorID methods to + * {@code isErrorAny} or {@code isErrorID} methods to * check for errors. * @param id the identifier of the images to check - * @return true if all images have finished loading, + * @return {@code true} if all images have finished loading, * have been aborted, or have encountered - * an error; false otherwise + * an error; {@code false} otherwise * @see java.awt.MediaTracker#checkID(int, boolean) * @see java.awt.MediaTracker#checkAll() * @see java.awt.MediaTracker#isErrorAny() @@ -511,20 +511,20 @@ * Checks to see if all images tracked by this media tracker that * are tagged with the specified identifier have finished loading. *

      - * If the value of the load flag is true, + * If the value of the {@code load} flag is {@code true}, * then this method starts loading any images that are not yet * being loaded. *

      * If there is an error while loading or scaling an image, then that * image is considered to have finished loading. Use the - * isErrorAny or isErrorID methods to + * {@code isErrorAny} or {@code isErrorID} methods to * check for errors. * @param id the identifier of the images to check - * @param load if true, start loading any + * @param load if {@code true}, start loading any * images that are not yet being loaded - * @return true if all images have finished loading, + * @return {@code true} if all images have finished loading, * have been aborted, or have encountered - * an error; false otherwise + * an error; {@code false} otherwise * @see java.awt.MediaTracker#checkID(int, boolean) * @see java.awt.MediaTracker#checkAll() * @see java.awt.MediaTracker#isErrorAny() @@ -553,9 +553,9 @@ * Checks the error status of all of the images tracked by this * media tracker with the specified identifier. * @param id the identifier of the images to check - * @return true if any of the images with the + * @return {@code true} if any of the images with the * specified identifier had an error during - * loading; false otherwise + * loading; {@code false} otherwise * @see java.awt.MediaTracker#isErrorAny * @see java.awt.MediaTracker#getErrorsID */ @@ -579,7 +579,7 @@ * @return an array of media objects tracked by this media * tracker with the specified identifier * that have encountered an error, or - * null if there are none with errors + * {@code null} if there are none with errors * @see java.awt.MediaTracker#isErrorID * @see java.awt.MediaTracker#isErrorAny * @see java.awt.MediaTracker#getErrorsAny @@ -619,7 +619,7 @@ *

      * If there is an error while loading or scaling an image, then that * image is considered to have finished loading. Use the - * isErrorAny and isErrorID methods to + * {@code isErrorAny} and {@code isErrorID} methods to * check for errors. * @param id the identifier of the images to check * @see java.awt.MediaTracker#waitForAll @@ -636,13 +636,13 @@ * Starts loading all images tracked by this media tracker with the * specified identifier. This method waits until all the images with * the specified identifier have finished loading, or until the - * length of time specified in milliseconds by the ms + * length of time specified in milliseconds by the {@code ms} * argument has passed. *

      * If there is an error while loading or scaling an image, then that * image is considered to have finished loading. Use the - * statusID, isErrorID, and - * isErrorAny methods to check for errors. + * {@code statusID}, {@code isErrorID}, and + * {@code isErrorAny} methods to check for errors. * @param id the identifier of the images to check * @param ms the length of time, in milliseconds, to wait * for the loading to complete @@ -686,15 +686,15 @@ * tracked by this media tracker. *

      * Possible flags defined by the - * MediaTracker class are LOADING, - * ABORTED, ERRORED, and - * COMPLETE. An image that hasn't started + * {@code MediaTracker} class are {@code LOADING}, + * {@code ABORTED}, {@code ERRORED}, and + * {@code COMPLETE}. An image that hasn't started * loading has zero as its status. *

      - * If the value of load is true, then + * If the value of {@code load} is {@code true}, then * this method starts loading any images that are not yet being loaded. * @param id the identifier of the images to check - * @param load if true, start loading + * @param load if {@code true}, start loading * any images that are not yet being loaded * @return the bitwise inclusive OR of the status of * all of the media with the specified @@ -761,7 +761,7 @@ /** * Removes the specified image from the specified tracking * ID of this media tracker. - * All instances of Image being tracked + * All instances of {@code Image} being tracked * under the specified ID are removed regardless of scale. * @param image the image to be removed * @param id the tracking ID from which to remove the image --- old/src/java.desktop/share/classes/java/awt/Menu.java 2015-10-04 22:52:52.241273765 +0400 +++ new/src/java.desktop/share/classes/java/awt/Menu.java 2015-10-04 22:52:52.053273774 +0400 @@ -34,7 +34,7 @@ import sun.awt.AWTAccessor; /** - * A Menu object is a pull-down menu component + * A {@code Menu} object is a pull-down menu component * that is deployed from a menu bar. *

      * A menu can optionally be a tear-off menu. A tear-off menu @@ -45,10 +45,10 @@ * On platforms that do not support tear-off menus, the tear-off * property is ignored. *

      - * Each item in a menu must belong to the MenuItem - * class. It can be an instance of MenuItem, a submenu - * (an instance of Menu), or a check box (an instance of - * CheckboxMenuItem). + * Each item in a menu must belong to the {@code MenuItem} + * class. It can be an instance of {@code MenuItem}, a submenu + * (an instance of {@code Menu}), or a check box (an instance of + * {@code CheckboxMenuItem}). * * @author Sami Shaio * @see java.awt.MenuItem @@ -83,8 +83,8 @@ /** * This field indicates whether the menu has the * tear of property or not. It will be set to - * true if the menu has the tear off - * property and it will be set to false + * {@code true} if the menu has the tear off + * property and it will be set to {@code false} * if it does not. * A torn off menu can be deleted by a user when * it is no longer needed. @@ -95,10 +95,10 @@ boolean tearOff; /** - * This field will be set to true + * This field will be set to {@code true} * if the Menu in question is actually a help - * menu. Otherwise it will be set to - * false. + * menu. Otherwise it will be set to + * {@code false}. * * @serial */ @@ -146,7 +146,7 @@ * support tear-off menus, this value is silently ignored. * @param label the menu's label in the menu bar, or in * another menu of which this menu is a submenu. - * @param tearOff if true, the menu + * @param tearOff if {@code true}, the menu * is a tear-off menu. * @exception HeadlessException if GraphicsEnvironment.isHeadless() * returns true. @@ -204,8 +204,8 @@ * Tear-off functionality may not be supported by all * implementations of AWT. If a particular implementation doesn't * support tear-off menus, this value is silently ignored. - * @return true if this is a tear-off menu; - * false otherwise. + * @return {@code true} if this is a tear-off menu; + * {@code false} otherwise. */ public boolean isTearOff() { return tearOff; @@ -225,7 +225,7 @@ * * @return the number of items in this menu * @deprecated As of JDK version 1.1, - * replaced by getItemCount(). + * replaced by {@code getItemCount()}. */ @Deprecated public int countItems() { @@ -304,7 +304,7 @@ * @see java.awt.Menu#add(java.lang.String) * @see java.awt.Menu#add(java.awt.MenuItem) * @exception IllegalArgumentException if the value of - * index is less than zero + * {@code index} is less than zero * @since 1.1 */ @@ -340,7 +340,7 @@ /** * Inserts a menu item with the specified label into this menu * at the specified position. This is a convenience method for - * insert(menuItem, index). + * {@code insert(menuItem, index)}. * * @param label the text on the item * @param index the position at which the menu item @@ -348,7 +348,7 @@ * @see java.awt.Menu#add(java.lang.String) * @see java.awt.Menu#add(java.awt.MenuItem) * @exception IllegalArgumentException if the value of - * index is less than zero + * {@code index} is less than zero * @since 1.1 */ @@ -369,7 +369,7 @@ * @param index the position at which the * menu separator should be inserted. * @exception IllegalArgumentException if the value of - * index is less than 0. + * {@code index} is less than 0. * @see java.awt.Menu#addSeparator * @since 1.1 */ @@ -423,7 +423,7 @@ /** * Removes the specified menu item from this menu. * @param item the item to be removed from the menu. - * If item is null + * If {@code item} is {@code null} * or is not in this menu, this method does * nothing. */ @@ -519,7 +519,7 @@ /** * Writes default serializable fields to stream. * - * @param s the ObjectOutputStream to write + * @param s the {@code ObjectOutputStream} to write * @see AWTEventMulticaster#save(ObjectOutputStream, String, EventListener) * @see #readObject(ObjectInputStream) */ @@ -530,13 +530,13 @@ } /** - * Reads the ObjectInputStream. + * Reads the {@code ObjectInputStream}. * Unrecognized keys or values will be ignored. * - * @param s the ObjectInputStream to read + * @param s the {@code ObjectInputStream} to read * @exception HeadlessException if - * GraphicsEnvironment.isHeadless returns - * true + * {@code GraphicsEnvironment.isHeadless} returns + * {@code true} * @see java.awt.GraphicsEnvironment#isHeadless * @see #writeObject(ObjectOutputStream) */ @@ -552,11 +552,11 @@ } /** - * Returns a string representing the state of this Menu. + * Returns a string representing the state of this {@code Menu}. * This method is intended to be used only for debugging purposes, and the * content and format of the returned string may vary between * implementations. The returned string may be empty but may not be - * null. + * {@code null}. * * @return the parameter string of this menu */ @@ -606,7 +606,7 @@ * subclassed by menu component developers. *

      * This class implements accessibility support for the - * Menu class. It provides an implementation of the + * {@code Menu} class. It provides an implementation of the * Java Accessibility API appropriate to menu user-interface elements. * @since 1.3 */ --- old/src/java.desktop/share/classes/java/awt/MenuBar.java 2015-10-04 22:52:52.765273742 +0400 +++ new/src/java.desktop/share/classes/java/awt/MenuBar.java 2015-10-04 22:52:52.577273750 +0400 @@ -34,10 +34,10 @@ import javax.accessibility.*; /** - * The MenuBar class encapsulates the platform's + * The {@code MenuBar} class encapsulates the platform's * concept of a menu bar bound to a frame. In order to associate - * the menu bar with a Frame object, call the - * frame's setMenuBar method. + * the menu bar with a {@code Frame} object, call the + * frame's {@code setMenuBar} method. *

      * * This is what a menu bar might look like: @@ -52,8 +52,8 @@ * (Keyboard shortcuts, which are optional, provide the user with * an alternative to the mouse for invoking a menu item and the * action that is associated with it.) - * Each menu item can maintain an instance of MenuShortcut. - * The MenuBar class defines several methods, + * Each menu item can maintain an instance of {@code MenuShortcut}. + * The {@code MenuBar} class defines several methods, * {@link MenuBar#shortcuts} and * {@link MenuBar#getShortcutMenuItem} * that retrieve information about the shortcuts a given @@ -289,7 +289,7 @@ * * @return the number of menus on the menu bar. * @deprecated As of JDK version 1.1, - * replaced by getMenuCount(). + * replaced by {@code getMenuCount()}. */ @Deprecated public int countMenus() { @@ -342,9 +342,9 @@ } /** - * Gets the instance of MenuItem associated - * with the specified MenuShortcut object, - * or null if none of the menu items being managed + * Gets the instance of {@code MenuItem} associated + * with the specified {@code MenuShortcut} object, + * or {@code null} if none of the menu items being managed * by this menu bar is associated with the specified menu * shortcut. * @param s the specified menu shortcut. @@ -420,7 +420,7 @@ /** * Writes default serializable fields to stream. * - * @param s the ObjectOutputStream to write + * @param s the {@code ObjectOutputStream} to write * @see AWTEventMulticaster#save(ObjectOutputStream, String, EventListener) * @see #readObject(java.io.ObjectInputStream) */ @@ -432,13 +432,13 @@ } /** - * Reads the ObjectInputStream. + * Reads the {@code ObjectInputStream}. * Unrecognized keys or values will be ignored. * - * @param s the ObjectInputStream to read + * @param s the {@code ObjectInputStream} to read * @exception HeadlessException if - * GraphicsEnvironment.isHeadless returns - * true + * {@code GraphicsEnvironment.isHeadless} returns + * {@code true} * @see java.awt.GraphicsEnvironment#isHeadless * @see #writeObject(java.io.ObjectOutputStream) */ @@ -494,7 +494,7 @@ * subclassed by menu component developers. *

      * This class implements accessibility support for the - * MenuBar class. It provides an implementation of the + * {@code MenuBar} class. It provides an implementation of the * Java Accessibility API appropriate to menu bar user-interface elements. * @since 1.3 */ --- old/src/java.desktop/share/classes/java/awt/MenuComponent.java 2015-10-04 22:52:53.293273718 +0400 +++ new/src/java.desktop/share/classes/java/awt/MenuComponent.java 2015-10-04 22:52:53.105273726 +0400 @@ -38,13 +38,13 @@ import java.security.AccessController; /** - * The abstract class MenuComponent is the superclass + * The abstract class {@code MenuComponent} is the superclass * of all menu-related components. In this respect, the class - * MenuComponent is analogous to the abstract superclass - * Component for AWT components. + * {@code MenuComponent} is analogous to the abstract superclass + * {@code Component} for AWT components. *

      * Menu components receive and process AWT events, just as components do, - * through the method processEvent. + * through the method {@code processEvent}. * * @author Arthur van Hoff * @since 1.0 @@ -63,15 +63,15 @@ transient MenuContainer parent; /** - * The AppContext of the MenuComponent. + * The {@code AppContext} of the {@code MenuComponent}. * This is set in the constructor and never changes. */ transient AppContext appContext; /** * The menu component's font. This value can be - * null at which point a default will be used. - * This defaults to null. + * {@code null} at which point a default will be used. + * This defaults to {@code null}. * * @serial * @see #setFont(Font) @@ -80,7 +80,7 @@ volatile Font font; /** - * The menu component's name, which defaults to null. + * The menu component's name, which defaults to {@code null}. * @serial * @see #getName() * @see #setName(String) @@ -89,15 +89,15 @@ /** * A variable to indicate whether a name is explicitly set. - * If true the name will be set explicitly. - * This defaults to false. + * If {@code true} the name will be set explicitly. + * This defaults to {@code false}. * @serial * @see #setName(String) */ private boolean nameExplicitlySet = false; /** - * Defaults to false. + * Defaults to {@code false}. * @serial * @see #dispatchEvent(AWTEvent) */ @@ -164,10 +164,10 @@ } /** - * Creates a MenuComponent. + * Creates a {@code MenuComponent}. * @exception HeadlessException if - * GraphicsEnvironment.isHeadless - * returns true + * {@code GraphicsEnvironment.isHeadless} + * returns {@code true} * @see java.awt.GraphicsEnvironment#isHeadless */ public MenuComponent() throws HeadlessException { @@ -176,9 +176,9 @@ } /** - * Constructs a name for this MenuComponent. - * Called by getName when the name is null. - * @return a name for this MenuComponent + * Constructs a name for this {@code MenuComponent}. + * Called by {@code getName} when the name is {@code null}. + * @return a name for this {@code MenuComponent} */ String constructComponentName() { return null; // For strict compliance with prior platform versions, a MenuComponent @@ -226,7 +226,7 @@ /** * Returns the parent container for this menu component. * @return the menu component containing this menu component, - * or null if this menu component + * or {@code null} if this menu component * is the outermost component, the menu bar itself */ public MenuContainer getParent() { @@ -243,7 +243,7 @@ /** * Gets the font used for this menu component. * @return the font used in this menu component, if there is one; - * null otherwise + * {@code null} otherwise * @see java.awt.MenuComponent#setFont */ public Font getFont() { @@ -290,7 +290,7 @@ * component, unless those subcomponents specify a different font. *

      * Some platforms may not support setting of all font attributes - * of a menu component; in such cases, calling setFont + * of a menu component; in such cases, calling {@code setFont} * will have no effect on the unsupported font attributes of this * menu component. Unless subcomponents of this menu component * specify a different font, this font will be used by those @@ -385,7 +385,7 @@ } /** * Processes events occurring on this menu component. - *

      Note that if the event parameter is null + *

      Note that if the event parameter is {@code null} * the behavior is unspecified and may result in an * exception. * @@ -397,10 +397,10 @@ /** * Returns a string representing the state of this - * MenuComponent. This method is intended to be used + * {@code MenuComponent}. This method is intended to be used * only for debugging purposes, and the content and format of the * returned string may vary between implementations. The returned - * string may be empty but may not be null. + * string may be empty but may not be {@code null}. * * @return the parameter string of this menu component */ @@ -430,10 +430,10 @@ /** * Reads the menu component from an object input stream. * - * @param s the ObjectInputStream to read + * @param s the {@code ObjectInputStream} to read * @exception HeadlessException if - * GraphicsEnvironment.isHeadless returns - * true + * {@code GraphicsEnvironment.isHeadless} returns + * {@code true} * @serial * @see java.awt.GraphicsEnvironment#isHeadless */ @@ -466,16 +466,16 @@ AccessibleContext accessibleContext = null; /** - * Gets the AccessibleContext associated with - * this MenuComponent. + * Gets the {@code AccessibleContext} associated with + * this {@code MenuComponent}. * - * The method implemented by this base class returns null. - * Classes that extend MenuComponent + * The method implemented by this base class returns {@code null}. + * Classes that extend {@code MenuComponent} * should implement this method to return the - * AccessibleContext associated with the subclass. + * {@code AccessibleContext} associated with the subclass. * - * @return the AccessibleContext of this - * MenuComponent + * @return the {@code AccessibleContext} of this + * {@code MenuComponent} * @since 1.3 */ public AccessibleContext getAccessibleContext() { @@ -483,7 +483,7 @@ } /** - * Inner class of MenuComponent used to provide + * Inner class of {@code MenuComponent} used to provide * default support for accessibility. This class is not meant * to be used directly by application developers, but is instead * meant only to be subclassed by menu component developers. @@ -512,11 +512,11 @@ // /** - * Gets the AccessibleSelection associated with this - * object which allows its Accessible children to be selected. + * Gets the {@code AccessibleSelection} associated with this + * object which allows its {@code Accessible} children to be selected. * - * @return AccessibleSelection if supported by object; - * else return null + * @return {@code AccessibleSelection} if supported by object; + * else return {@code null} * @see AccessibleSelection */ public AccessibleSelection getAccessibleSelection() { @@ -525,14 +525,14 @@ /** * Gets the accessible name of this object. This should almost never - * return java.awt.MenuComponent.getName, as that + * return {@code java.awt.MenuComponent.getName}, as that * generally isn't a localized name, and doesn't have meaning for the * user. If the object is fundamentally a text object (e.g. a menu item), the * accessible name should be the text of the object (e.g. "save"). * If the object has a tooltip, the tooltip text may also be an * appropriate String to return. * - * @return the localized name of the object -- can be null + * @return the localized name of the object -- can be {@code null} * if this object does not have a name * @see AccessibleContext#setAccessibleName */ @@ -552,7 +552,7 @@ * text document" instead). * * @return the localized description of the object -- can be - * null if this object does not have a description + * {@code null} if this object does not have a description * @see AccessibleContext#setAccessibleDescription */ public String getAccessibleDescription() { @@ -562,7 +562,7 @@ /** * Gets the role of this object. * - * @return an instance of AccessibleRole + * @return an instance of {@code AccessibleRole} * describing the role of the object * @see AccessibleRole */ @@ -573,7 +573,7 @@ /** * Gets the state of this object. * - * @return an instance of AccessibleStateSet + * @return an instance of {@code AccessibleStateSet} * containing the current state set of the object * @see AccessibleState */ @@ -582,13 +582,13 @@ } /** - * Gets the Accessible parent of this object. - * If the parent of this object implements Accessible, - * this method should simply return getParent. - * - * @return the Accessible parent of this object -- can - * be null if this object does not have an - * Accessible parent + * Gets the {@code Accessible} parent of this object. + * If the parent of this object implements {@code Accessible}, + * this method should simply return {@code getParent}. + * + * @return the {@code Accessible} parent of this object -- can + * be {@code null} if this object does not have an + * {@code Accessible} parent */ public Accessible getAccessibleParent() { if (accessibleParent != null) { @@ -615,7 +615,7 @@ /** * Returns the number of accessible children in the object. If all - * of the children of this object implement Accessible, + * of the children of this object implement {@code Accessible}, * then this method should return the number of children of this object. * * @return the number of accessible children in the object @@ -625,7 +625,7 @@ } /** - * Returns the nth Accessible child of the object. + * Returns the nth {@code Accessible} child of the object. * * @param i zero-based index of child * @return the nth Accessible child of the object @@ -648,8 +648,8 @@ } /** - * Gets the AccessibleComponent associated with - * this object if one exists. Otherwise return null. + * Gets the {@code AccessibleComponent} associated with + * this object if one exists. Otherwise return {@code null}. * * @return the component */ @@ -664,7 +664,7 @@ * Gets the background color of this object. * * @return the background color, if supported, of the object; - * otherwise, null + * otherwise, {@code null} */ public Color getBackground() { return null; // Not supported for MenuComponents @@ -672,9 +672,9 @@ /** * Sets the background color of this object. - * (For transparency, see isOpaque.) + * (For transparency, see {@code isOpaque}.) * - * @param c the new Color for the background + * @param c the new {@code Color} for the background * @see Component#isOpaque */ public void setBackground(Color c) { @@ -685,7 +685,7 @@ * Gets the foreground color of this object. * * @return the foreground color, if supported, of the object; - * otherwise, null + * otherwise, {@code null} */ public Color getForeground() { return null; // Not supported for MenuComponents @@ -694,59 +694,59 @@ /** * Sets the foreground color of this object. * - * @param c the new Color for the foreground + * @param c the new {@code Color} for the foreground */ public void setForeground(Color c) { // Not supported for MenuComponents } /** - * Gets the Cursor of this object. + * Gets the {@code Cursor} of this object. * - * @return the Cursor, if supported, of the object; - * otherwise, null + * @return the {@code Cursor}, if supported, of the object; + * otherwise, {@code null} */ public Cursor getCursor() { return null; // Not supported for MenuComponents } /** - * Sets the Cursor of this object. + * Sets the {@code Cursor} of this object. *

      * The method may have no visual effect if the Java platform * implementation and/or the native system do not support * changing the mouse cursor shape. - * @param cursor the new Cursor for the object + * @param cursor the new {@code Cursor} for the object */ public void setCursor(Cursor cursor) { // Not supported for MenuComponents } /** - * Gets the Font of this object. + * Gets the {@code Font} of this object. * - * @return the Font,if supported, for the object; - * otherwise, null + * @return the {@code Font},if supported, for the object; + * otherwise, {@code null} */ public Font getFont() { return MenuComponent.this.getFont(); } /** - * Sets the Font of this object. + * Sets the {@code Font} of this object. * - * @param f the new Font for the object + * @param f the new {@code Font} for the object */ public void setFont(Font f) { MenuComponent.this.setFont(f); } /** - * Gets the FontMetrics of this object. + * Gets the {@code FontMetrics} of this object. * - * @param f the Font + * @param f the {@code Font} * @return the FontMetrics, if supported, the object; - * otherwise, null + * otherwise, {@code null} * @see #getFont */ public FontMetrics getFontMetrics(Font f) { @@ -776,7 +776,7 @@ * object intends to be visible; however, it may not in fact be * showing on the screen because one of the objects that this object * is contained by is not visible. To determine if an object is - * showing on the screen, use isShowing. + * showing on the screen, use {@code isShowing}. * * @return true if object is visible; otherwise, false */ @@ -811,9 +811,9 @@ * where the point's x and y coordinates are defined to be relative to * the coordinate system of the object. * - * @param p the Point relative to the coordinate + * @param p the {@code Point} relative to the coordinate * system of the object - * @return true if object contains Point; otherwise false + * @return true if object contains {@code Point}; otherwise false */ public boolean contains(Point p) { return false; // Not supported for MenuComponents @@ -822,7 +822,7 @@ /** * Returns the location of the object on the screen. * - * @return location of object on screen -- can be null + * @return location of object on screen -- can be {@code null} * if this object is not on the screen */ public Point getLocationOnScreen() { @@ -834,9 +834,9 @@ * of a point specifying the object's top-left corner in the screen's * coordinate space. * - * @return an instance of Point representing the + * @return an instance of {@code Point} representing the * top-left corner of the object's bounds in the coordinate - * space of the screen; null if + * space of the screen; {@code null} if * this object or its parent are not on the screen */ public Point getLocation() { @@ -852,12 +852,12 @@ /** * Gets the bounds of this object in the form of a - * Rectangle object. + * {@code Rectangle} object. * The bounds specify this object's width, height, and location * relative to its parent. * * @return a rectangle indicating this component's bounds; - * null if this object is not on the screen + * {@code null} if this object is not on the screen */ public Rectangle getBounds() { return null; // Not supported for MenuComponents @@ -865,7 +865,7 @@ /** * Sets the bounds of this object in the form of a - * Rectangle object. + * {@code Rectangle} object. * The bounds specify this object's width, height, and location * relative to its parent. * @@ -877,13 +877,13 @@ /** * Returns the size of this object in the form of a - * Dimension object. The height field of - * the Dimension object contains this object's - * height, and the width field of the Dimension + * {@code Dimension} object. The height field of + * the {@code Dimension} object contains this object's + * height, and the width field of the {@code Dimension} * object contains this object's width. * - * @return a Dimension object that indicates the - * size of this component; null + * @return a {@code Dimension} object that indicates the + * size of this component; {@code null} * if this object is not on the screen */ public Dimension getSize() { @@ -893,7 +893,7 @@ /** * Resizes this object. * - * @param d - the Dimension specifying the + * @param d - the {@code Dimension} specifying the * new size of the object */ public void setSize(Dimension d) { @@ -901,16 +901,16 @@ } /** - * Returns the Accessible child, if one exists, - * contained at the local coordinate Point. - * If there is no Accessible child, null + * Returns the {@code Accessible} child, if one exists, + * contained at the local coordinate {@code Point}. + * If there is no {@code Accessible} child, {@code null} * is returned. * * @param p the point defining the top-left corner of the - * Accessible, given in the coordinate space + * {@code Accessible}, given in the coordinate space * of the object's parent - * @return the Accessible, if it exists, - * at the specified location; else null + * @return the {@code Accessible}, if it exists, + * at the specified location; else {@code null} */ public Accessible getAccessibleAt(Point p) { return null; // MenuComponents don't have children @@ -956,7 +956,7 @@ // /** - * Returns the number of Accessible children currently selected. + * Returns the number of {@code Accessible} children currently selected. * If no children are selected, the return value will be 0. * * @return the number of items currently selected @@ -966,10 +966,10 @@ } /** - * Returns an Accessible representing the specified + * Returns an {@code Accessible} representing the specified * selected child in the object. If there isn't a selection, or there are * fewer children selected than the integer passed in, the return - * value will be null. + * value will be {@code null}. *

      Note that the index represents the i-th selected child, which * is different from the i-th child. * @@ -987,7 +987,7 @@ * @return true if the current child of this object is selected; * else false * @param i the zero-based index of the child in this - * Accessible object + * {@code Accessible} object * @see AccessibleContext#getAccessibleChild */ public boolean isAccessibleChildSelected(int i) { @@ -995,7 +995,7 @@ } /** - * Adds the specified Accessible child of the object + * Adds the specified {@code Accessible} child of the object * to the object's selection. If the object supports multiple selections, * the specified child is added to any existing selection, otherwise * it replaces any existing selection in the object. If the @@ -1068,7 +1068,7 @@ /** * Gets the state of this object. * - * @return an instance of AccessibleStateSet + * @return an instance of {@code AccessibleStateSet} * containing the current state set of the object * @see AccessibleState */ --- old/src/java.desktop/share/classes/java/awt/MenuItem.java 2015-10-04 22:52:53.837273693 +0400 +++ new/src/java.desktop/share/classes/java/awt/MenuItem.java 2015-10-04 22:52:53.645273702 +0400 @@ -35,9 +35,9 @@ /** * All items in a menu must belong to the class - * MenuItem, or one of its subclasses. + * {@code MenuItem}, or one of its subclasses. *

      - * The default MenuItem object embodies + * The default {@code MenuItem} object embodies * a simple labeled menu item. *

      * This picture of a menu bar shows five menu items: @@ -45,24 +45,24 @@ * style="float:center; margin: 7px 10px;"> *
      * The first two items are simple menu items, labeled - * "Basic" and "Simple". + * {@code "Basic"} and {@code "Simple"}. * Following these two items is a separator, which is itself - * a menu item, created with the label "-". - * Next is an instance of CheckboxMenuItem - * labeled "Check". The final menu item is a + * a menu item, created with the label {@code "-"}. + * Next is an instance of {@code CheckboxMenuItem} + * labeled {@code "Check"}. The final menu item is a * submenu labeled "More Examples", - * and this submenu is an instance of Menu. + * and this submenu is an instance of {@code Menu}. *

      * When a menu item is selected, AWT sends an action event to * the menu item. Since the event is an - * instance of ActionEvent, the processEvent + * instance of {@code ActionEvent}, the {@code processEvent} * method examines the event and passes it along to - * processActionEvent. The latter method redirects the - * event to any ActionListener objects that have + * {@code processActionEvent}. The latter method redirects the + * event to any {@code ActionListener} objects that have * registered an interest in action events generated by this * menu item. *

      - * Note that the subclass Menu overrides this behavior and + * Note that the subclass {@code Menu} overrides this behavior and * does not send any event to the frame until one of its subitems is * selected. * @@ -103,8 +103,8 @@ /** * A value to indicate whether a menu item is enabled - * or not. If it is enabled, enabled will - * be set to true. Else enabled will + * or not. If it is enabled, {@code enabled} will + * be set to true. Else {@code enabled} will * be set to false. * * @serial @@ -114,7 +114,7 @@ boolean enabled = true; /** - * label is the label of a menu item. + * {@code label} is the label of a menu item. * It can be any string. * * @serial @@ -126,7 +126,7 @@ /** * This field indicates the command tha has been issued * by a particular menu item. - * By default the actionCommand + * By default the {@code actionCommand} * is the label of the menu item, unless it has been * set using setActionCommand. * @@ -204,7 +204,7 @@ * a separator between menu items. By default, all menu * items except for separators are enabled. * @param label the label for this menu item. - * @param s the instance of MenuShortcut + * @param s the instance of {@code MenuShortcut} * associated with this menu item. * @exception HeadlessException if GraphicsEnvironment.isHeadless() * returns true. @@ -239,7 +239,7 @@ /** * Gets the label for this menu item. - * @return the label of this menu item, or null + * @return the label of this menu item, or {@code null} if this menu item has no label. * @see java.awt.MenuItem#setLabel * @since 1.0 @@ -250,7 +250,7 @@ /** * Sets the label for this menu item to the specified label. - * @param label the new label, or null for no label. + * @param label the new label, or {@code null} for no label. * @see java.awt.MenuItem#getLabel * @since 1.0 */ @@ -276,8 +276,8 @@ /** * Sets whether or not this menu item can be chosen. - * @param b if true, enables this menu item; - * if false, disables it. + * @param b if {@code true}, enables this menu item; + * if {@code false}, disables it. * @see java.awt.MenuItem#isEnabled * @since 1.1 */ @@ -287,7 +287,7 @@ /** * @deprecated As of JDK version 1.1, - * replaced by setEnabled(boolean). + * replaced by {@code setEnabled(boolean)}. */ @Deprecated public synchronized void enable() { @@ -304,7 +304,7 @@ * @param b if {@code true}, enables this menu item; * otherwise disables * @deprecated As of JDK version 1.1, - * replaced by setEnabled(boolean). + * replaced by {@code setEnabled(boolean)}. */ @Deprecated public void enable(boolean b) { @@ -317,7 +317,7 @@ /** * @deprecated As of JDK version 1.1, - * replaced by setEnabled(boolean). + * replaced by {@code setEnabled(boolean)}. */ @Deprecated public synchronized void disable() { @@ -329,10 +329,10 @@ } /** - * Get the MenuShortcut object associated with this + * Get the {@code MenuShortcut} object associated with this * menu item, * @return the menu shortcut associated with this menu item, - * or null if none has been specified. + * or {@code null} if none has been specified. * @see java.awt.MenuItem#setShortcut * @since 1.1 */ @@ -341,7 +341,7 @@ } /** - * Set the MenuShortcut object associated with this + * Set the {@code MenuShortcut} object associated with this * menu item. If a menu shortcut is already associated with * this menu item, it is replaced. * @param s the menu shortcut to associate @@ -358,7 +358,7 @@ } /** - * Delete any MenuShortcut object associated + * Delete any {@code MenuShortcut} object associated * with this menu item. * @since 1.1 */ @@ -454,8 +454,8 @@ *

      * Since event types are automatically enabled when a listener for * that type is added to the menu item, this method only needs - * to be invoked by subclasses of MenuItem which desire to - * have the specified event types delivered to processEvent + * to be invoked by subclasses of {@code MenuItem} which desire to + * have the specified event types delivered to {@code processEvent} * regardless of whether a listener is registered. * * @param eventsToEnable the event mask defining the event types @@ -562,7 +562,7 @@ * Returns an array of all the action listeners * registered on this menu item. * - * @return all of this menu item's ActionListeners + * @return all of this menu item's {@code ActionListener}s * or an empty array if no action * listeners are currently registered * @@ -579,16 +579,16 @@ /** * Returns an array of all the objects currently registered * as FooListeners - * upon this MenuItem. + * upon this {@code MenuItem}. * FooListeners are registered using the * addFooListener method. * *

      - * You can specify the listenerType argument + * You can specify the {@code listenerType} argument * with a class literal, such as * FooListener.class. * For example, you can query a - * MenuItem m + * {@code MenuItem m} * for its action listeners with the following code: * *

      ActionListener[] als = (ActionListener[])(m.getListeners(ActionListener.class));
      @@ -598,14 +598,14 @@ * @param the type of the listeners * @param listenerType the type of listeners requested; this parameter * should specify an interface that descends from - * java.util.EventListener + * {@code java.util.EventListener} * @return an array of all objects registered as * FooListeners on this menu item, * or an empty array if no such * listeners have been added - * @exception ClassCastException if listenerType + * @exception ClassCastException if {@code listenerType} * doesn't specify a class or interface that implements - * java.util.EventListener + * {@code java.util.EventListener} * * @see #getActionListeners * @since 1.3 @@ -620,12 +620,12 @@ /** * Processes events on this menu item. If the event is an - * instance of ActionEvent, it invokes - * processActionEvent, another method - * defined by MenuItem. + * instance of {@code ActionEvent}, it invokes + * {@code processActionEvent}, another method + * defined by {@code MenuItem}. *

      * Currently, menu items only support action events. - *

      Note that if the event parameter is null + *

      Note that if the event parameter is {@code null} * the behavior is unspecified and may result in an * exception. * @@ -654,16 +654,16 @@ /** * Processes action events occurring on this menu item, * by dispatching them to any registered - * ActionListener objects. + * {@code ActionListener} objects. * This method is not called unless action events are * enabled for this component. Action events are enabled * when one of the following occurs: *

        - *
      • An ActionListener object is registered - * via addActionListener. - *
      • Action events are enabled via enableEvents. + *
      • An {@code ActionListener} object is registered + * via {@code addActionListener}. + *
      • Action events are enabled via {@code enableEvents}. *
      - *

      Note that if the event parameter is null + *

      Note that if the event parameter is {@code null} * the behavior is unspecified and may result in an * exception. * @@ -681,11 +681,11 @@ } /** - * Returns a string representing the state of this MenuItem. + * Returns a string representing the state of this {@code MenuItem}. * This method is intended to be used only for debugging purposes, and the * content and format of the returned string may vary between * implementations. The returned string may be empty but may not be - * null. + * {@code null}. * * @return the parameter string of this menu item */ @@ -710,17 +710,17 @@ /** * Writes default serializable fields to stream. Writes - * a list of serializable ActionListeners + * a list of serializable {@code ActionListeners} * as optional data. The non-serializable listeners are * detected and no attempt is made to serialize them. * - * @param s the ObjectOutputStream to write - * @serialData null terminated sequence of 0 - * or more pairs; the pair consists of a String - * and an Object; the String + * @param s the {@code ObjectOutputStream} to write + * @serialData {@code null} terminated sequence of 0 + * or more pairs; the pair consists of a {@code String} + * and an {@code Object}; the {@code String} * indicates the type of object and is one of the following: - * actionListenerK indicating an - * ActionListener object + * {@code actionListenerK} indicating an + * {@code ActionListener} object * * @see AWTEventMulticaster#save(ObjectOutputStream, String, EventListener) * @see #readObject(ObjectInputStream) @@ -735,15 +735,15 @@ } /** - * Reads the ObjectInputStream and if it - * isn't null adds a listener to receive - * action events fired by the Menu Item. + * Reads the {@code ObjectInputStream} and if it + * isn't {@code null} adds a listener to receive + * action events fired by the {@code Menu} Item. * Unrecognized keys or values will be ignored. * - * @param s the ObjectInputStream to read + * @param s the {@code ObjectInputStream} to read * @exception HeadlessException if - * GraphicsEnvironment.isHeadless returns - * true + * {@code GraphicsEnvironment.isHeadless} returns + * {@code true} * @see #removeActionListener(ActionListener) * @see #addActionListener(ActionListener) * @see #writeObject(ObjectOutputStream) @@ -800,7 +800,7 @@ * subclassed by menu component developers. *

      * This class implements accessibility support for the - * MenuItem class. It provides an implementation of the + * {@code MenuItem} class. It provides an implementation of the * Java Accessibility API appropriate to menu item user-interface elements. * @since 1.3 */ --- old/src/java.desktop/share/classes/java/awt/MenuShortcut.java 2015-10-04 22:52:54.393273668 +0400 +++ new/src/java.desktop/share/classes/java/awt/MenuShortcut.java 2015-10-04 22:52:54.185273678 +0400 @@ -27,27 +27,27 @@ import java.awt.event.KeyEvent; /** - * The MenuShortcutclass represents a keyboard accelerator + * The {@code MenuShortcut} class represents a keyboard accelerator * for a MenuItem. *

      * Menu shortcuts are created using virtual keycodes, not characters. * For example, a menu shortcut for Ctrl-a (assuming that Control is * the accelerator key) would be created with code like the following: *

      - * MenuShortcut ms = new MenuShortcut(KeyEvent.VK_A, false); + * {@code MenuShortcut ms = new MenuShortcut(KeyEvent.VK_A, false);} *

      or alternatively *

      - * MenuShortcut ms = new MenuShortcut(KeyEvent.getExtendedKeyCodeForChar('A'), false); + * {@code MenuShortcut ms = new MenuShortcut(KeyEvent.getExtendedKeyCodeForChar('A'), false);} *

      * Menu shortcuts may also be constructed for a wider set of keycodes - * using the java.awt.event.KeyEvent.getExtendedKeyCodeForChar call. + * using the {@code java.awt.event.KeyEvent.getExtendedKeyCodeForChar} call. * For example, a menu shortcut for "Ctrl+cyrillic ef" is created by *

      * MenuShortcut ms = new MenuShortcut(KeyEvent.getExtendedKeyCodeForChar('\u0444'), false); *

      - * Note that shortcuts created with a keycode or an extended keycode defined as a constant in KeyEvent + * Note that shortcuts created with a keycode or an extended keycode defined as a constant in {@code KeyEvent} * work regardless of the current keyboard layout. However, a shortcut made of - * an extended keycode not listed in KeyEvent + * an extended keycode not listed in {@code KeyEvent} * only work if the current keyboard layout produces a corresponding letter. *

      * The accelerator key is platform-dependent and may be obtained @@ -128,8 +128,8 @@ /** * Returns whether this MenuShortcut must be invoked using the SHIFT key. - * @return true if this MenuShortcut must be invoked using the - * SHIFT key, false otherwise. + * @return {@code true} if this MenuShortcut must be invoked using the + * SHIFT key, {@code false} otherwise. * @since 1.1 */ public boolean usesShiftModifier() { @@ -141,8 +141,8 @@ * equality is defined to mean that both MenuShortcuts use the same key * and both either use or don't use the SHIFT key. * @param s the MenuShortcut to compare with this. - * @return true if this MenuShortcut is the same as another, - * false otherwise. + * @return {@code true} if this MenuShortcut is the same as another, + * {@code false} otherwise. * @since 1.1 */ public boolean equals(MenuShortcut s) { @@ -155,8 +155,8 @@ * equality is defined to mean that both MenuShortcuts use the same key * and both either use or don't use the SHIFT key. * @param obj the Object to compare with this. - * @return true if this MenuShortcut is the same as another, - * false otherwise. + * @return {@code true} if this MenuShortcut is the same as another, + * {@code false} otherwise. * @since 1.2 */ public boolean equals(Object obj) { --- old/src/java.desktop/share/classes/java/awt/MouseInfo.java 2015-10-04 22:52:54.917273645 +0400 +++ new/src/java.desktop/share/classes/java/awt/MouseInfo.java 2015-10-04 22:52:54.729273653 +0400 @@ -29,7 +29,7 @@ import sun.awt.ComponentFactory; /** - * MouseInfo provides methods for getting information about the mouse, + * {@code MouseInfo} provides methods for getting information about the mouse, * such as mouse pointer location and the number of mouse buttons. * * @author Roman Poborchiy @@ -45,26 +45,26 @@ } /** - * Returns a PointerInfo instance that represents the current + * Returns a {@code PointerInfo} instance that represents the current * location of the mouse pointer. - * The GraphicsDevice stored in this PointerInfo + * The {@code GraphicsDevice} stored in this {@code PointerInfo} * contains the mouse pointer. The coordinate system used for the mouse position - * depends on whether or not the GraphicsDevice is part of a virtual + * depends on whether or not the {@code GraphicsDevice} is part of a virtual * screen device. * For virtual screen devices, the coordinates are given in the virtual * coordinate system, otherwise they are returned in the coordinate system - * of the GraphicsDevice. See {@link GraphicsConfiguration} + * of the {@code GraphicsDevice}. See {@link GraphicsConfiguration} * for more information about the virtual screen devices. - * On systems without a mouse, returns null. + * On systems without a mouse, returns {@code null}. *

      - * If there is a security manager, its checkPermission method - * is called with an AWTPermission("watchMousePointer") - * permission before creating and returning a PointerInfo - * object. This may result in a SecurityException. + * If there is a security manager, its {@code checkPermission} method + * is called with an {@code AWTPermission("watchMousePointer")} + * permission before creating and returning a {@code PointerInfo} + * object. This may result in a {@code SecurityException}. * * @exception HeadlessException if GraphicsEnvironment.isHeadless() returns true * @exception SecurityException if a security manager exists and its - * checkPermission method doesn't allow the operation + * {@code checkPermission} method doesn't allow the operation * @see GraphicsConfiguration * @see SecurityManager#checkPermission * @see java.awt.AWTPermission @@ -118,7 +118,7 @@ /** * Returns the number of buttons on the mouse. - * On systems without a mouse, returns -1. + * On systems without a mouse, returns {@code -1}. * The number of buttons is obtained from the AWT Toolkit * by requesting the {@code "awt.mouse.numButtons"} desktop property * which is set by the underlying native platform. --- old/src/java.desktop/share/classes/java/awt/PageAttributes.java 2015-10-04 22:52:55.437273622 +0400 +++ new/src/java.desktop/share/classes/java/awt/PageAttributes.java 2015-10-04 22:52:55.249273630 +0400 @@ -942,7 +942,7 @@ * @param printerResolution an integer array of 3 elements. The first * element must be greater than 0. The second element must be * must be greater than 0. The third element must be either - * 3 or 4. + * {@code 3} or {@code 4}. * @throws IllegalArgumentException if one or more of the above * conditions is violated. */ @@ -1095,14 +1095,14 @@ /** * Specifies the print orientation for pages using these attributes. - * Specifying 3 denotes portrait. Specifying 4 + * Specifying {@code 3} denotes portrait. Specifying {@code 4} * denotes landscape. Specifying any other value will generate an * IllegalArgumentException. Not specifying the property is equivalent * to calling setOrientationRequested(OrientationRequestedType.PORTRAIT). * - * @param orientationRequested 3 or 4 + * @param orientationRequested {@code 3} or {@code 4} * @throws IllegalArgumentException if orientationRequested is not - * 3 or 4 + * {@code 3} or {@code 4} */ public void setOrientationRequested(int orientationRequested) { switch (orientationRequested) { @@ -1189,15 +1189,15 @@ /** * Specifies the print quality for pages using these attributes. - * Specifying 3 denotes draft. Specifying 4 - * denotes normal. Specifying 5 denotes high. Specifying + * Specifying {@code 3} denotes draft. Specifying {@code 4} + * denotes normal. Specifying {@code 5} denotes high. Specifying * any other value will generate an IllegalArgumentException. Not * specifying the property is equivalent to calling * setPrintQuality(PrintQualityType.NORMAL). * - * @param printQuality 3, 4, or 5 - * @throws IllegalArgumentException if printQuality is not 3 - * , 4, or 5 + * @param printQuality {@code 3}, {@code 4}, or {@code 5} + * @throws IllegalArgumentException if printQuality is not + * {@code 3}, {@code 4}, or {@code 5} */ public void setPrintQuality(int printQuality) { switch (printQuality) { @@ -1231,13 +1231,13 @@ * (typically the horizontal resolution). Index 1 of the array specifies * the feed direction resolution (typically the vertical resolution). * Index 2 of the array specifies whether the resolutions are in dots per - * inch or dots per centimeter. 3 denotes dots per inch. - * 4 denotes dots per centimeter. + * inch or dots per centimeter. {@code 3} denotes dots per inch. + * {@code 4} denotes dots per centimeter. * * @return an integer array of 3 elements. The first * element must be greater than 0. The second element must be * must be greater than 0. The third element must be either - * 3 or 4. + * {@code 3} or {@code 4}. */ public int[] getPrinterResolution() { // Return a copy because otherwise client code could circumvent the @@ -1258,7 +1258,7 @@ * resolution). Index 1 of the array specifies the feed direction * resolution (typically the vertical resolution). Index 2 of the array * specifies whether the resolutions are in dots per inch or dots per - * centimeter. 3 denotes dots per inch. 4 + * centimeter. {@code 3} denotes dots per inch. {@code 4} * denotes dots per centimeter. Note that the 1.1 printing implementation * (Toolkit.getPrintJob) requires that the feed and cross feed resolutions * be the same. Not specifying the property is equivalent to calling @@ -1267,7 +1267,7 @@ * @param printerResolution an integer array of 3 elements. The first * element must be greater than 0. The second element must be * must be greater than 0. The third element must be either - * 3 or 4. + * {@code 3} or {@code 4}. * @throws IllegalArgumentException if one or more of the above * conditions is violated. */ @@ -1295,7 +1295,7 @@ * inch for pages using these attributes. The same value is used for both * resolutions. The actual resolutions will be determined by the * limitations of the implementation and the target printer. Not - * specifying the property is equivalent to specifying 72. + * specifying the property is equivalent to specifying {@code 72}. * * @param printerResolution an integer greater than 0. * @throws IllegalArgumentException if printerResolution is less than or --- old/src/java.desktop/share/classes/java/awt/Paint.java 2015-10-04 22:52:55.977273597 +0400 +++ new/src/java.desktop/share/classes/java/awt/Paint.java 2015-10-04 22:52:55.789273606 +0400 @@ -30,16 +30,16 @@ import java.awt.geom.Rectangle2D; /** - * This Paint interface defines how color patterns + * This {@code Paint} interface defines how color patterns * can be generated for {@link Graphics2D} operations. A class - * implementing the Paint interface is added to the - * Graphics2D context in order to define the color - * pattern used by the draw and fill methods. + * implementing the {@code Paint} interface is added to the + * {@code Graphics2D} context in order to define the color + * pattern used by the {@code draw} and {@code fill} methods. *

      - * Instances of classes implementing Paint must be - * read-only because the Graphics2D does not clone + * Instances of classes implementing {@code Paint} must be + * read-only because the {@code Graphics2D} does not clone * these objects when they are set as an attribute with the - * setPaint method or when the Graphics2D + * {@code setPaint} method or when the {@code Graphics2D} * object is itself cloned. * @see PaintContext * @see Color @@ -74,22 +74,22 @@ * of the graphics primitive being rendered. * Implementations of the {@code Paint} interface * are allowed to throw {@code NullPointerException} - * for a {@code null} {@code deviceBounds}. + * for a {@code null deviceBounds}. * @param userBounds the user space bounding box * of the graphics primitive being rendered. * Implementations of the {@code Paint} interface * are allowed to throw {@code NullPointerException} - * for a {@code null} {@code userBounds}. + * for a {@code null userBounds}. * @param xform the {@link AffineTransform} from user * space into device space. * Implementations of the {@code Paint} interface * are allowed to throw {@code NullPointerException} - * for a {@code null} {@code xform}. + * for a {@code null xform}. * @param hints the set of hints that the context object can use to * choose between rendering alternatives. * Implementations of the {@code Paint} interface * are allowed to throw {@code NullPointerException} - * for a {@code null} {@code hints}. + * for a {@code null hints}. * @return the {@code PaintContext} for * generating color patterns. * @see PaintContext --- old/src/java.desktop/share/classes/java/awt/PaintContext.java 2015-10-04 22:52:56.501273574 +0400 +++ new/src/java.desktop/share/classes/java/awt/PaintContext.java 2015-10-04 22:52:56.309273582 +0400 @@ -29,13 +29,13 @@ import java.awt.image.ColorModel; /** - * The PaintContext interface defines the encapsulated + * The {@code PaintContext} interface defines the encapsulated * and optimized environment to generate color patterns in device * space for fill or stroke operations on a - * {@link Graphics2D}. The PaintContext provides - * the necessary colors for Graphics2D operations in the + * {@link Graphics2D}. The {@code PaintContext} provides + * the necessary colors for {@code Graphics2D} operations in the * form of a {@link Raster} associated with a {@link ColorModel}. - * The PaintContext maintains state for a particular paint + * The {@code PaintContext} maintains state for a particular paint * operation. In a multi-threaded environment, several * contexts can exist simultaneously for a single {@link Paint} object. * @see Paint @@ -48,20 +48,20 @@ public void dispose(); /** - * Returns the ColorModel of the output. Note that - * this ColorModel might be different from the hint + * Returns the {@code ColorModel} of the output. Note that + * this {@code ColorModel} might be different from the hint * specified in the * {@link Paint#createContext(ColorModel, Rectangle, Rectangle2D, AffineTransform, RenderingHints) createContext} method of - * Paint. Not all PaintContext objects are + * {@code Paint}. Not all {@code PaintContext} objects are * capable of generating color patterns in an arbitrary - * ColorModel. - * @return the ColorModel of the output. + * {@code ColorModel}. + * @return the {@code ColorModel} of the output. */ ColorModel getColorModel(); /** - * Returns a Raster containing the colors generated for + * Returns a {@code Raster} containing the colors generated for * the graphics operation. * @param x the x coordinate of the area in device space * for which colors are generated. @@ -69,7 +69,7 @@ * for which colors are generated. * @param w the width of the area in device space * @param h the height of the area in device space - * @return a Raster representing the specified + * @return a {@code Raster} representing the specified * rectangular area and containing the colors generated for * the graphics operation. */ --- old/src/java.desktop/share/classes/java/awt/Panel.java 2015-10-04 22:52:57.021273550 +0400 +++ new/src/java.desktop/share/classes/java/awt/Panel.java 2015-10-04 22:52:56.833273559 +0400 @@ -27,12 +27,12 @@ import javax.accessibility.*; /** - * Panel is the simplest container class. A panel + * {@code Panel} is the simplest container class. A panel * provides space in which an application can attach any other * component, including other panels. *

      * The default layout manager for a panel is the - * FlowLayout layout manager. + * {@code FlowLayout} layout manager. * * @author Sami Shaio * @see java.awt.FlowLayout @@ -50,7 +50,7 @@ /** * Creates a new panel using the default layout manager. * The default layout manager for all panels is the - * FlowLayout class. + * {@code FlowLayout} class. */ public Panel() { this(new FlowLayout()); @@ -111,7 +111,7 @@ /** * This class implements accessibility support for the - * Panel class. It provides an implementation of the + * {@code Panel} class. It provides an implementation of the * Java Accessibility API appropriate to panel user-interface elements. * @since 1.3 */ --- old/src/java.desktop/share/classes/java/awt/Point.java 2015-10-04 22:52:57.545273527 +0400 +++ new/src/java.desktop/share/classes/java/awt/Point.java 2015-10-04 22:52:57.353273536 +0400 @@ -37,7 +37,7 @@ */ public class Point extends Point2D implements java.io.Serializable { /** - * The X coordinate of this Point. + * The X coordinate of this {@code Point}. * If no X coordinate is set it will default to 0. * * @serial @@ -48,7 +48,7 @@ public int x; /** - * The Y coordinate of this Point. + * The Y coordinate of this {@code Point}. * If no Y coordinate is set it will default to 0. * * @serial @@ -74,7 +74,7 @@ /** * Constructs and initializes a point with the same location as - * the specified Point object. + * the specified {@code Point} object. * @param p a point * @since 1.1 */ @@ -85,8 +85,8 @@ /** * Constructs and initializes a point at the specified * {@code (x,y)} location in the coordinate space. - * @param x the X coordinate of the newly constructed Point - * @param y the Y coordinate of the newly constructed Point + * @param x the X coordinate of the newly constructed {@code Point} + * @param y the Y coordinate of the newly constructed {@code Point} * @since 1.0 */ public Point(int x, int y) { @@ -113,7 +113,7 @@ /** * Returns the location of this point. * This method is included for completeness, to parallel the - * getLocation method of Component. + * {@code getLocation} method of {@code Component}. * @return a copy of this point, at the same location * @see java.awt.Component#getLocation * @see java.awt.Point#setLocation(java.awt.Point) @@ -128,7 +128,7 @@ /** * Sets the location of the point to the specified location. * This method is included for completeness, to parallel the - * setLocation method of Component. + * {@code setLocation} method of {@code Component}. * @param p a point, the new location for this point * @see java.awt.Component#setLocation(java.awt.Point) * @see java.awt.Point#getLocation @@ -142,7 +142,7 @@ * Changes the point to have the specified location. *

      * This method is included for completeness, to parallel the - * setLocation method of Component. + * {@code setLocation} method of {@code Component}. * Its behavior is identical with move(int, int). * @param x the X coordinate of the new location * @param y the Y coordinate of the new location @@ -158,10 +158,10 @@ /** * Sets the location of this point to the specified double coordinates. * The double values will be rounded to integer values. - * Any number smaller than Integer.MIN_VALUE - * will be reset to MIN_VALUE, and any number - * larger than Integer.MAX_VALUE will be - * reset to MAX_VALUE. + * Any number smaller than {@code Integer.MIN_VALUE} + * will be reset to {@code MIN_VALUE}, and any number + * larger than {@code Integer.MAX_VALUE} will be + * reset to {@code MAX_VALUE}. * * @param x the X coordinate of the new location * @param y the Y coordinate of the new location @@ -203,13 +203,13 @@ /** * Determines whether or not two points are equal. Two instances of - * Point2D are equal if the values of their - * x and y member fields, representing + * {@code Point2D} are equal if the values of their + * {@code x} and {@code y} member fields, representing * their position in the coordinate space, are the same. - * @param obj an object to be compared with this Point2D - * @return true if the object to be compared is - * an instance of Point2D and has - * the same values; false otherwise. + * @param obj an object to be compared with this {@code Point2D} + * @return {@code true} if the object to be compared is + * an instance of {@code Point2D} and has + * the same values; {@code false} otherwise. */ public boolean equals(Object obj) { if (obj instanceof Point) { @@ -224,7 +224,7 @@ * in the {@code (x,y)} coordinate space. This method is * intended to be used only for debugging purposes, and the content * and format of the returned string may vary between implementations. - * The returned string may be empty but may not be null. + * The returned string may be empty but may not be {@code null}. * * @return a string representation of this point */ --- old/src/java.desktop/share/classes/java/awt/Polygon.java 2015-10-04 22:52:58.069273503 +0400 +++ new/src/java.desktop/share/classes/java/awt/Polygon.java 2015-10-04 22:52:57.881273512 +0400 @@ -32,7 +32,7 @@ import java.util.Arrays; /** - * The Polygon class encapsulates a description of a + * The {@code Polygon} class encapsulates a description of a * closed, two-dimensional region within a coordinate space. This * region is bounded by an arbitrary number of line segments, each of * which is one side of the polygon. Internally, a polygon @@ -41,12 +41,12 @@ * polygon, and two successive pairs are the endpoints of a * line that is a side of the polygon. The first and final * pairs of {@code (x,y)} points are joined by a line segment - * that closes the polygon. This Polygon is defined with + * that closes the polygon. This {@code Polygon} is defined with * an even-odd winding rule. See * {@link java.awt.geom.PathIterator#WIND_EVEN_ODD WIND_EVEN_ODD} * for a definition of the even-odd winding rule. * This class's hit-testing methods, which include the - * contains, intersects and inside + * {@code contains}, {@code intersects} and {@code inside} * methods, use the insideness definition described in the * {@link Shape} class comments. * @@ -58,8 +58,8 @@ public class Polygon implements Shape, java.io.Serializable { /** - * The total number of points. The value of npoints - * represents the number of valid points in this Polygon + * The total number of points. The value of {@code npoints} + * represents the number of valid points in this {@code Polygon} * and might be less than the number of elements in * {@link #xpoints xpoints} or {@link #ypoints ypoints}. * This value can be NULL. @@ -73,10 +73,10 @@ /** * The array of X coordinates. The number of elements in * this array might be more than the number of X coordinates - * in this Polygon. The extra elements allow new points - * to be added to this Polygon without re-creating this + * in this {@code Polygon}. The extra elements allow new points + * to be added to this {@code Polygon} without re-creating this * array. The value of {@link #npoints npoints} is equal to the - * number of valid points in this Polygon. + * number of valid points in this {@code Polygon}. * * @serial * @see #addPoint(int, int) @@ -87,10 +87,10 @@ /** * The array of Y coordinates. The number of elements in * this array might be more than the number of Y coordinates - * in this Polygon. The extra elements allow new points - * to be added to this Polygon without re-creating this - * array. The value of npoints is equal to the - * number of valid points in this Polygon. + * in this {@code Polygon}. The extra elements allow new points + * to be added to this {@code Polygon} without re-creating this + * array. The value of {@code npoints} is equal to the + * number of valid points in this {@code Polygon}. * * @serial * @see #addPoint(int, int) @@ -129,19 +129,19 @@ } /** - * Constructs and initializes a Polygon from the specified + * Constructs and initializes a {@code Polygon} from the specified * parameters. * @param xpoints an array of X coordinates * @param ypoints an array of Y coordinates * @param npoints the total number of points in the - * Polygon + * {@code Polygon} * @exception NegativeArraySizeException if the value of - * npoints is negative. - * @exception IndexOutOfBoundsException if npoints is - * greater than the length of xpoints - * or the length of ypoints. - * @exception NullPointerException if xpoints or - * ypoints is null. + * {@code npoints} is negative. + * @exception IndexOutOfBoundsException if {@code npoints} is + * greater than the length of {@code xpoints} + * or the length of {@code ypoints}. + * @exception NullPointerException if {@code xpoints} or + * {@code ypoints} is {@code null}. * @since 1.0 */ public Polygon(int xpoints[], int ypoints[], int npoints) { @@ -164,7 +164,7 @@ } /** - * Resets this Polygon object to an empty polygon. + * Resets this {@code Polygon} object to an empty polygon. * The coordinate arrays and the data in them are left untouched * but the number of points is reset to zero to mark the old * vertex data as invalid and to start accumulating new vertex @@ -172,7 +172,7 @@ * All internally-cached data relating to the old vertices * are discarded. * Note that since the coordinate arrays from before the reset - * are reused, creating a new empty Polygon might + * are reused, creating a new empty {@code Polygon} might * be more memory efficient than resetting the current one if * the number of vertices in the new polygon data is significantly * smaller than the number of vertices in the data from before the @@ -187,11 +187,11 @@ /** * Invalidates or flushes any internally-cached data that depends - * on the vertex coordinates of this Polygon. + * on the vertex coordinates of this {@code Polygon}. * This method should be called after any direct manipulation - * of the coordinates in the xpoints or - * ypoints arrays to avoid inconsistent results - * from methods such as getBounds or contains + * of the coordinates in the {@code xpoints} or + * {@code ypoints} arrays to avoid inconsistent results + * from methods such as {@code getBounds} or {@code contains} * that might cache data from earlier computations relating to * the vertex coordinates. * @see java.awt.Polygon#getBounds @@ -202,9 +202,9 @@ } /** - * Translates the vertices of the Polygon by - * deltaX along the x axis and by - * deltaY along the y axis. + * Translates the vertices of the {@code Polygon} by + * {@code deltaX} along the x axis and by + * {@code deltaY} along the y axis. * @param deltaX the amount to translate along the X axis * @param deltaY the amount to translate along the Y axis * @since 1.1 @@ -221,7 +221,7 @@ /* * Calculates the bounding box of the points passed to the constructor. - * Sets bounds to the result. + * Sets {@code bounds} to the result. * @param xpoints[] array of x coordinates * @param ypoints[] array of y coordinates * @param npoints the total number of points @@ -270,11 +270,11 @@ } /** - * Appends the specified coordinates to this Polygon. + * Appends the specified coordinates to this {@code Polygon}. *

      * If an operation that calculates the bounding box of this - * Polygon has already been performed, such as - * getBounds or contains, then this + * {@code Polygon} has already been performed, such as + * {@code getBounds} or {@code contains}, then this * method updates the bounding box. * @param x the specified X coordinate * @param y the specified Y coordinate @@ -305,12 +305,12 @@ } /** - * Gets the bounding box of this Polygon. + * Gets the bounding box of this {@code Polygon}. * The bounding box is the smallest {@link Rectangle} whose * sides are parallel to the x and y axes of the - * coordinate space, and can completely contain the Polygon. - * @return a Rectangle that defines the bounds of this - * Polygon. + * coordinate space, and can completely contain the {@code Polygon}. + * @return a {@code Rectangle} that defines the bounds of this + * {@code Polygon}. * @since 1.1 */ public Rectangle getBounds() { @@ -318,10 +318,10 @@ } /** - * Returns the bounds of this Polygon. - * @return the bounds of this Polygon. + * Returns the bounds of this {@code Polygon}. + * @return the bounds of this {@code Polygon}. * @deprecated As of JDK version 1.1, - * replaced by getBounds(). + * replaced by {@code getBounds()}. * @since 1.0 */ @Deprecated @@ -337,10 +337,10 @@ /** * Determines whether the specified {@link Point} is inside this - * Polygon. - * @param p the specified Point to be tested - * @return true if the Polygon contains the - * Point; false otherwise. + * {@code Polygon}. + * @param p the specified {@code Point} to be tested + * @return {@code true} if the {@code Polygon} contains the + * {@code Point}; {@code false} otherwise. * @see #contains(double, double) * @since 1.0 */ @@ -350,7 +350,7 @@ /** * Determines whether the specified coordinates are inside this - * Polygon. + * {@code Polygon}. * * @param x the specified X coordinate to be tested * @param y the specified Y coordinate to be tested @@ -366,7 +366,7 @@ /** * Determines whether the specified coordinates are contained in this - * Polygon. + * {@code Polygon}. * @param x the specified X coordinate to be tested * @param y the specified Y coordinate to be tested * @return {@code true} if this {@code Polygon} contains @@ -374,7 +374,7 @@ * {@code false} otherwise. * @see #contains(double, double) * @deprecated As of JDK version 1.1, - * replaced by contains(int, int). + * replaced by {@code contains(int, int)}. * @since 1.0 */ @Deprecated @@ -531,15 +531,15 @@ /** * Returns an iterator object that iterates along the boundary of this - * Polygon and provides access to the geometry - * of the outline of this Polygon. An optional + * {@code Polygon} and provides access to the geometry + * of the outline of this {@code Polygon}. An optional * {@link AffineTransform} can be specified so that the coordinates * returned in the iteration are transformed accordingly. - * @param at an optional AffineTransform to be applied to the + * @param at an optional {@code AffineTransform} to be applied to the * coordinates as they are returned in the iteration, or - * null if untransformed coordinates are desired + * {@code null} if untransformed coordinates are desired * @return a {@link PathIterator} object that provides access to the - * geometry of this Polygon. + * geometry of this {@code Polygon}. * @since 1.2 */ public PathIterator getPathIterator(AffineTransform at) { @@ -548,23 +548,23 @@ /** * Returns an iterator object that iterates along the boundary of - * the Shape and provides access to the geometry of the - * outline of the Shape. Only SEG_MOVETO, SEG_LINETO, and + * the {@code Shape} and provides access to the geometry of the + * outline of the {@code Shape}. Only SEG_MOVETO, SEG_LINETO, and * SEG_CLOSE point types are returned by the iterator. - * Since polygons are already flat, the flatness parameter - * is ignored. An optional AffineTransform can be specified + * Since polygons are already flat, the {@code flatness} parameter + * is ignored. An optional {@code AffineTransform} can be specified * in which case the coordinates returned in the iteration are transformed * accordingly. - * @param at an optional AffineTransform to be applied to the + * @param at an optional {@code AffineTransform} to be applied to the * coordinates as they are returned in the iteration, or - * null if untransformed coordinates are desired + * {@code null} if untransformed coordinates are desired * @param flatness the maximum amount that the control points * for a given curve can vary from collinear before a subdivided * curve is replaced by a straight line connecting the * endpoints. Since polygons are already flat the - * flatness parameter is ignored. - * @return a PathIterator object that provides access to the - * Shape object's geometry. + * {@code flatness} parameter is ignored. + * @return a {@code PathIterator} object that provides access to the + * {@code Shape} object's geometry. * @since 1.2 */ public PathIterator getPathIterator(AffineTransform at, double flatness) { @@ -597,8 +597,8 @@ /** * Tests if there are more points to read. - * @return true if there are more points to read; - * false otherwise. + * @return {@code true} if there are more points to read; + * {@code false} otherwise. */ public boolean isDone() { return index > poly.npoints; @@ -618,12 +618,12 @@ * the iteration. * The return value is the path segment type: * SEG_MOVETO, SEG_LINETO, or SEG_CLOSE. - * A float array of length 2 must be passed in and + * A {@code float} array of length 2 must be passed in and * can be used to store the coordinates of the point(s). - * Each point is stored as a pair of float x, y + * Each point is stored as a pair of {@code float} x, y * coordinates. SEG_MOVETO and SEG_LINETO types return one * point, and SEG_CLOSE does not return any points. - * @param coords a float array that specifies the + * @param coords a {@code float} array that specifies the * coordinates of the point(s) * @return an integer representing the type and coordinates of the * current path segment. @@ -648,13 +648,13 @@ * the iteration. * The return value is the path segment type: * SEG_MOVETO, SEG_LINETO, or SEG_CLOSE. - * A double array of length 2 must be passed in and + * A {@code double} array of length 2 must be passed in and * can be used to store the coordinates of the point(s). - * Each point is stored as a pair of double x, y + * Each point is stored as a pair of {@code double} x, y * coordinates. * SEG_MOVETO and SEG_LINETO types return one point, * and SEG_CLOSE does not return any points. - * @param coords a double array that specifies the + * @param coords a {@code double} array that specifies the * coordinates of the point(s) * @return an integer representing the type and coordinates of the * current path segment. --- old/src/java.desktop/share/classes/java/awt/PopupMenu.java 2015-10-04 22:52:58.605273479 +0400 +++ new/src/java.desktop/share/classes/java/awt/PopupMenu.java 2015-10-04 22:52:58.413273488 +0400 @@ -35,11 +35,11 @@ * A class that implements a menu which can be dynamically popped up * at a specified position within a component. *

      - * As the inheritance hierarchy implies, a PopupMenu - * can be used anywhere a Menu can be used. - * However, if you use a PopupMenu like a Menu - * (e.g., you add it to a MenuBar), then you cannot - * call show on that PopupMenu. + * As the inheritance hierarchy implies, a {@code PopupMenu} + * can be used anywhere a {@code Menu} can be used. + * However, if you use a {@code PopupMenu} like a {@code Menu} + * (e.g., you add it to a {@code MenuBar}), then you cannot + * call {@code show} on that {@code PopupMenu}. * * @author Amy Fowler */ @@ -77,7 +77,7 @@ /** * Creates a new popup menu with the specified name. * - * @param label a non-null string specifying + * @param label a non-{@code null} string specifying * the popup menu's label * @exception HeadlessException if GraphicsEnvironment.isHeadless() * returns true. @@ -98,8 +98,8 @@ } /** - * Constructs a name for this MenuComponent. - * Called by getName when the name is null. + * Constructs a name for this {@code MenuComponent}. + * Called by {@code getName} when the name is {@code null}. */ String constructComponentName() { synchronized (PopupMenu.class) { @@ -139,16 +139,16 @@ * hierarchy of the popup menu's parent. Both the origin and the parent * must be showing on the screen for this method to be valid. *

      - * If this PopupMenu is being used as a Menu - * (i.e., it has a non-Component parent), - * then you cannot call this method on the PopupMenu. + * If this {@code PopupMenu} is being used as a {@code Menu} + * (i.e., it has a non-{@code Component} parent), + * then you cannot call this method on the {@code PopupMenu}. * * @param origin the component which defines the coordinate space * @param x the x coordinate position to popup the menu * @param y the y coordinate position to popup the menu - * @exception NullPointerException if the parent is null - * @exception IllegalArgumentException if this PopupMenu - * has a non-Component parent + * @exception NullPointerException if the parent is {@code null} + * @exception IllegalArgumentException if this {@code PopupMenu} + * has a non-{@code Component} parent * @exception IllegalArgumentException if the origin is not in the * parent's hierarchy * @exception RuntimeException if the parent is not showing on screen @@ -196,11 +196,11 @@ //////////////// /** - * Gets the AccessibleContext associated with this - * PopupMenu. + * Gets the {@code AccessibleContext} associated with this + * {@code PopupMenu}. * - * @return the AccessibleContext of this - * PopupMenu + * @return the {@code AccessibleContext} of this + * {@code PopupMenu} * @since 1.3 */ public AccessibleContext getAccessibleContext() { --- old/src/java.desktop/share/classes/java/awt/Rectangle.java 2015-10-04 22:52:59.129273456 +0400 +++ new/src/java.desktop/share/classes/java/awt/Rectangle.java 2015-10-04 22:52:58.937273464 +0400 @@ -29,14 +29,14 @@ import java.beans.Transient; /** - * A Rectangle specifies an area in a coordinate space that is - * enclosed by the Rectangle object's upper-left point + * A {@code Rectangle} specifies an area in a coordinate space that is + * enclosed by the {@code Rectangle} object's upper-left point * {@code (x,y)} * in the coordinate space, its width, and its height. *

      - * A Rectangle object's width and - * height are public fields. The constructors - * that create a Rectangle, and the methods that can modify + * A {@code Rectangle} object's {@code width} and + * {@code height} are {@code public} fields. The constructors + * that create a {@code Rectangle}, and the methods that can modify * one, do not prevent setting a negative value for width or height. *

      * @@ -120,7 +120,7 @@ { /** - * The X coordinate of the upper-left corner of the Rectangle. + * The X coordinate of the upper-left corner of the {@code Rectangle}. * * @serial * @see #setLocation(int, int) @@ -130,7 +130,7 @@ public int x; /** - * The Y coordinate of the upper-left corner of the Rectangle. + * The Y coordinate of the upper-left corner of the {@code Rectangle}. * * @serial * @see #setLocation(int, int) @@ -140,7 +140,7 @@ public int y; /** - * The width of the Rectangle. + * The width of the {@code Rectangle}. * @serial * @see #setSize(int, int) * @see #getSize() @@ -149,7 +149,7 @@ public int width; /** - * The height of the Rectangle. + * The height of the {@code Rectangle}. * * @serial * @see #setSize(int, int) @@ -177,7 +177,7 @@ } /** - * Constructs a new Rectangle whose upper-left corner + * Constructs a new {@code Rectangle} whose upper-left corner * is at (0, 0) in the coordinate space, and whose width and * height are both zero. */ @@ -186,10 +186,10 @@ } /** - * Constructs a new Rectangle, initialized to match - * the values of the specified Rectangle. - * @param r the Rectangle from which to copy initial values - * to a newly constructed Rectangle + * Constructs a new {@code Rectangle}, initialized to match + * the values of the specified {@code Rectangle}. + * @param r the {@code Rectangle} from which to copy initial values + * to a newly constructed {@code Rectangle} * @since 1.1 */ public Rectangle(Rectangle r) { @@ -197,14 +197,14 @@ } /** - * Constructs a new Rectangle whose upper-left corner is + * Constructs a new {@code Rectangle} whose upper-left corner is * specified as * {@code (x,y)} and whose width and height * are specified by the arguments of the same name. * @param x the specified X coordinate * @param y the specified Y coordinate - * @param width the width of the Rectangle - * @param height the height of the Rectangle + * @param width the width of the {@code Rectangle} + * @param height the height of the {@code Rectangle} * @since 1.0 */ public Rectangle(int x, int y, int width, int height) { @@ -215,94 +215,94 @@ } /** - * Constructs a new Rectangle whose upper-left corner + * Constructs a new {@code Rectangle} whose upper-left corner * is at (0, 0) in the coordinate space, and whose width and * height are specified by the arguments of the same name. - * @param width the width of the Rectangle - * @param height the height of the Rectangle + * @param width the width of the {@code Rectangle} + * @param height the height of the {@code Rectangle} */ public Rectangle(int width, int height) { this(0, 0, width, height); } /** - * Constructs a new Rectangle whose upper-left corner is + * Constructs a new {@code Rectangle} whose upper-left corner is * specified by the {@link Point} argument, and * whose width and height are specified by the * {@link Dimension} argument. - * @param p a Point that is the upper-left corner of - * the Rectangle - * @param d a Dimension, representing the - * width and height of the Rectangle + * @param p a {@code Point} that is the upper-left corner of + * the {@code Rectangle} + * @param d a {@code Dimension}, representing the + * width and height of the {@code Rectangle} */ public Rectangle(Point p, Dimension d) { this(p.x, p.y, d.width, d.height); } /** - * Constructs a new Rectangle whose upper-left corner is the - * specified Point, and whose width and height are both zero. - * @param p a Point that is the top left corner - * of the Rectangle + * Constructs a new {@code Rectangle} whose upper-left corner is the + * specified {@code Point}, and whose width and height are both zero. + * @param p a {@code Point} that is the top left corner + * of the {@code Rectangle} */ public Rectangle(Point p) { this(p.x, p.y, 0, 0); } /** - * Constructs a new Rectangle whose top left corner is + * Constructs a new {@code Rectangle} whose top left corner is * (0, 0) and whose width and height are specified - * by the Dimension argument. - * @param d a Dimension, specifying width and height + * by the {@code Dimension} argument. + * @param d a {@code Dimension}, specifying width and height */ public Rectangle(Dimension d) { this(0, 0, d.width, d.height); } /** - * Returns the X coordinate of the bounding Rectangle in - * double precision. - * @return the X coordinate of the bounding Rectangle. + * Returns the X coordinate of the bounding {@code Rectangle} in + * {@code double} precision. + * @return the X coordinate of the bounding {@code Rectangle}. */ public double getX() { return x; } /** - * Returns the Y coordinate of the bounding Rectangle in - * double precision. - * @return the Y coordinate of the bounding Rectangle. + * Returns the Y coordinate of the bounding {@code Rectangle} in + * {@code double} precision. + * @return the Y coordinate of the bounding {@code Rectangle}. */ public double getY() { return y; } /** - * Returns the width of the bounding Rectangle in - * double precision. - * @return the width of the bounding Rectangle. + * Returns the width of the bounding {@code Rectangle} in + * {@code double} precision. + * @return the width of the bounding {@code Rectangle}. */ public double getWidth() { return width; } /** - * Returns the height of the bounding Rectangle in - * double precision. - * @return the height of the bounding Rectangle. + * Returns the height of the bounding {@code Rectangle} in + * {@code double} precision. + * @return the height of the bounding {@code Rectangle}. */ public double getHeight() { return height; } /** - * Gets the bounding Rectangle of this Rectangle. + * Gets the bounding {@code Rectangle} of this {@code Rectangle}. *

      * This method is included for completeness, to parallel the - * getBounds method of + * {@code getBounds} method of * {@link Component}. - * @return a new Rectangle, equal to the - * bounding Rectangle for this Rectangle. + * @return a new {@code Rectangle}, equal to the + * bounding {@code Rectangle} for this {@code Rectangle}. * @see java.awt.Component#getBounds * @see #setBounds(Rectangle) * @see #setBounds(int, int, int, int) @@ -322,12 +322,12 @@ } /** - * Sets the bounding Rectangle of this Rectangle - * to match the specified Rectangle. + * Sets the bounding {@code Rectangle} of this {@code Rectangle} + * to match the specified {@code Rectangle}. *

      * This method is included for completeness, to parallel the - * setBounds method of Component. - * @param r the specified Rectangle + * {@code setBounds} method of {@code Component}. + * @param r the specified {@code Rectangle} * @see #getBounds * @see java.awt.Component#setBounds(java.awt.Rectangle) * @since 1.1 @@ -337,19 +337,19 @@ } /** - * Sets the bounding Rectangle of this - * Rectangle to the specified - * x, y, width, - * and height. + * Sets the bounding {@code Rectangle} of this + * {@code Rectangle} to the specified + * {@code x}, {@code y}, {@code width}, + * and {@code height}. *

      * This method is included for completeness, to parallel the - * setBounds method of Component. + * {@code setBounds} method of {@code Component}. * @param x the new X coordinate for the upper-left - * corner of this Rectangle + * corner of this {@code Rectangle} * @param y the new Y coordinate for the upper-left - * corner of this Rectangle - * @param width the new width for this Rectangle - * @param height the new height for this Rectangle + * corner of this {@code Rectangle} + * @param width the new width for this {@code Rectangle} + * @param height the new height for this {@code Rectangle} * @see #getBounds * @see java.awt.Component#setBounds(int, int, int, int) * @since 1.1 @@ -417,19 +417,19 @@ } /** - * Sets the bounding Rectangle of this - * Rectangle to the specified - * x, y, width, - * and height. + * Sets the bounding {@code Rectangle} of this + * {@code Rectangle} to the specified + * {@code x}, {@code y}, {@code width}, + * and {@code height}. * * @param x the new X coordinate for the upper-left - * corner of this Rectangle + * corner of this {@code Rectangle} * @param y the new Y coordinate for the upper-left - * corner of this Rectangle - * @param width the new width for this Rectangle - * @param height the new height for this Rectangle + * corner of this {@code Rectangle} + * @param width the new width for this {@code Rectangle} + * @param height the new height for this {@code Rectangle} * @deprecated As of JDK version 1.1, - * replaced by setBounds(int, int, int, int). + * replaced by {@code setBounds(int, int, int, int)}. */ @Deprecated public void reshape(int x, int y, int width, int height) { @@ -440,12 +440,12 @@ } /** - * Returns the location of this Rectangle. + * Returns the location of this {@code Rectangle}. *

      * This method is included for completeness, to parallel the - * getLocation method of Component. - * @return the Point that is the upper-left corner of - * this Rectangle. + * {@code getLocation} method of {@code Component}. + * @return the {@code Point} that is the upper-left corner of + * this {@code Rectangle}. * @see java.awt.Component#getLocation * @see #setLocation(Point) * @see #setLocation(int, int) @@ -456,12 +456,12 @@ } /** - * Moves this Rectangle to the specified location. + * Moves this {@code Rectangle} to the specified location. *

      * This method is included for completeness, to parallel the - * setLocation method of Component. - * @param p the Point specifying the new location - * for this Rectangle + * {@code setLocation} method of {@code Component}. + * @param p the {@code Point} specifying the new location + * for this {@code Rectangle} * @see java.awt.Component#setLocation(java.awt.Point) * @see #getLocation * @since 1.1 @@ -471,10 +471,10 @@ } /** - * Moves this Rectangle to the specified location. + * Moves this {@code Rectangle} to the specified location. *

      * This method is included for completeness, to parallel the - * setLocation method of Component. + * {@code setLocation} method of {@code Component}. * @param x the X coordinate of the new location * @param y the Y coordinate of the new location * @see #getLocation @@ -486,12 +486,12 @@ } /** - * Moves this Rectangle to the specified location. + * Moves this {@code Rectangle} to the specified location. * * @param x the X coordinate of the new location * @param y the Y coordinate of the new location * @deprecated As of JDK version 1.1, - * replaced by setLocation(int, int). + * replaced by {@code setLocation(int, int)}. */ @Deprecated public void move(int x, int y) { @@ -500,12 +500,12 @@ } /** - * Translates this Rectangle the indicated distance, + * Translates this {@code Rectangle} the indicated distance, * to the right along the X coordinate axis, and * downward along the Y coordinate axis. - * @param dx the distance to move this Rectangle + * @param dx the distance to move this {@code Rectangle} * along the X axis - * @param dy the distance to move this Rectangle + * @param dy the distance to move this {@code Rectangle} * along the Y axis * @see java.awt.Rectangle#setLocation(int, int) * @see java.awt.Rectangle#setLocation(java.awt.Point) @@ -578,13 +578,13 @@ } /** - * Gets the size of this Rectangle, represented by - * the returned Dimension. + * Gets the size of this {@code Rectangle}, represented by + * the returned {@code Dimension}. *

      * This method is included for completeness, to parallel the - * getSize method of Component. - * @return a Dimension, representing the size of - * this Rectangle. + * {@code getSize} method of {@code Component}. + * @return a {@code Dimension}, representing the size of + * this {@code Rectangle}. * @see java.awt.Component#getSize * @see #setSize(Dimension) * @see #setSize(int, int) @@ -595,12 +595,12 @@ } /** - * Sets the size of this Rectangle to match the - * specified Dimension. + * Sets the size of this {@code Rectangle} to match the + * specified {@code Dimension}. *

      * This method is included for completeness, to parallel the - * setSize method of Component. - * @param d the new size for the Dimension object + * {@code setSize} method of {@code Component}. + * @param d the new size for the {@code Dimension} object * @see java.awt.Component#setSize(java.awt.Dimension) * @see #getSize * @since 1.1 @@ -610,13 +610,13 @@ } /** - * Sets the size of this Rectangle to the specified + * Sets the size of this {@code Rectangle} to the specified * width and height. *

      * This method is included for completeness, to parallel the - * setSize method of Component. - * @param width the new width for this Rectangle - * @param height the new height for this Rectangle + * {@code setSize} method of {@code Component}. + * @param width the new width for this {@code Rectangle} + * @param height the new height for this {@code Rectangle} * @see java.awt.Component#setSize(int, int) * @see #getSize * @since 1.1 @@ -626,13 +626,13 @@ } /** - * Sets the size of this Rectangle to the specified + * Sets the size of this {@code Rectangle} to the specified * width and height. * - * @param width the new width for this Rectangle - * @param height the new height for this Rectangle + * @param width the new width for this {@code Rectangle} + * @param height the new height for this {@code Rectangle} * @deprecated As of JDK version 1.1, - * replaced by setSize(int, int). + * replaced by {@code setSize(int, int)}. */ @Deprecated public void resize(int width, int height) { @@ -641,12 +641,12 @@ } /** - * Checks whether or not this Rectangle contains the - * specified Point. - * @param p the Point to test - * @return true if the specified Point - * is inside this Rectangle; - * false otherwise. + * Checks whether or not this {@code Rectangle} contains the + * specified {@code Point}. + * @param p the {@code Point} to test + * @return {@code true} if the specified {@code Point} + * is inside this {@code Rectangle}; + * {@code false} otherwise. * @since 1.1 */ public boolean contains(Point p) { @@ -654,15 +654,15 @@ } /** - * Checks whether or not this Rectangle contains the + * Checks whether or not this {@code Rectangle} contains the * point at the specified location {@code (x,y)}. * * @param x the specified X coordinate * @param y the specified Y coordinate - * @return true if the point + * @return {@code true} if the point * {@code (x,y)} is inside this - * Rectangle; - * false otherwise. + * {@code Rectangle}; + * {@code false} otherwise. * @since 1.1 */ public boolean contains(int x, int y) { @@ -670,13 +670,13 @@ } /** - * Checks whether or not this Rectangle entirely contains - * the specified Rectangle. + * Checks whether or not this {@code Rectangle} entirely contains + * the specified {@code Rectangle}. * - * @param r the specified Rectangle - * @return true if the Rectangle - * is contained entirely inside this Rectangle; - * false otherwise + * @param r the specified {@code Rectangle} + * @return {@code true} if the {@code Rectangle} + * is contained entirely inside this {@code Rectangle}; + * {@code false} otherwise * @since 1.2 */ public boolean contains(Rectangle r) { @@ -684,18 +684,18 @@ } /** - * Checks whether this Rectangle entirely contains - * the Rectangle + * Checks whether this {@code Rectangle} entirely contains + * the {@code Rectangle} * at the specified location {@code (X,Y)} with the * specified dimensions {@code (W,H)}. * @param X the specified X coordinate * @param Y the specified Y coordinate - * @param W the width of the Rectangle - * @param H the height of the Rectangle - * @return true if the Rectangle specified by + * @param W the width of the {@code Rectangle} + * @param H the height of the {@code Rectangle} + * @return {@code true} if the {@code Rectangle} specified by * {@code (X, Y, W, H)} - * is entirely enclosed inside this Rectangle; - * false otherwise. + * is entirely enclosed inside this {@code Rectangle}; + * {@code false} otherwise. * @since 1.1 */ public boolean contains(int X, int Y, int W, int H) { @@ -736,17 +736,17 @@ } /** - * Checks whether or not this Rectangle contains the + * Checks whether or not this {@code Rectangle} contains the * point at the specified location {@code (X,Y)}. * * @param X the specified X coordinate * @param Y the specified Y coordinate - * @return true if the point + * @return {@code true} if the point * {@code (X,Y)} is inside this - * Rectangle; - * false otherwise. + * {@code Rectangle}; + * {@code false} otherwise. * @deprecated As of JDK version 1.1, - * replaced by contains(int, int). + * replaced by {@code contains(int, int)}. */ @Deprecated public boolean inside(int X, int Y) { @@ -770,14 +770,14 @@ } /** - * Determines whether or not this Rectangle and the specified - * Rectangle intersect. Two rectangles intersect if + * Determines whether or not this {@code Rectangle} and the specified + * {@code Rectangle} intersect. Two rectangles intersect if * their intersection is nonempty. * - * @param r the specified Rectangle - * @return true if the specified Rectangle - * and this Rectangle intersect; - * false otherwise. + * @param r the specified {@code Rectangle} + * @return {@code true} if the specified {@code Rectangle} + * and this {@code Rectangle} intersect; + * {@code false} otherwise. */ public boolean intersects(Rectangle r) { int tw = this.width; @@ -803,16 +803,16 @@ } /** - * Computes the intersection of this Rectangle with the - * specified Rectangle. Returns a new Rectangle + * Computes the intersection of this {@code Rectangle} with the + * specified {@code Rectangle}. Returns a new {@code Rectangle} * that represents the intersection of the two rectangles. * If the two rectangles do not intersect, the result will be * an empty rectangle. * - * @param r the specified Rectangle - * @return the largest Rectangle contained in both the - * specified Rectangle and in - * this Rectangle; or if the rectangles + * @param r the specified {@code Rectangle} + * @return the largest {@code Rectangle} contained in both the + * specified {@code Rectangle} and in + * this {@code Rectangle}; or if the rectangles * do not intersect, an empty rectangle. */ public Rectangle intersection(Rectangle r) { @@ -839,9 +839,9 @@ } /** - * Computes the union of this Rectangle with the - * specified Rectangle. Returns a new - * Rectangle that + * Computes the union of this {@code Rectangle} with the + * specified {@code Rectangle}. Returns a new + * {@code Rectangle} that * represents the union of the two rectangles. *

      * If either {@code Rectangle} has any dimension less than zero @@ -856,10 +856,10 @@ * too large to be expressed as an {@code int}, the result * will have a dimension of {@code Integer.MAX_VALUE} along * that dimension. - * @param r the specified Rectangle - * @return the smallest Rectangle containing both - * the specified Rectangle and this - * Rectangle. + * @param r the specified {@code Rectangle} + * @return the smallest {@code Rectangle} containing both + * the specified {@code Rectangle} and this + * {@code Rectangle}. */ public Rectangle union(Rectangle r) { long tx2 = this.width; @@ -911,14 +911,14 @@ * have a location equal to the specified coordinates and * width and height equal to zero. *

      - * After adding a point, a call to contains with the + * After adding a point, a call to {@code contains} with the * added point as an argument does not necessarily return - * true. The contains method does not - * return true for points on the right or bottom - * edges of a Rectangle. Therefore, if the added point + * {@code true}. The {@code contains} method does not + * return {@code true} for points on the right or bottom + * edges of a {@code Rectangle}. Therefore, if the added point * falls on the right or bottom edge of the enlarged - * Rectangle, contains returns - * false for that point. + * {@code Rectangle}, {@code contains} returns + * {@code false} for that point. * If the specified point must be contained within the new * {@code Rectangle}, a 1x1 rectangle should be added instead: *

      @@ -962,29 +962,29 @@
            * have a location equal to the coordinates of the specified
            * {@code Point} and width and height equal to zero.
            * 

      - * After adding a Point, a call to contains - * with the added Point as an argument does not - * necessarily return true. The contains - * method does not return true for points on the right - * or bottom edges of a Rectangle. Therefore if the added - * Point falls on the right or bottom edge of the - * enlarged Rectangle, contains returns - * false for that Point. + * After adding a {@code Point}, a call to {@code contains} + * with the added {@code Point} as an argument does not + * necessarily return {@code true}. The {@code contains} + * method does not return {@code true} for points on the right + * or bottom edges of a {@code Rectangle}. Therefore if the added + * {@code Point} falls on the right or bottom edge of the + * enlarged {@code Rectangle}, {@code contains} returns + * {@code false} for that {@code Point}. * If the specified point must be contained within the new * {@code Rectangle}, a 1x1 rectangle should be added instead: *

            *     r.add(pt.x, pt.y, 1, 1);
            * 
      - * @param pt the new Point to add to this - * Rectangle + * @param pt the new {@code Point} to add to this + * {@code Rectangle} */ public void add(Point pt) { add(pt.x, pt.y); } /** - * Adds a Rectangle to this Rectangle. - * The resulting Rectangle is the union of the two + * Adds a {@code Rectangle} to this {@code Rectangle}. + * The resulting {@code Rectangle} is the union of the two * rectangles. *

      * If either {@code Rectangle} has any dimension less than 0, the @@ -1003,7 +1003,7 @@ * too large to be expressed as an {@code int}, the result * will have a dimension of {@code Integer.MAX_VALUE} along * that dimension. - * @param r the specified Rectangle + * @param r the specified {@code Rectangle} */ public void add(Rectangle r) { long tx2 = this.width; @@ -1039,19 +1039,19 @@ } /** - * Resizes the Rectangle both horizontally and vertically. + * Resizes the {@code Rectangle} both horizontally and vertically. *

      - * This method modifies the Rectangle so that it is - * h units larger on both the left and right side, - * and v units larger at both the top and bottom. + * This method modifies the {@code Rectangle} so that it is + * {@code h} units larger on both the left and right side, + * and {@code v} units larger at both the top and bottom. *

      - * The new Rectangle has {@code (x - h, y - v)} + * The new {@code Rectangle} has {@code (x - h, y - v)} * as its upper-left corner, * width of {@code (width + 2h)}, * and a height of {@code (height + 2v)}. *

      - * If negative values are supplied for h and - * v, the size of the Rectangle + * If negative values are supplied for {@code h} and + * {@code v}, the size of the {@code Rectangle} * decreases accordingly. * The {@code grow} method will check for integer overflow * and underflow, but does not check whether the resulting @@ -1183,14 +1183,14 @@ /** * Checks whether two rectangles are equal. *

      - * The result is true if and only if the argument is not - * null and is a Rectangle object that has the + * The result is {@code true} if and only if the argument is not + * {@code null} and is a {@code Rectangle} object that has the * same upper-left corner, width, and height as - * this Rectangle. - * @param obj the Object to compare with - * this Rectangle - * @return true if the objects are equal; - * false otherwise. + * this {@code Rectangle}. + * @param obj the {@code Object} to compare with + * this {@code Rectangle} + * @return {@code true} if the objects are equal; + * {@code false} otherwise. */ public boolean equals(Object obj) { if (obj instanceof Rectangle) { @@ -1204,10 +1204,10 @@ } /** - * Returns a String representing this - * Rectangle and its values. - * @return a String representing this - * Rectangle object's coordinate and size values. + * Returns a {@code String} representing this + * {@code Rectangle} and its values. + * @return a {@code String} representing this + * {@code Rectangle} object's coordinate and size values. */ public String toString() { return getClass().getName() + "[x=" + x + ",y=" + y + ",width=" + width + ",height=" + height + "]"; --- old/src/java.desktop/share/classes/java/awt/RenderingHints.java 2015-10-04 22:52:59.677273431 +0400 +++ new/src/java.desktop/share/classes/java/awt/RenderingHints.java 2015-10-04 22:52:59.489273440 +0400 @@ -161,9 +161,9 @@ /** * Returns true if the specified object is a valid value * for this Key. - * @param val the Object to test for validity - * @return true if val is valid; - * false otherwise. + * @param val the {@code Object} to test for validity + * @return {@code true} if {@code val} is valid; + * {@code false} otherwise. */ public abstract boolean isCompatibleValue(Object val); @@ -519,7 +519,7 @@ /** * LCD text contrast rendering hint key. - * The value is an Integer object which is used as a text + * The value is an {@code Integer} object which is used as a text * contrast adjustment when used in conjunction with an LCD text * anti-aliasing hint such as * {@link #VALUE_TEXT_ANTIALIAS_LCD_HRGB}. @@ -1028,7 +1028,7 @@ * Constructs a new object with the specified key/value pair. * @param key the key of the particular hint property * @param value the value of the hint property specified with - * key + * {@code key} */ public RenderingHints(Key key, Object value) { hintmap.put(key, value); @@ -1036,21 +1036,21 @@ /** * Returns the number of key-value mappings in this - * RenderingHints. + * {@code RenderingHints}. * * @return the number of key-value mappings in this - * RenderingHints. + * {@code RenderingHints}. */ public int size() { return hintmap.size(); } /** - * Returns true if this - * RenderingHints contains no key-value mappings. + * Returns {@code true} if this + * {@code RenderingHints} contains no key-value mappings. * - * @return true if this - * RenderingHints contains no key-value mappings. + * @return {@code true} if this + * {@code RenderingHints} contains no key-value mappings. */ public boolean isEmpty() { return hintmap.isEmpty(); @@ -1074,19 +1074,19 @@ /** * Returns true if this RenderingHints maps one or more keys to the * specified value. - * More formally, returns true if and only - * if this RenderingHints - * contains at least one mapping to a value v such that + * More formally, returns {@code true} if and only + * if this {@code RenderingHints} + * contains at least one mapping to a value {@code v} such that *

            * (value==null ? v==null : value.equals(v))
            * 
      . * This operation will probably require time linear in the - * RenderingHints size for most implementations - * of RenderingHints. + * {@code RenderingHints} size for most implementations + * of {@code RenderingHints}. * * @param value value whose presence in this - * RenderingHints is to be tested. - * @return true if this RenderingHints + * {@code RenderingHints} is to be tested. + * @return {@code true} if this {@code RenderingHints} * maps one or more keys to the specified value. */ public boolean containsValue(Object value) { @@ -1139,19 +1139,19 @@ /** * Adds all of the keys and corresponding values from the specified - * RenderingHints object to this - * RenderingHints object. Keys that are present in - * this RenderingHints object, but not in the specified - * RenderingHints object are not affected. + * {@code RenderingHints} object to this + * {@code RenderingHints} object. Keys that are present in + * this {@code RenderingHints} object, but not in the specified + * {@code RenderingHints} object are not affected. * @param hints the set of key/value pairs to be added to this - * RenderingHints object + * {@code RenderingHints} object */ public void add(RenderingHints hints) { hintmap.putAll(hints.hintmap); } /** - * Clears this RenderingHints object of all key/value + * Clears this {@code RenderingHints} object of all key/value * pairs. */ public void clear() { @@ -1202,93 +1202,93 @@ } /** - * Returns a Set view of the Keys contained in this - * RenderingHints. The Set is backed by the - * RenderingHints, so changes to the - * RenderingHints are reflected in the Set, - * and vice-versa. If the RenderingHints is modified - * while an iteration over the Set is in progress, - * the results of the iteration are undefined. The Set + * Returns a {@code Set} view of the Keys contained in this + * {@code RenderingHints}. The Set is backed by the + * {@code RenderingHints}, so changes to the + * {@code RenderingHints} are reflected in the {@code Set}, + * and vice-versa. If the {@code RenderingHints} is modified + * while an iteration over the {@code Set} is in progress, + * the results of the iteration are undefined. The {@code Set} * supports element removal, which removes the corresponding - * mapping from the RenderingHints, via the - * Iterator.remove, Set.remove, - * removeAll retainAll, and - * clear operations. It does not support - * the add or addAll operations. + * mapping from the {@code RenderingHints}, via the + * {@code Iterator.remove}, {@code Set.remove}, + * {@code removeAll retainAll}, and + * {@code clear} operations. It does not support + * the {@code add} or {@code addAll} operations. * - * @return a Set view of the keys contained - * in this RenderingHints. + * @return a {@code Set} view of the keys contained + * in this {@code RenderingHints}. */ public Set keySet() { return hintmap.keySet(); } /** - * Returns a Collection view of the values - * contained in this RenderingHints. - * The Collection is backed by the - * RenderingHints, so changes to - * the RenderingHints are reflected in - * the Collection, and vice-versa. - * If the RenderingHints is modified while - * an iteration over the Collection is + * Returns a {@code Collection} view of the values + * contained in this {@code RenderingHints}. + * The {@code Collection} is backed by the + * {@code RenderingHints}, so changes to + * the {@code RenderingHints} are reflected in + * the {@code Collection}, and vice-versa. + * If the {@code RenderingHints} is modified while + * an iteration over the {@code Collection} is * in progress, the results of the iteration are undefined. - * The Collection supports element removal, + * The {@code Collection} supports element removal, * which removes the corresponding mapping from the - * RenderingHints, via the - * Iterator.remove, - * Collection.remove, removeAll, - * retainAll and clear operations. - * It does not support the add or - * addAll operations. + * {@code RenderingHints}, via the + * {@code Iterator.remove}, + * {@code Collection.remove}, {@code removeAll}, + * {@code retainAll} and {@code clear} operations. + * It does not support the {@code add} or + * {@code addAll} operations. * - * @return a Collection view of the values - * contained in this RenderingHints. + * @return a {@code Collection} view of the values + * contained in this {@code RenderingHints}. */ public Collection values() { return hintmap.values(); } /** - * Returns a Set view of the mappings contained - * in this RenderingHints. Each element in the - * returned Set is a Map.Entry. - * The Set is backed by the RenderingHints, - * so changes to the RenderingHints are reflected - * in the Set, and vice-versa. If the - * RenderingHints is modified while - * while an iteration over the Set is in progress, + * Returns a {@code Set} view of the mappings contained + * in this {@code RenderingHints}. Each element in the + * returned {@code Set} is a {@code Map.Entry}. + * The {@code Set} is backed by the {@code RenderingHints}, + * so changes to the {@code RenderingHints} are reflected + * in the {@code Set}, and vice-versa. If the + * {@code RenderingHints} is modified while + * while an iteration over the {@code Set} is in progress, * the results of the iteration are undefined. *

      - * The entrySet returned from a RenderingHints object + * The entrySet returned from a {@code RenderingHints} object * is not modifiable. * - * @return a Set view of the mappings contained in - * this RenderingHints. + * @return a {@code Set} view of the mappings contained in + * this {@code RenderingHints}. */ public Set> entrySet() { return Collections.unmodifiableMap(hintmap).entrySet(); } /** - * Compares the specified Object with this - * RenderingHints for equality. - * Returns true if the specified object is also a - * Map and the two Map objects represent - * the same mappings. More formally, two Map objects - * t1 and t2 represent the same mappings - * if t1.keySet().equals(t2.keySet()) and for every - * key k in t1.keySet(), + * Compares the specified {@code Object} with this + * {@code RenderingHints} for equality. + * Returns {@code true} if the specified object is also a + * {@code Map} and the two {@code Map} objects represent + * the same mappings. More formally, two {@code Map} objects + * {@code t1} and {@code t2} represent the same mappings + * if {@code t1.keySet().equals(t2.keySet())} and for every + * key {@code k} in {@code t1.keySet()}, *

            * (t1.get(k)==null ? t2.get(k)==null : t1.get(k).equals(t2.get(k)))
            * 
      . - * This ensures that the equals method works properly across - * different implementations of the Map interface. + * This ensures that the {@code equals} method works properly across + * different implementations of the {@code Map} interface. * - * @param o Object to be compared for equality with - * this RenderingHints. - * @return true if the specified Object - * is equal to this RenderingHints. + * @param o {@code Object} to be compared for equality with + * this {@code RenderingHints}. + * @return {@code true} if the specified {@code Object} + * is equal to this {@code RenderingHints}. */ public boolean equals(Object o) { if (o instanceof RenderingHints) { @@ -1300,16 +1300,16 @@ } /** - * Returns the hash code value for this RenderingHints. - * The hash code of a RenderingHints is defined to be - * the sum of the hashCodes of each Entry in the - * RenderingHints object's entrySet view. This ensures that - * t1.equals(t2) implies that - * t1.hashCode()==t2.hashCode() for any two Map - * objects t1 and t2, as required by the general - * contract of Object.hashCode. + * Returns the hash code value for this {@code RenderingHints}. + * The hash code of a {@code RenderingHints} is defined to be + * the sum of the hashCodes of each {@code Entry} in the + * {@code RenderingHints} object's entrySet view. This ensures that + * {@code t1.equals(t2)} implies that + * {@code t1.hashCode()==t2.hashCode()} for any two {@code Map} + * objects {@code t1} and {@code t2}, as required by the general + * contract of {@code Object.hashCode}. * - * @return the hash code value for this RenderingHints. + * @return the hash code value for this {@code RenderingHints}. * @see java.util.Map.Entry#hashCode() * @see Object#hashCode() * @see Object#equals(Object) @@ -1320,8 +1320,8 @@ } /** - * Creates a clone of this RenderingHints object - * that has the same contents as this RenderingHints + * Creates a clone of this {@code RenderingHints} object + * that has the same contents as this {@code RenderingHints} * object. * @return a clone of this instance. */ @@ -1344,7 +1344,7 @@ /** * Returns a rather long string representation of the hashmap * which contains the mappings of keys to values for this - * RenderingHints object. + * {@code RenderingHints} object. * @return a string representation of this object. */ public String toString() { --- old/src/java.desktop/share/classes/java/awt/Robot.java 2015-10-04 22:53:00.221273407 +0400 +++ new/src/java.desktop/share/classes/java/awt/Robot.java 2015-10-04 22:53:00.029273415 +0400 @@ -49,12 +49,12 @@ * Using the class to generate input events differs from posting * events to the AWT event queue or AWT components in that the * events are generated in the platform's native input - * queue. For example, Robot.mouseMove will actually move + * queue. For example, {@code Robot.mouseMove} will actually move * the mouse cursor instead of just generating mouse move events. *

      * Note that some platforms require special privileges or extensions * to access low-level input control. If the current platform configuration - * does not allow input control, an AWTException will be thrown + * does not allow input control, an {@code AWTException} will be thrown * when trying to construct Robot objects. For example, X-Window systems * will throw the exception if the XTEST 2.2 standard extension is not supported * (or not enabled) by the X server. @@ -80,7 +80,7 @@ * @throws AWTException if the platform configuration does not allow * low-level input control. This exception is always thrown when * GraphicsEnvironment.isHeadless() returns true - * @throws SecurityException if createRobot permission is not granted + * @throws SecurityException if {@code createRobot} permission is not granted * @see java.awt.GraphicsEnvironment#isHeadless * @see SecurityManager#checkPermission * @see AWTPermission @@ -113,9 +113,9 @@ * @throws AWTException if the platform configuration does not allow * low-level input control. This exception is always thrown when * GraphicsEnvironment.isHeadless() returns true. - * @throws IllegalArgumentException if screen is not a screen + * @throws IllegalArgumentException if {@code screen} is not a screen * GraphicsDevice. - * @throws SecurityException if createRobot permission is not granted + * @throws SecurityException if {@code createRobot} permission is not granted * @see java.awt.GraphicsEnvironment#isHeadless * @see GraphicsDevice * @see SecurityManager#checkPermission @@ -336,14 +336,14 @@ /** * Presses a given key. The key should be released using the - * keyRelease method. + * {@code keyRelease} method. *

      * Key codes that have more than one physical key associated with them - * (e.g. KeyEvent.VK_SHIFT could mean either the + * (e.g. {@code KeyEvent.VK_SHIFT} could mean either the * left or right shift key) will map to the left key. * - * @param keycode Key to press (e.g. KeyEvent.VK_A) - * @throws IllegalArgumentException if keycode is not + * @param keycode Key to press (e.g. {@code KeyEvent.VK_A}) + * @throws IllegalArgumentException if {@code keycode} is not * a valid key * @see #keyRelease(int) * @see java.awt.event.KeyEvent @@ -358,11 +358,11 @@ * Releases a given key. *

      * Key codes that have more than one physical key associated with them - * (e.g. KeyEvent.VK_SHIFT could mean either the + * (e.g. {@code KeyEvent.VK_SHIFT} could mean either the * left or right shift key) will map to the left key. * - * @param keycode Key to release (e.g. KeyEvent.VK_A) - * @throws IllegalArgumentException if keycode is not a + * @param keycode Key to release (e.g. {@code KeyEvent.VK_A}) + * @throws IllegalArgumentException if {@code keycode} is not a * valid key * @see #keyPress(int) * @see java.awt.event.KeyEvent @@ -399,8 +399,8 @@ * not include the mouse cursor. * @param screenRect Rect to capture in screen coordinates * @return The captured image - * @throws IllegalArgumentException if screenRect width and height are not greater than zero - * @throws SecurityException if readDisplayPixels permission is not granted + * @throws IllegalArgumentException if {@code screenRect} width and height are not greater than zero + * @throws SecurityException if {@code readDisplayPixels} permission is not granted * @see SecurityManager#checkPermission * @see AWTPermission */ @@ -470,18 +470,18 @@ } /** - * Returns whether this Robot automatically invokes waitForIdle + * Returns whether this Robot automatically invokes {@code waitForIdle} * after generating an event. - * @return Whether waitForIdle is automatically called + * @return Whether {@code waitForIdle} is automatically called */ public synchronized boolean isAutoWaitForIdle() { return isAutoWaitForIdle; } /** - * Sets whether this Robot automatically invokes waitForIdle + * Sets whether this Robot automatically invokes {@code waitForIdle} * after generating an event. - * @param isOn Whether waitForIdle is automatically invoked + * @param isOn Whether {@code waitForIdle} is automatically invoked */ public synchronized void setAutoWaitForIdle(boolean isOn) { isAutoWaitForIdle = isOn; @@ -526,8 +526,8 @@ /** * Sleeps for the specified time. - * To catch any InterruptedExceptions that occur, - * Thread.sleep() may be used instead. + * To catch any {@code InterruptedException}s that occur, + * {@code Thread.sleep()} may be used instead. * * @param ms time to sleep in milliseconds * @throws IllegalArgumentException if {@code ms} --- old/src/java.desktop/share/classes/java/awt/ScrollPane.java 2015-10-04 22:53:00.773273382 +0400 +++ new/src/java.desktop/share/classes/java/awt/ScrollPane.java 2015-10-04 22:53:00.561273391 +0400 @@ -47,8 +47,8 @@ * *

      * The state of the horizontal and vertical scrollbars is represented - * by two ScrollPaneAdjustable objects (one for each - * dimension) which implement the Adjustable interface. + * by two {@code ScrollPaneAdjustable} objects (one for each + * dimension) which implement the {@code Adjustable} interface. * The API provides methods to access those objects such that the * attributes on the Adjustable object (such as unitIncrement, value, * etc.) can be manipulated. @@ -71,7 +71,7 @@ * be reset using setSize(). *

      * Scrolling with the wheel on a wheel-equipped mouse is enabled by default. - * This can be disabled using setWheelScrollingEnabled. + * This can be disabled using {@code setWheelScrollingEnabled}. * Wheel scrolling can be customized by setting the block and * unit increment of the horizontal and vertical Adjustables. * For information on how mouse wheel events are dispatched, see @@ -136,9 +136,9 @@ /** * An adjustable vertical scrollbar. * It is important to note that you must NOT call 3 - * Adjustable methods, namely: - * setMinimum(), setMaximum(), - * setVisibleAmount(). + * {@code Adjustable} methods, namely: + * {@code setMinimum()}, {@code setMaximum()}, + * {@code setVisibleAmount()}. * * @serial * @see #getVAdjustable @@ -148,9 +148,9 @@ /** * An adjustable horizontal scrollbar. * It is important to note that you must NOT call 3 - * Adjustable methods, namely: - * setMinimum(), setMaximum(), - * setVisibleAmount(). + * {@code Adjustable} methods, namely: + * {@code setMinimum()}, {@code setMaximum()}, + * {@code setVisibleAmount()}. * * @serial * @see #getHAdjustable @@ -318,10 +318,10 @@ } /** - * Returns the ScrollPaneAdjustable object which + * Returns the {@code ScrollPaneAdjustable} object which * represents the state of the vertical scrollbar. * The declared return type of this method is - * Adjustable to maintain backward compatibility. + * {@code Adjustable} to maintain backward compatibility. * * @see java.awt.ScrollPaneAdjustable * @return the vertical scrollbar state @@ -331,10 +331,10 @@ } /** - * Returns the ScrollPaneAdjustable object which + * Returns the {@code ScrollPaneAdjustable} object which * represents the state of the horizontal scrollbar. * The declared return type of this method is - * Adjustable to maintain backward compatibility. + * {@code Adjustable} to maintain backward compatibility. * * @see java.awt.ScrollPaneAdjustable * @return the horizontal scrollbar state @@ -488,7 +488,7 @@ /** * @deprecated As of JDK version 1.1, - * replaced by doLayout(). + * replaced by {@code doLayout()}. */ @Deprecated public void layout() { @@ -573,11 +573,11 @@ /** * Returns a string representing the state of this - * ScrollPane. This + * {@code ScrollPane}. This * method is intended to be used only for debugging purposes, and the * content and format of the returned string may vary between * implementations. The returned string may be empty but may not be - * null. + * {@code null}. * * @return the parameter string of this scroll pane */ @@ -610,8 +610,8 @@ /** * Process mouse wheel events that are delivered to this - * ScrollPane by scrolling an appropriate amount. - *

      Note that if the event parameter is null + * {@code ScrollPane} by scrolling an appropriate amount. + *

      Note that if the event parameter is {@code null} * the behavior is unspecified and may result in an * exception. * @@ -643,9 +643,9 @@ * Enables/disables scrolling in response to movement of the mouse wheel. * Wheel scrolling is enabled by default. * - * @param handleWheel true if scrolling should be done + * @param handleWheel {@code true} if scrolling should be done * automatically for a MouseWheelEvent, - * false otherwise. + * {@code false} otherwise. * @see #isWheelScrollingEnabled * @see java.awt.event.MouseWheelEvent * @see java.awt.event.MouseWheelListener @@ -683,8 +683,8 @@ /** * Reads default serializable fields to stream. * @exception HeadlessException if - * GraphicsEnvironment.isHeadless() returns - * true + * {@code GraphicsEnvironment.isHeadless()} returns + * {@code true} * @see java.awt.GraphicsEnvironment#isHeadless */ private void readObject(ObjectInputStream s) @@ -779,7 +779,7 @@ /** * This class implements accessibility support for the - * ScrollPane class. It provides an implementation of the + * {@code ScrollPane} class. It provides an implementation of the * Java Accessibility API appropriate to scroll pane user-interface * elements. * @since 1.3 --- old/src/java.desktop/share/classes/java/awt/ScrollPaneAdjustable.java 2015-10-04 22:53:01.317273357 +0400 +++ new/src/java.desktop/share/classes/java/awt/ScrollPaneAdjustable.java 2015-10-04 22:53:01.113273367 +0400 @@ -34,15 +34,15 @@ /** * This class represents the state of a horizontal or vertical - * scrollbar of a ScrollPane. Objects of this class are - * returned by ScrollPane methods. + * scrollbar of a {@code ScrollPane}. Objects of this class are + * returned by {@code ScrollPane} methods. * * @since 1.4 */ public class ScrollPaneAdjustable implements Adjustable, Serializable { /** - * The ScrollPane this object is a scrollbar of. + * The {@code ScrollPane} this object is a scrollbar of. * @serial */ private ScrollPane sp; @@ -59,8 +59,8 @@ /** * The value of this scrollbar. - * value should be greater than minimum - * and less than maximum + * {@code value} should be greater than {@code minimum} + * and less than {@code maximum} * * @serial * @see #getValue @@ -70,14 +70,14 @@ /** * The minimum value of this scrollbar. - * This value can only be set by the ScrollPane. + * This value can only be set by the {@code ScrollPane}. *

      * ATTN: In current implementation - * minimum is always 0. This field can - * only be altered via setSpan method and - * ScrollPane always calls that method with - * 0 for the minimum. getMinimum method - * always returns 0 without checking this field. + * {@code minimum} is always {@code 0}. This field can + * only be altered via {@code setSpan} method and + * {@code ScrollPane} always calls that method with + * {@code 0} for the minimum. {@code getMinimum} method + * always returns {@code 0} without checking this field. * * @serial * @see #getMinimum @@ -87,7 +87,7 @@ /** * The maximum value of this scrollbar. - * This value can only be set by the ScrollPane. + * This value can only be set by the {@code ScrollPane}. * * @serial * @see #getMaximum @@ -97,7 +97,7 @@ /** * The size of the visible portion of this scrollbar. - * This value can only be set by the ScrollPane. + * This value can only be set by the {@code ScrollPane}. * * @serial * @see #getVisibleAmount @@ -106,7 +106,7 @@ private int visibleAmount; /** - * The adjusting status of the Scrollbar. + * The adjusting status of the {@code Scrollbar}. * True if the value is in the process of changing as a result of * actions being taken by the user. * @@ -141,7 +141,7 @@ private AdjustmentListener adjustmentListener; /** - * Error message for AWTError reported when one of + * Error message for {@code AWTError} reported when one of * the public but unsupported methods is called. */ private static final String SCROLLPANE_ONLY = @@ -174,13 +174,13 @@ /** * Constructs a new object to represent specified scrollabar - * of the specified ScrollPane. + * of the specified {@code ScrollPane}. * Only ScrollPane creates instances of this class. - * @param sp ScrollPane - * @param l AdjustmentListener to add upon creation. + * @param sp {@code ScrollPane} + * @param l {@code AdjustmentListener} to add upon creation. * @param orientation specifies which scrollbar this object represents, - * can be either Adjustable.HORIZONTAL - * or Adjustable.VERTICAL. + * can be either {@code Adjustable.HORIZONTAL} + * or {@code Adjustable.VERTICAL}. */ ScrollPaneAdjustable(ScrollPane sp, AdjustmentListener l, int orientation) { this.sp = sp; @@ -190,8 +190,8 @@ /** * This is called by the scrollpane itself to update the - * minimum, maximum and - * visible values. The scrollpane is the only one + * {@code minimum}, {@code maximum} and + * {@code visible} values. The scrollpane is the only one * that should be changing these since it is the source of these * values. */ @@ -208,8 +208,8 @@ /** * Returns the orientation of this scrollbar. * @return the orientation of this scrollbar, either - * Adjustable.HORIZONTAL or - * Adjustable.VERTICAL + * {@code Adjustable.HORIZONTAL} or + * {@code Adjustable.VERTICAL} */ public int getOrientation() { return orientation; @@ -218,7 +218,7 @@ /** * This method should NOT be called by user code. * This method is public for this class to properly implement - * Adjustable interface. + * {@code Adjustable} interface. * * @throws AWTError Always throws an error when called. */ @@ -235,7 +235,7 @@ /** * This method should NOT be called by user code. * This method is public for this class to properly implement - * Adjustable interface. + * {@code Adjustable} interface. * * @throws AWTError Always throws an error when called. */ @@ -272,7 +272,7 @@ /** * This method should NOT be called by user code. * This method is public for this class to properly implement - * Adjustable interface. + * {@code Adjustable} interface. * * @throws AWTError Always throws an error when called. */ @@ -286,7 +286,7 @@ /** - * Sets the valueIsAdjusting property. + * Sets the {@code valueIsAdjusting} property. * * @param b new adjustment-in-progress status * @see #getValueIsAdjusting @@ -307,7 +307,7 @@ * Returns true if the value is in the process of changing as a * result of actions being taken by the user. * - * @return the value of the valueIsAdjusting property + * @return the value of the {@code valueIsAdjusting} property * @see #setValueIsAdjusting */ public boolean getValueIsAdjusting() { @@ -361,8 +361,8 @@ /** * Adds the specified adjustment listener to receive adjustment - * events from this ScrollPaneAdjustable. - * If l is null, no exception is thrown + * events from this {@code ScrollPaneAdjustable}. + * If {@code l} is {@code null}, no exception is thrown * and no action is performed. *

      Refer to AWT Threading Issues for details on AWT's threading model. @@ -382,8 +382,8 @@ /** * Removes the specified adjustment listener so that it no longer - * receives adjustment events from this ScrollPaneAdjustable. - * If l is null, no exception is thrown + * receives adjustment events from this {@code ScrollPaneAdjustable}. + * If {@code l} is {@code null}, no exception is thrown * and no action is performed. *

      Refer to AWT Threading Issues for details on AWT's threading model. @@ -404,10 +404,10 @@ /** * Returns an array of all the adjustment listeners - * registered on this ScrollPaneAdjustable. + * registered on this {@code ScrollPaneAdjustable}. * - * @return all of this ScrollPaneAdjustable's - * AdjustmentListeners + * @return all of this {@code ScrollPaneAdjustable}'s + * {@code AdjustmentListener}s * or an empty array if no adjustment * listeners are currently registered * @@ -435,7 +435,7 @@ * This method is intended to be used only for debugging purposes, * and the content and format of the returned string may vary * between implementations. The returned string may be empty but - * may not be null. + * may not be {@code null}. * * @return the parameter string of this scrollbar. */ --- old/src/java.desktop/share/classes/java/awt/Scrollbar.java 2015-10-04 22:53:01.841273334 +0400 +++ new/src/java.desktop/share/classes/java/awt/Scrollbar.java 2015-10-04 22:53:01.653273342 +0400 @@ -34,7 +34,7 @@ /** - * The Scrollbar class embodies a scroll bar, a + * The {@code Scrollbar} class embodies a scroll bar, a * familiar user-interface object. A scroll bar provides a * convenient means for allowing a user to select from a * range of values. The following three vertical @@ -72,9 +72,9 @@ *


      *

      * Note that the actual maximum value of the scroll bar is the - * maximum minus the visible amount. - * In the previous example, because the maximum is - * 300 and the visible amount is 60, the actual maximum + * {@code maximum} minus the {@code visible amount}. + * In the previous example, because the {@code maximum} is + * 300 and the {@code visible amount} is 60, the actual maximum * value is 240. The range of the scrollbar track is 0 - 300. * The left side of the bubble indicates the value of the * scroll bar. @@ -89,39 +89,39 @@ * increment and block decrement areas. *

      * When the user changes the value of the scroll bar, the scroll bar - * receives an instance of AdjustmentEvent. + * receives an instance of {@code AdjustmentEvent}. * The scroll bar processes this event, passing it along to * any registered listeners. *

      * Any object that wishes to be notified of changes to the * scroll bar's value should implement - * AdjustmentListener, an interface defined in - * the package java.awt.event. + * {@code AdjustmentListener}, an interface defined in + * the package {@code java.awt.event}. * Listeners can be added and removed dynamically by calling - * the methods addAdjustmentListener and - * removeAdjustmentListener. + * the methods {@code addAdjustmentListener} and + * {@code removeAdjustmentListener}. *

      - * The AdjustmentEvent class defines five types + * The {@code AdjustmentEvent} class defines five types * of adjustment event, listed here: * *

        - *
      • AdjustmentEvent.TRACK is sent out when the + *
      • {@code AdjustmentEvent.TRACK} is sent out when the * user drags the scroll bar's bubble. - *
      • AdjustmentEvent.UNIT_INCREMENT is sent out + *
      • {@code AdjustmentEvent.UNIT_INCREMENT} is sent out * when the user clicks in the left arrow of a horizontal scroll * bar, or the top arrow of a vertical scroll bar, or makes the * equivalent gesture from the keyboard. - *
      • AdjustmentEvent.UNIT_DECREMENT is sent out + *
      • {@code AdjustmentEvent.UNIT_DECREMENT} is sent out * when the user clicks in the right arrow of a horizontal scroll * bar, or the bottom arrow of a vertical scroll bar, or makes the * equivalent gesture from the keyboard. - *
      • AdjustmentEvent.BLOCK_INCREMENT is sent out + *
      • {@code AdjustmentEvent.BLOCK_INCREMENT} is sent out * when the user clicks in the track, to the left of the bubble * on a horizontal scroll bar, or above the bubble on a vertical * scroll bar. By convention, the Page Up * key is equivalent, if the user is using a keyboard that * defines a Page Up key. - *
      • AdjustmentEvent.BLOCK_DECREMENT is sent out + *
      • {@code AdjustmentEvent.BLOCK_DECREMENT} is sent out * when the user clicks in the track, to the right of the bubble * on a horizontal scroll bar, or below the bubble on a vertical * scroll bar. By convention, the Page Down @@ -138,23 +138,23 @@ * and the corresponding JDK 1.0 event type it replaces. * *
          - *
        • AdjustmentEvent.TRACK replaces - * Event.SCROLL_ABSOLUTE - *
        • AdjustmentEvent.UNIT_INCREMENT replaces - * Event.SCROLL_LINE_UP - *
        • AdjustmentEvent.UNIT_DECREMENT replaces - * Event.SCROLL_LINE_DOWN - *
        • AdjustmentEvent.BLOCK_INCREMENT replaces - * Event.SCROLL_PAGE_UP - *
        • AdjustmentEvent.BLOCK_DECREMENT replaces - * Event.SCROLL_PAGE_DOWN + *
        • {@code AdjustmentEvent.TRACK} replaces + * {@code Event.SCROLL_ABSOLUTE} + *
        • {@code AdjustmentEvent.UNIT_INCREMENT} replaces + * {@code Event.SCROLL_LINE_UP} + *
        • {@code AdjustmentEvent.UNIT_DECREMENT} replaces + * {@code Event.SCROLL_LINE_DOWN} + *
        • {@code AdjustmentEvent.BLOCK_INCREMENT} replaces + * {@code Event.SCROLL_PAGE_UP} + *
        • {@code AdjustmentEvent.BLOCK_DECREMENT} replaces + * {@code Event.SCROLL_PAGE_DOWN} *
        *

        - * Note: We recommend using a Scrollbar + * Note: We recommend using a {@code Scrollbar} * for value selection only. If you want to implement * a scrollable component inside a container, we recommend you use * a {@link ScrollPane ScrollPane}. If you use a - * Scrollbar for this purpose, you are likely to + * {@code Scrollbar} for this purpose, you are likely to * encounter issues with painting, key handling, sizing and * positioning. * @@ -176,10 +176,10 @@ public static final int VERTICAL = 1; /** - * The value of the Scrollbar. - * This property must be greater than or equal to minimum + * The value of the {@code Scrollbar}. + * This property must be greater than or equal to {@code minimum} * and less than or equal to - * maximum - visibleAmount + * {@code maximum - visibleAmount} * * @serial * @see #getValue @@ -188,8 +188,8 @@ int value; /** - * The maximum value of the Scrollbar. - * This value must be greater than the minimum + * The maximum value of the {@code Scrollbar}. + * This value must be greater than the {@code minimum} * value.
        * * @serial @@ -199,8 +199,8 @@ int maximum; /** - * The minimum value of the Scrollbar. - * This value must be less than the maximum + * The minimum value of the {@code Scrollbar}. + * This value must be less than the {@code maximum} * value.
        * * @serial @@ -210,7 +210,7 @@ int minimum; /** - * The size of the Scrollbar's bubble. + * The size of the {@code Scrollbar}'s bubble. * When a scroll bar is used to select a range of values, * the visibleAmount represents the size of this range. * Depending on platform, this may be visually indicated @@ -223,11 +223,11 @@ int visibleAmount; /** - * The Scrollbar's orientation--being either horizontal + * The {@code Scrollbar}'s orientation--being either horizontal * or vertical. * This value should be specified when the scrollbar is created.
        - * orientation can be either : VERTICAL or - * HORIZONTAL only. + * orientation can be either : {@code VERTICAL} or + * {@code HORIZONTAL} only. * * @serial * @see #getOrientation @@ -258,7 +258,7 @@ int pageIncrement = 10; /** - * The adjusting status of the Scrollbar. + * The adjusting status of the {@code Scrollbar}. * True if the value is in the process of changing as a result of * actions being taken by the user. * @@ -306,7 +306,7 @@ * orientation * indicates whether the scroll bar is vertical *
        or horizontal - * Scrollbar.VERTICAL + * {@code Scrollbar.VERTICAL} * * * value @@ -360,14 +360,14 @@ /** * Constructs a new scroll bar with the specified orientation. *

        - * The orientation argument must take one of the two - * values Scrollbar.HORIZONTAL, - * or Scrollbar.VERTICAL, + * The {@code orientation} argument must take one of the two + * values {@code Scrollbar.HORIZONTAL}, + * or {@code Scrollbar.VERTICAL}, * indicating a horizontal or vertical scroll bar, respectively. * * @param orientation indicates the orientation of the scroll bar * @exception IllegalArgumentException when an illegal value for - * the orientation argument is supplied + * the {@code orientation} argument is supplied * @exception HeadlessException if GraphicsEnvironment.isHeadless() * returns true. * @see java.awt.GraphicsEnvironment#isHeadless @@ -380,9 +380,9 @@ * Constructs a new scroll bar with the specified orientation, * initial value, visible amount, and minimum and maximum values. *

        - * The orientation argument must take one of the two - * values Scrollbar.HORIZONTAL, - * or Scrollbar.VERTICAL, + * The {@code orientation} argument must take one of the two + * values {@code Scrollbar.HORIZONTAL}, + * or {@code Scrollbar.VERTICAL}, * indicating a horizontal or vertical scroll bar, respectively. *

        * The parameters supplied to this constructor are subject to the @@ -395,7 +395,7 @@ * @param minimum the minimum value of the scroll bar * @param maximum the maximum value of the scroll bar * @exception IllegalArgumentException when an illegal value for - * the orientation argument is supplied + * the {@code orientation} argument is supplied * @exception HeadlessException if GraphicsEnvironment.isHeadless() * returns true. * @see #setValues @@ -416,8 +416,8 @@ } /** - * Constructs a name for this component. Called by getName - * when the name is null. + * Constructs a name for this component. Called by {@code getName} + * when the name is {@code null}. */ String constructComponentName() { synchronized (Scrollbar.class) { @@ -426,8 +426,8 @@ } /** - * Creates the Scrollbar's peer. The peer allows you to modify - * the appearance of the Scrollbar without changing any of its + * Creates the {@code Scrollbar}'s peer. The peer allows you to modify + * the appearance of the {@code Scrollbar} without changing any of its * functionality. */ public void addNotify() { @@ -442,8 +442,8 @@ * Returns the orientation of this scroll bar. * * @return the orientation of this scroll bar, either - * Scrollbar.HORIZONTAL or - * Scrollbar.VERTICAL + * {@code Scrollbar.HORIZONTAL} or + * {@code Scrollbar.VERTICAL} * @see java.awt.Scrollbar#setOrientation */ public int getOrientation() { @@ -454,11 +454,11 @@ * Sets the orientation for this scroll bar. * * @param orientation the orientation of this scroll bar, either - * Scrollbar.HORIZONTAL or - * Scrollbar.VERTICAL + * {@code Scrollbar.HORIZONTAL} or + * {@code Scrollbar.VERTICAL} * @see java.awt.Scrollbar#getOrientation * @exception IllegalArgumentException if the value supplied - * for orientation is not a + * for {@code orientation} is not a * legal value * @since 1.1 */ @@ -506,20 +506,20 @@ /** * Sets the value of this scroll bar to the specified value. *

        - * If the value supplied is less than the current minimum - * or greater than the current maximum - visibleAmount, - * then either minimum or maximum - visibleAmount + * If the value supplied is less than the current {@code minimum} + * or greater than the current {@code maximum - visibleAmount}, + * then either {@code minimum} or {@code maximum - visibleAmount} * is substituted, as appropriate. *

        * Normally, a program should change a scroll bar's - * value only by calling setValues. - * The setValues method simultaneously + * value only by calling {@code setValues}. + * The {@code setValues} method simultaneously * and synchronously sets the minimum, maximum, visible amount, * and value properties of a scroll bar, so that they are * mutually consistent. *

        * Calling this method does not fire an - * AdjustmentEvent. + * {@code AdjustmentEvent}. * * @param newValue the new value of the scroll bar * @see java.awt.Scrollbar#setValues @@ -547,21 +547,21 @@ /** * Sets the minimum value of this scroll bar. *

        - * When setMinimum is called, the minimum value + * When {@code setMinimum} is called, the minimum value * is changed, and other values (including the maximum, the * visible amount, and the current scroll bar value) * are changed to be consistent with the new minimum. *

        * Normally, a program should change a scroll bar's minimum - * value only by calling setValues. - * The setValues method simultaneously + * value only by calling {@code setValues}. + * The {@code setValues} method simultaneously * and synchronously sets the minimum, maximum, visible amount, * and value properties of a scroll bar, so that they are * mutually consistent. *

        - * Note that setting the minimum value to Integer.MAX_VALUE + * Note that setting the minimum value to {@code Integer.MAX_VALUE} * will result in the new minimum value being set to - * Integer.MAX_VALUE - 1. + * {@code Integer.MAX_VALUE - 1}. * * @param newMinimum the new minimum value for this scroll bar * @see java.awt.Scrollbar#setValues @@ -591,21 +591,21 @@ /** * Sets the maximum value of this scroll bar. *

        - * When setMaximum is called, the maximum value + * When {@code setMaximum} is called, the maximum value * is changed, and other values (including the minimum, the * visible amount, and the current scroll bar value) * are changed to be consistent with the new maximum. *

        * Normally, a program should change a scroll bar's maximum - * value only by calling setValues. - * The setValues method simultaneously + * value only by calling {@code setValues}. + * The {@code setValues} method simultaneously * and synchronously sets the minimum, maximum, visible amount, * and value properties of a scroll bar, so that they are * mutually consistent. *

        - * Note that setting the maximum value to Integer.MIN_VALUE + * Note that setting the maximum value to {@code Integer.MIN_VALUE} * will result in the new maximum value being set to - * Integer.MIN_VALUE + 1. + * {@code Integer.MIN_VALUE + 1}. * * @param newMaximum the new maximum value * for this scroll bar @@ -645,7 +645,7 @@ * moveable (e.g. when it takes up the entire length of the * scroll bar's track, or when the scroll bar is disabled). * Whether the bubble is displayed or not will not affect - * the value returned by getVisibleAmount. + * the value returned by {@code getVisibleAmount}. * * @return the visible amount of this scroll bar * @see java.awt.Scrollbar#setVisibleAmount @@ -660,7 +660,7 @@ * * @return the visible amount of this scroll bar * @deprecated As of JDK version 1.1, - * replaced by getVisibleAmount(). + * replaced by {@code getVisibleAmount()}. */ @Deprecated public int getVisible() { @@ -683,16 +683,16 @@ * moveable (e.g. when it takes up the entire length of the * scroll bar's track, or when the scroll bar is disabled). * Whether the bubble is displayed or not will not affect - * the value returned by getVisibleAmount. + * the value returned by {@code getVisibleAmount}. *

        - * If the visible amount supplied is less than one - * or greater than the current maximum - minimum, - * then either one or maximum - minimum + * If the visible amount supplied is less than {@code one} + * or greater than the current {@code maximum - minimum}, + * then either {@code one} or {@code maximum - minimum} * is substituted, as appropriate. *

        * Normally, a program should change a scroll bar's - * value only by calling setValues. - * The setValues method simultaneously + * value only by calling {@code setValues}. + * The {@code setValues} method simultaneously * and synchronously sets the minimum, maximum, visible amount, * and value properties of a scroll bar, so that they are * mutually consistent. @@ -737,7 +737,7 @@ * @param v the increment value * * @deprecated As of JDK version 1.1, - * replaced by setUnitIncrement(int). + * replaced by {@code setUnitIncrement(int)}. */ @Deprecated public synchronized void setLineIncrement(int v) { @@ -779,7 +779,7 @@ * * @return the unit increment for this scrollbar * @deprecated As of JDK version 1.1, - * replaced by getUnitIncrement(). + * replaced by {@code getUnitIncrement()}. */ @Deprecated public int getLineIncrement() { @@ -811,7 +811,7 @@ * * @param v the block increment * @deprecated As of JDK version 1.1, - * replaced by setBlockIncrement(). + * replaced by {@code setBlockIncrement()}. */ @Deprecated public synchronized void setPageIncrement(int v) { @@ -851,7 +851,7 @@ * @return the block increment of this scroll bar * * @deprecated As of JDK version 1.1, - * replaced by getBlockIncrement(). + * replaced by {@code getBlockIncrement()}. */ @Deprecated public int getPageIncrement() { @@ -860,8 +860,8 @@ /** * Sets the values of four properties for this scroll bar: - * value, visibleAmount, - * minimum, and maximum. + * {@code value}, {@code visibleAmount}, + * {@code minimum}, and {@code maximum}. * If the values supplied for these properties are inconsistent * or incorrect, they will be changed to ensure consistency. *

        @@ -869,18 +869,18 @@ * of four scroll bar properties, assuring that the values of * these properties are mutually consistent. It enforces the * following constraints: - * maximum must be greater than minimum, - * maximum - minimum must not be greater - * than Integer.MAX_VALUE, - * visibleAmount must be greater than zero. - * visibleAmount must not be greater than - * maximum - minimum, - * value must not be less than minimum, - * and value must not be greater than - * maximum - visibleAmount + * {@code maximum} must be greater than {@code minimum}, + * {@code maximum - minimum} must not be greater + * than {@code Integer.MAX_VALUE}, + * {@code visibleAmount} must be greater than zero. + * {@code visibleAmount} must not be greater than + * {@code maximum - minimum}, + * {@code value} must not be less than {@code minimum}, + * and {@code value} must not be greater than + * {@code maximum - visibleAmount} *

        * Calling this method does not fire an - * AdjustmentEvent. + * {@code AdjustmentEvent}. * * @param value is the position in the current window * @param visible is the visible amount of the scroll bar @@ -943,7 +943,7 @@ * Returns true if the value is in the process of changing as a * result of actions being taken by the user. * - * @return the value of the valueIsAdjusting property + * @return the value of the {@code valueIsAdjusting} property * @see #setValueIsAdjusting * @since 1.4 */ @@ -952,7 +952,7 @@ } /** - * Sets the valueIsAdjusting property. + * Sets the {@code valueIsAdjusting} property. * * @param b new adjustment-in-progress status * @see #getValueIsAdjusting @@ -978,8 +978,8 @@ /** * Adds the specified adjustment listener to receive instances of - * AdjustmentEvent from this scroll bar. - * If l is null, no exception is thrown and no + * {@code AdjustmentEvent} from this scroll bar. + * If l is {@code null}, no exception is thrown and no * action is performed. *

        Refer to AWT Threading Issues for details on AWT's threading model. @@ -1001,8 +1001,8 @@ /** * Removes the specified adjustment listener so that it no longer - * receives instances of AdjustmentEvent from this scroll bar. - * If l is null, no exception is thrown and no action + * receives instances of {@code AdjustmentEvent} from this scroll bar. + * If l is {@code null}, no exception is thrown and no action * is performed. *

        Refer to AWT Threading Issues for details on AWT's threading model. @@ -1025,7 +1025,7 @@ * Returns an array of all the adjustment listeners * registered on this scrollbar. * - * @return all of this scrollbar's AdjustmentListeners + * @return all of this scrollbar's {@code AdjustmentListener}s * or an empty array if no adjustment * listeners are currently registered * @see #addAdjustmentListener @@ -1041,15 +1041,15 @@ /** * Returns an array of all the objects currently registered * as FooListeners - * upon this Scrollbar. + * upon this {@code Scrollbar}. * FooListeners are registered using the * addFooListener method. *

        - * You can specify the listenerType argument + * You can specify the {@code listenerType} argument * with a class literal, such as * FooListener.class. * For example, you can query a - * Scrollbar c + * {@code Scrollbar c} * for its mouse listeners with the following code: * *

        MouseListener[] mls = (MouseListener[])(c.getListeners(MouseListener.class));
        @@ -1058,13 +1058,13 @@ * * @param listenerType the type of listeners requested; this parameter * should specify an interface that descends from - * java.util.EventListener + * {@code java.util.EventListener} * @return an array of all objects registered as * FooListeners on this component, * or an empty array if no such listeners have been added - * @exception ClassCastException if listenerType + * @exception ClassCastException if {@code listenerType} * doesn't specify a class or interface that implements - * java.util.EventListener + * {@code java.util.EventListener} * * @since 1.3 */ @@ -1092,11 +1092,11 @@ /** * Processes events on this scroll bar. If the event is an - * instance of AdjustmentEvent, it invokes the - * processAdjustmentEvent method. + * instance of {@code AdjustmentEvent}, it invokes the + * {@code processAdjustmentEvent} method. * Otherwise, it invokes its superclass's - * processEvent method. - *

        Note that if the event parameter is null + * {@code processEvent} method. + *

        Note that if the event parameter is {@code null} * the behavior is unspecified and may result in an * exception. * @@ -1116,17 +1116,17 @@ /** * Processes adjustment events occurring on this * scrollbar by dispatching them to any registered - * AdjustmentListener objects. + * {@code AdjustmentListener} objects. *

        * This method is not called unless adjustment events are * enabled for this component. Adjustment events are enabled * when one of the following occurs: *

          - *
        • An AdjustmentListener object is registered - * via addAdjustmentListener. - *
        • Adjustment events are enabled via enableEvents. + *
        • An {@code AdjustmentListener} object is registered + * via {@code addAdjustmentListener}. + *
        • Adjustment events are enabled via {@code enableEvents}. *
        - *

        Note that if the event parameter is null + *

        Note that if the event parameter is {@code null} * the behavior is unspecified and may result in an * exception. * @@ -1145,11 +1145,11 @@ } /** - * Returns a string representing the state of this Scrollbar. + * Returns a string representing the state of this {@code Scrollbar}. * This method is intended to be used only for debugging purposes, and the * content and format of the returned string may vary between * implementations. The returned string may be empty but may not be - * null. + * {@code null}. * * @return the parameter string of this scroll bar */ @@ -1176,17 +1176,17 @@ /** * Writes default serializable fields to stream. Writes - * a list of serializable AdjustmentListeners + * a list of serializable {@code AdjustmentListeners} * as optional data. The non-serializable listeners are * detected and no attempt is made to serialize them. * - * @param s the ObjectOutputStream to write - * @serialData null terminated sequence of 0 - * or more pairs; the pair consists of a String - * and an Object; the String indicates + * @param s the {@code ObjectOutputStream} to write + * @serialData {@code null} terminated sequence of 0 + * or more pairs; the pair consists of a {@code String} + * and an {@code Object}; the {@code String} indicates * the type of object and is one of the following: - * adjustmentListenerK indicating an - * AdjustmentListener object + * {@code adjustmentListenerK} indicating an + * {@code AdjustmentListener} object * * @see AWTEventMulticaster#save(ObjectOutputStream, String, EventListener) * @see java.awt.Component#adjustmentListenerK @@ -1202,16 +1202,16 @@ } /** - * Reads the ObjectInputStream and if - * it isn't null adds a listener to + * Reads the {@code ObjectInputStream} and if + * it isn't {@code null} adds a listener to * receive adjustment events fired by the - * Scrollbar. + * {@code Scrollbar}. * Unrecognized keys or values will be ignored. * - * @param s the ObjectInputStream to read + * @param s the {@code ObjectInputStream} to read * @exception HeadlessException if - * GraphicsEnvironment.isHeadless returns - * true + * {@code GraphicsEnvironment.isHeadless} returns + * {@code true} * @see java.awt.GraphicsEnvironment#isHeadless * @see #writeObject(ObjectOutputStream) */ @@ -1239,14 +1239,14 @@ //////////////// /** - * Gets the AccessibleContext associated with this - * Scrollbar. For scrollbars, the - * AccessibleContext takes the form of an - * AccessibleAWTScrollBar. A new - * AccessibleAWTScrollBar instance is created if necessary. + * Gets the {@code AccessibleContext} associated with this + * {@code Scrollbar}. For scrollbars, the + * {@code AccessibleContext} takes the form of an + * {@code AccessibleAWTScrollBar}. A new + * {@code AccessibleAWTScrollBar} instance is created if necessary. * - * @return an AccessibleAWTScrollBar that serves as the - * AccessibleContext of this ScrollBar + * @return an {@code AccessibleAWTScrollBar} that serves as the + * {@code AccessibleContext} of this {@code ScrollBar} * @since 1.3 */ public AccessibleContext getAccessibleContext() { @@ -1258,7 +1258,7 @@ /** * This class implements accessibility support for the - * Scrollbar class. It provides an implementation of + * {@code Scrollbar} class. It provides an implementation of * the Java Accessibility API appropriate to scrollbar * user-interface elements. * @since 1.3 @@ -1274,7 +1274,7 @@ /** * Get the state set of this object. * - * @return an instance of AccessibleState + * @return an instance of {@code AccessibleState} * containing the current state of the object * @see AccessibleState */ @@ -1294,7 +1294,7 @@ /** * Get the role of this object. * - * @return an instance of AccessibleRole + * @return an instance of {@code AccessibleRole} * describing the role of the object */ public AccessibleRole getAccessibleRole() { @@ -1302,11 +1302,11 @@ } /** - * Get the AccessibleValue associated with this + * Get the {@code AccessibleValue} associated with this * object. In the implementation of the Java Accessibility * API for this class, return this object, which is * responsible for implementing the - * AccessibleValue interface on behalf of itself. + * {@code AccessibleValue} interface on behalf of itself. * * @return this object */ --- old/src/java.desktop/share/classes/java/awt/Shape.java 2015-10-04 22:53:02.409273308 +0400 +++ new/src/java.desktop/share/classes/java/awt/Shape.java 2015-10-04 22:53:02.221273317 +0400 @@ -31,36 +31,36 @@ import java.awt.geom.Rectangle2D; /** - * The Shape interface provides definitions for objects - * that represent some form of geometric shape. The Shape + * The {@code Shape} interface provides definitions for objects + * that represent some form of geometric shape. The {@code Shape} * is described by a {@link PathIterator} object, which can express the - * outline of the Shape as well as a rule for determining + * outline of the {@code Shape} as well as a rule for determining * how the outline divides the 2D plane into interior and exterior - * points. Each Shape object provides callbacks to get the + * points. Each {@code Shape} object provides callbacks to get the * bounding box of the geometry, determine whether points or * rectangles lie partly or entirely within the interior - * of the Shape, and retrieve a PathIterator - * object that describes the trajectory path of the Shape + * of the {@code Shape}, and retrieve a {@code PathIterator} + * object that describes the trajectory path of the {@code Shape} * outline. *

        * Definition of insideness: * A point is considered to lie inside a - * Shape if and only if: + * {@code Shape} if and only if: *

          *
        • it lies completely - * inside theShape boundary or + * inside the {@code Shape} boundary or *
        • - * it lies exactly on the Shape boundary and the + * it lies exactly on the {@code Shape} boundary and the * space immediately adjacent to the - * point in the increasing X direction is + * point in the increasing {@code X} direction is * entirely inside the boundary or *
        • * it lies exactly on a horizontal boundary segment and the * space immediately adjacent to the point in the - * increasing Y direction is inside the boundary. + * increasing {@code Y} direction is inside the boundary. *
        - *

        The contains and intersects methods - * consider the interior of a Shape to be the area it + *

        The {@code contains} and {@code intersects} methods + * consider the interior of a {@code Shape} to be the area it * encloses as if it were filled. This means that these methods * consider * unclosed shapes to be implicitly closed for the purpose of @@ -78,14 +78,14 @@ public interface Shape { /** * Returns an integer {@link Rectangle} that completely encloses the - * Shape. Note that there is no guarantee that the - * returned Rectangle is the smallest bounding box that - * encloses the Shape, only that the Shape - * lies entirely within the indicated Rectangle. The - * returned Rectangle might also fail to completely - * enclose the Shape if the Shape overflows + * {@code Shape}. Note that there is no guarantee that the + * returned {@code Rectangle} is the smallest bounding box that + * encloses the {@code Shape}, only that the {@code Shape} + * lies entirely within the indicated {@code Rectangle}. The + * returned {@code Rectangle} might also fail to completely + * enclose the {@code Shape} if the {@code Shape} overflows * the limited range of the integer data type. The - * getBounds2D method generally returns a + * {@code getBounds2D} method generally returns a * tighter bounding box due to its greater flexibility in * representation. * @@ -114,8 +114,8 @@ *

        * {@code bounds.contains(x,y)} does not imply {@code shape.contains(x,y)} *

        - * @return an integer Rectangle that completely encloses - * the Shape. + * @return an integer {@code Rectangle} that completely encloses + * the {@code Shape}. * @see #getBounds2D * @since 1.2 */ @@ -123,15 +123,15 @@ /** * Returns a high precision and more accurate bounding box of - * the Shape than the getBounds method. + * the {@code Shape} than the {@code getBounds} method. * Note that there is no guarantee that the returned * {@link Rectangle2D} is the smallest bounding box that encloses - * the Shape, only that the Shape lies - * entirely within the indicated Rectangle2D. The + * the {@code Shape}, only that the {@code Shape} lies + * entirely within the indicated {@code Rectangle2D}. The * bounding box returned by this method is usually tighter than that - * returned by the getBounds method and never fails due + * returned by the {@code getBounds} method and never fails due * to overflow problems since the return value can be an instance of - * the Rectangle2D that uses double precision values to + * the {@code Rectangle2D} that uses double precision values to * store the dimensions. * *

        @@ -159,8 +159,8 @@ *

        * {@code bounds.contains(p)} does not imply {@code shape.contains(p)} *

        - * @return an instance of Rectangle2D that is a - * high-precision bounding box of the Shape. + * @return an instance of {@code Rectangle2D} that is a + * high-precision bounding box of the {@code Shape}. * @see #getBounds * @since 1.2 */ @@ -168,13 +168,13 @@ /** * Tests if the specified coordinates are inside the boundary of the - * Shape, as described by the + * {@code Shape}, as described by the * * definition of insideness. * @param x the specified X coordinate to be tested * @param y the specified Y coordinate to be tested - * @return true if the specified coordinates are inside - * the Shape boundary; false + * @return {@code true} if the specified coordinates are inside + * the {@code Shape} boundary; {@code false} * otherwise. * @since 1.2 */ @@ -182,30 +182,30 @@ /** * Tests if a specified {@link Point2D} is inside the boundary - * of the Shape, as described by the + * of the {@code Shape}, as described by the * * definition of insideness. - * @param p the specified Point2D to be tested - * @return true if the specified Point2D is - * inside the boundary of the Shape; - * false otherwise. + * @param p the specified {@code Point2D} to be tested + * @return {@code true} if the specified {@code Point2D} is + * inside the boundary of the {@code Shape}; + * {@code false} otherwise. * @since 1.2 */ public boolean contains(Point2D p); /** - * Tests if the interior of the Shape intersects the + * Tests if the interior of the {@code Shape} intersects the * interior of a specified rectangular area. - * The rectangular area is considered to intersect the Shape + * The rectangular area is considered to intersect the {@code Shape} * if any point is contained in both the interior of the - * Shape and the specified rectangular area. + * {@code Shape} and the specified rectangular area. *

        * The {@code Shape.intersects()} method allows a {@code Shape} * implementation to conservatively return {@code true} when: *

          *
        • * there is a high probability that the rectangular area and the - * Shape intersect, but + * {@code Shape} intersect, but *
        • * the calculations to accurately determine this intersection * are prohibitively expensive. @@ -224,24 +224,24 @@ * of the specified rectangular area * @param w the width of the specified rectangular area * @param h the height of the specified rectangular area - * @return true if the interior of the Shape and + * @return {@code true} if the interior of the {@code Shape} and * the interior of the rectangular area intersect, or are * both highly likely to intersect and intersection calculations - * would be too expensive to perform; false otherwise. + * would be too expensive to perform; {@code false} otherwise. * @see java.awt.geom.Area * @since 1.2 */ public boolean intersects(double x, double y, double w, double h); /** - * Tests if the interior of the Shape intersects the - * interior of a specified Rectangle2D. + * Tests if the interior of the {@code Shape} intersects the + * interior of a specified {@code Rectangle2D}. * The {@code Shape.intersects()} method allows a {@code Shape} * implementation to conservatively return {@code true} when: *
            *
          • - * there is a high probability that the Rectangle2D and the - * Shape intersect, but + * there is a high probability that the {@code Rectangle2D} and the + * {@code Shape} intersect, but *
          • * the calculations to accurately determine this intersection * are prohibitively expensive. @@ -254,11 +254,11 @@ * {@code Shape} objects and therefore can be used if a more precise * answer is required. * - * @param r the specified Rectangle2D - * @return true if the interior of the Shape and - * the interior of the specified Rectangle2D + * @param r the specified {@code Rectangle2D} + * @return {@code true} if the interior of the {@code Shape} and + * the interior of the specified {@code Rectangle2D} * intersect, or are both highly likely to intersect and intersection - * calculations would be too expensive to perform; false + * calculations would be too expensive to perform; {@code false} * otherwise. * @see #intersects(double, double, double, double) * @since 1.2 @@ -266,20 +266,20 @@ public boolean intersects(Rectangle2D r); /** - * Tests if the interior of the Shape entirely contains + * Tests if the interior of the {@code Shape} entirely contains * the specified rectangular area. All coordinates that lie inside - * the rectangular area must lie within the Shape for the + * the rectangular area must lie within the {@code Shape} for the * entire rectangular area to be considered contained within the - * Shape. + * {@code Shape}. *

            * The {@code Shape.contains()} method allows a {@code Shape} * implementation to conservatively return {@code false} when: *

              *
            • - * the intersect method returns true and + * the {@code intersect} method returns {@code true} and *
            • * the calculations to determine whether or not the - * Shape entirely contains the rectangular area are + * {@code Shape} entirely contains the rectangular area are * prohibitively expensive. *
            * This means that for some {@code Shapes} this method might @@ -296,11 +296,11 @@ * of the specified rectangular area * @param w the width of the specified rectangular area * @param h the height of the specified rectangular area - * @return true if the interior of the Shape + * @return {@code true} if the interior of the {@code Shape} * entirely contains the specified rectangular area; - * false otherwise or, if the Shape + * {@code false} otherwise or, if the {@code Shape} * contains the rectangular area and the - * intersects method returns true + * {@code intersects} method returns {@code true} * and the containment calculations would be too expensive to * perform. * @see java.awt.geom.Area @@ -310,16 +310,16 @@ public boolean contains(double x, double y, double w, double h); /** - * Tests if the interior of the Shape entirely contains the - * specified Rectangle2D. + * Tests if the interior of the {@code Shape} entirely contains the + * specified {@code Rectangle2D}. * The {@code Shape.contains()} method allows a {@code Shape} * implementation to conservatively return {@code false} when: *
              *
            • - * the intersect method returns true and + * the {@code intersect} method returns {@code true} and *
            • * the calculations to determine whether or not the - * Shape entirely contains the Rectangle2D + * {@code Shape} entirely contains the {@code Rectangle2D} * are prohibitively expensive. *
            * This means that for some {@code Shapes} this method might @@ -330,12 +330,12 @@ * {@code Shape} objects and therefore can be used if a more precise * answer is required. * - * @param r The specified Rectangle2D - * @return true if the interior of the Shape - * entirely contains the Rectangle2D; - * false otherwise or, if the Shape - * contains the Rectangle2D and the - * intersects method returns true + * @param r The specified {@code Rectangle2D} + * @return {@code true} if the interior of the {@code Shape} + * entirely contains the {@code Rectangle2D}; + * {@code false} otherwise or, if the {@code Shape} + * contains the {@code Rectangle2D} and the + * {@code intersects} method returns {@code true} * and the containment calculations would be too expensive to * perform. * @see #contains(double, double, double, double) @@ -345,44 +345,44 @@ /** * Returns an iterator object that iterates along the - * Shape boundary and provides access to the geometry of the - * Shape outline. If an optional {@link AffineTransform} + * {@code Shape} boundary and provides access to the geometry of the + * {@code Shape} outline. If an optional {@link AffineTransform} * is specified, the coordinates returned in the iteration are * transformed accordingly. *

            - * Each call to this method returns a fresh PathIterator - * object that traverses the geometry of the Shape object - * independently from any other PathIterator objects in use + * Each call to this method returns a fresh {@code PathIterator} + * object that traverses the geometry of the {@code Shape} object + * independently from any other {@code PathIterator} objects in use * at the same time. *

            * It is recommended, but not guaranteed, that objects - * implementing the Shape interface isolate iterations + * implementing the {@code Shape} interface isolate iterations * that are in process from any changes that might occur to the original * object's geometry during such iterations. * - * @param at an optional AffineTransform to be applied to the + * @param at an optional {@code AffineTransform} to be applied to the * coordinates as they are returned in the iteration, or - * null if untransformed coordinates are desired - * @return a new PathIterator object, which independently - * traverses the geometry of the Shape. + * {@code null} if untransformed coordinates are desired + * @return a new {@code PathIterator} object, which independently + * traverses the geometry of the {@code Shape}. * @since 1.2 */ public PathIterator getPathIterator(AffineTransform at); /** - * Returns an iterator object that iterates along the Shape + * Returns an iterator object that iterates along the {@code Shape} * boundary and provides access to a flattened view of the - * Shape outline geometry. + * {@code Shape} outline geometry. *

            * Only SEG_MOVETO, SEG_LINETO, and SEG_CLOSE point types are * returned by the iterator. *

            - * If an optional AffineTransform is specified, + * If an optional {@code AffineTransform} is specified, * the coordinates returned in the iteration are transformed * accordingly. *

            * The amount of subdivision of the curved segments is controlled - * by the flatness parameter, which specifies the + * by the {@code flatness} parameter, which specifies the * maximum distance that any point on the unflattened transformed * curve can deviate from the returned flattened path segments. * Note that a limit on the accuracy of the flattened path might be @@ -390,24 +390,24 @@ * treated as larger values. This limit, if there is one, is * defined by the particular implementation that is used. *

            - * Each call to this method returns a fresh PathIterator - * object that traverses the Shape object geometry - * independently from any other PathIterator objects in use at + * Each call to this method returns a fresh {@code PathIterator} + * object that traverses the {@code Shape} object geometry + * independently from any other {@code PathIterator} objects in use at * the same time. *

            * It is recommended, but not guaranteed, that objects - * implementing the Shape interface isolate iterations + * implementing the {@code Shape} interface isolate iterations * that are in process from any changes that might occur to the original * object's geometry during such iterations. * - * @param at an optional AffineTransform to be applied to the + * @param at an optional {@code AffineTransform} to be applied to the * coordinates as they are returned in the iteration, or - * null if untransformed coordinates are desired + * {@code null} if untransformed coordinates are desired * @param flatness the maximum distance that the line segments used to * approximate the curved segments are allowed to deviate * from any point on the original curve - * @return a new PathIterator that independently traverses - * a flattened view of the geometry of the Shape. + * @return a new {@code PathIterator} that independently traverses + * a flattened view of the geometry of the {@code Shape}. * @since 1.2 */ public PathIterator getPathIterator(AffineTransform at, double flatness); --- old/src/java.desktop/share/classes/java/awt/SplashScreen.java 2015-10-04 22:53:02.941273285 +0400 +++ new/src/java.desktop/share/classes/java/awt/SplashScreen.java 2015-10-04 22:53:02.753273293 +0400 @@ -48,7 +48,7 @@ * Place the image in the jar archive and specify the path in the option. * The path should not have a leading slash. *
            - * For example, in the manifest.mf file: + * For example, in the {@code manifest.mf} file: *

              * Manifest-Version: 1.0
              * Main-Class: Test
            @@ -89,7 +89,7 @@
              * can exist, and it may be obtained by using the {@link #getSplashScreen()}
              * static method. In case the splash screen has not been created at
              * application startup via the command line or manifest file option,
            - * the getSplashScreen method returns null.
            + * the {@code getSplashScreen} method returns {@code null}.
              *
              * @author Oleg Semenov
              * @since 1.6
            @@ -108,7 +108,7 @@
                  *         supported by the current toolkit
                  * @throws HeadlessException if {@code GraphicsEnvironment.isHeadless()}
                  *         returns true
            -     * @return the {@link SplashScreen} instance, or null if there is
            +     * @return the {@link SplashScreen} instance, or {@code null} if there is
                  *         none or it has already been closed
                  */
                 public static  SplashScreen getSplashScreen() {
            @@ -142,9 +142,9 @@
                  * The splash screen window is resized according to the size of
                  * the image and is centered on the screen.
                  *
            -     * @param imageURL the non-null URL for the new
            +     * @param imageURL the non-{@code null} URL for the new
                  *        splash screen image
            -     * @throws NullPointerException if {@code imageURL} is null
            +     * @throws NullPointerException if {@code imageURL} is {@code null}
                  * @throws IOException if there was an error while loading the image
                  * @throws IllegalStateException if the splash screen has already been
                  *         closed
            @@ -282,7 +282,7 @@
                  * displayed over the main image using alpha blending. Also note that drawing
                  * on the overlay image does not necessarily update the contents of splash
                  * screen window. You should call {@code update()} on the
            -     * SplashScreen when you want the splash screen to be
            +     * {@code SplashScreen} when you want the splash screen to be
                  * updated immediately.
                  * 

            * The pixel (0, 0) in the coordinate space of the graphics context @@ -402,7 +402,7 @@ /** * The instance reference for the singleton. - * (null if no instance exists yet.) + * ({@code null} if no instance exists yet.) * * @see #getSplashScreen * @see #close --- old/src/java.desktop/share/classes/java/awt/Stroke.java 2015-10-04 22:53:03.465273261 +0400 +++ new/src/java.desktop/share/classes/java/awt/Stroke.java 2015-10-04 22:53:03.277273269 +0400 @@ -26,43 +26,43 @@ package java.awt; /** - * The Stroke interface allows a + * The {@code Stroke} interface allows a * {@link Graphics2D} object to obtain a {@link Shape} that is the * decorated outline, or stylistic representation of the outline, - * of the specified Shape. - * Stroking a Shape is like tracing its outline with a + * of the specified {@code Shape}. + * Stroking a {@code Shape} is like tracing its outline with a * marking pen of the appropriate size and shape. * The area where the pen would place ink is the area enclosed by the - * outline Shape. + * outline {@code Shape}. *

            - * The methods of the Graphics2D interface that use the - * outline Shape returned by a Stroke object - * include draw and any other methods that are + * The methods of the {@code Graphics2D} interface that use the + * outline {@code Shape} returned by a {@code Stroke} object + * include {@code draw} and any other methods that are * implemented in terms of that method, such as - * drawLine, drawRect, - * drawRoundRect, drawOval, - * drawArc, drawPolyline, - * and drawPolygon. + * {@code drawLine}, {@code drawRect}, + * {@code drawRoundRect}, {@code drawOval}, + * {@code drawArc}, {@code drawPolyline}, + * and {@code drawPolygon}. *

            - * The objects of the classes implementing Stroke - * must be read-only because Graphics2D does not + * The objects of the classes implementing {@code Stroke} + * must be read-only because {@code Graphics2D} does not * clone these objects either when they are set as an attribute - * with the setStroke method or when the - * Graphics2D object is itself cloned. - * If a Stroke object is modified after it is set in - * the Graphics2D context then the behavior + * with the {@code setStroke} method or when the + * {@code Graphics2D} object is itself cloned. + * If a {@code Stroke} object is modified after it is set in + * the {@code Graphics2D} context then the behavior * of subsequent rendering would be undefined. * @see BasicStroke * @see Graphics2D#setStroke */ public interface Stroke { /** - * Returns an outline Shape which encloses the area that - * should be painted when the Shape is stroked according + * Returns an outline {@code Shape} which encloses the area that + * should be painted when the {@code Shape} is stroked according * to the rules defined by the - * object implementing the Stroke interface. - * @param p a Shape to be stroked - * @return the stroked outline Shape. + * object implementing the {@code Stroke} interface. + * @param p a {@code Shape} to be stroked + * @return the stroked outline {@code Shape}. */ Shape createStrokedShape (Shape p); } --- old/src/java.desktop/share/classes/java/awt/SystemColor.java 2015-10-04 22:53:03.989273237 +0400 +++ new/src/java.desktop/share/classes/java/awt/SystemColor.java 2015-10-04 22:53:03.797273246 +0400 @@ -36,15 +36,15 @@ * update of the system colors (when the user changes the colors) * the actual RGB values of these symbolic colors will also change * dynamically. In order to compare the "current" RGB value of a - * SystemColor object with a non-symbolic Color object, - * getRGB should be used rather than equals. + * {@code SystemColor} object with a non-symbolic Color object, + * {@code getRGB} should be used rather than {@code equals}. *

            * Note that the way in which these system colors are applied to GUI objects * may vary slightly from platform to platform since GUI objects may be * rendered differently on each platform. *

            - * System color values may also be available through the getDesktopProperty - * method on java.awt.Toolkit. + * System color values may also be available through the {@code getDesktopProperty} + * method on {@code java.awt.Toolkit}. * * @see Toolkit#getDesktopProperty * @@ -380,28 +380,28 @@ /** * The color rendered for light areas of 3D control objects, such as pushbuttons. - * This color is typically derived from the control background color + * This color is typically derived from the {@code control} background color * to provide a 3D effect. */ public static final SystemColor controlHighlight = new SystemColor((byte)CONTROL_HIGHLIGHT); /** * The color rendered for highlight areas of 3D control objects, such as pushbuttons. - * This color is typically derived from the control background color + * This color is typically derived from the {@code control} background color * to provide a 3D effect. */ public static final SystemColor controlLtHighlight = new SystemColor((byte)CONTROL_LT_HIGHLIGHT); /** * The color rendered for shadow areas of 3D control objects, such as pushbuttons. - * This color is typically derived from the control background color + * This color is typically derived from the {@code control} background color * to provide a 3D effect. */ public static final SystemColor controlShadow = new SystemColor((byte)CONTROL_SHADOW); /** * The color rendered for dark shadow areas on 3D control objects, such as pushbuttons. - * This color is typically derived from the control background color + * This color is typically derived from the {@code control} background color * to provide a 3D effect. */ public static final SystemColor controlDkShadow = new SystemColor((byte)CONTROL_DK_SHADOW); @@ -487,13 +487,13 @@ } /** - * Returns a string representation of this Color's values. + * Returns a string representation of this {@code Color}'s values. * This method is intended to be used only for debugging purposes, * and the content and format of the returned string may vary between * implementations. - * The returned string may be empty but may not be null. + * The returned string may be empty but may not be {@code null}. * - * @return a string representation of this Color + * @return a string representation of this {@code Color} */ public String toString() { return getClass().getName() + "[i=" + (index) + "]"; --- old/src/java.desktop/share/classes/java/awt/SystemTray.java 2015-10-04 22:53:04.513273214 +0400 +++ new/src/java.desktop/share/classes/java/awt/SystemTray.java 2015-10-04 22:53:04.325273222 +0400 @@ -36,7 +36,7 @@ import sun.awt.AWTPermissions; /** - * The SystemTray class represents the system tray for a + * The {@code SystemTray} class represents the system tray for a * desktop. On Microsoft Windows it is referred to as the "Taskbar * Status Area", on Gnome it is referred to as the "Notification * Area", on KDE it is referred to as the "System Tray". The system @@ -47,19 +47,19 @@ * throws {@link UnsupportedOperationException}. To detect whether the * system tray is supported, use {@link SystemTray#isSupported}. * - *

            The SystemTray may contain one or more {@link + *

            The {@code SystemTray} may contain one or more {@link * TrayIcon TrayIcons}, which are added to the tray using the {@link * #add} method, and removed when no longer needed, using the - * {@link #remove}. TrayIcon consists of an + * {@link #remove}. {@code TrayIcon} consists of an * image, a popup menu and a set of associated listeners. Please see * the {@link TrayIcon} class for details. * - *

            Every Java application has a single SystemTray + *

            Every Java application has a single {@code SystemTray} * instance that allows the app to interface with the system tray of - * the desktop while the app is running. The SystemTray + * the desktop while the app is running. The {@code SystemTray} * instance can be obtained from the {@link #getSystemTray} method. * An application may not create its own instance of - * SystemTray. + * {@code SystemTray}. * *

            The following code snippet demonstrates how to access * and customize the system tray: @@ -141,7 +141,7 @@ } /** - * Private SystemTray constructor. + * Private {@code SystemTray} constructor. * */ private SystemTray() { @@ -149,7 +149,7 @@ } /** - * Gets the SystemTray instance that represents the + * Gets the {@code SystemTray} instance that represents the * desktop's tray area. This always returns the same instance per * application. On some platforms the system tray may not be * supported. You may use the {@link #isSupported} method to @@ -160,12 +160,12 @@ * {@code SystemTray} instance. Otherwise this method will throw a * SecurityException. * - * @return the SystemTray instance that represents + * @return the {@code SystemTray} instance that represents * the desktop's tray area * @throws UnsupportedOperationException if the system tray isn't * supported by the current platform * @throws HeadlessException if - * GraphicsEnvironment.isHeadless() returns true + * {@code GraphicsEnvironment.isHeadless()} returns {@code true} * @throws SecurityException if {@code accessSystemTray} permission * is not granted * @see #add(TrayIcon) @@ -203,15 +203,15 @@ * both the action listener and the popup menu. See the {@link * SystemTray example} for an example of how to do this. * - *

            Note: When implementing SystemTray and - * TrayIcon it is strongly recommended that + *

            Note: When implementing {@code SystemTray} and + * {@code TrayIcon} it is strongly recommended that * you assign different gestures to the popup menu and an action * event. Overloading a gesture for both purposes is confusing * and may prevent the user from accessing one or the other. * * @see #getSystemTray - * @return false if no system tray access is supported; this - * method returns true if the minimal system tray access is + * @return {@code false} if no system tray access is supported; this + * method returns {@code true} if the minimal system tray access is * supported but does not guarantee that all system tray * functionality is supported for the current platform */ @@ -231,20 +231,20 @@ } /** - * Adds a TrayIcon to the SystemTray. + * Adds a {@code TrayIcon} to the {@code SystemTray}. * The tray icon becomes visible in the system tray once it is * added. The order in which icons are displayed in a tray is not * specified - it is platform and implementation-dependent. * *

            All icons added by the application are automatically - * removed from the SystemTray upon application exit + * removed from the {@code SystemTray} upon application exit * and also when the desktop system tray becomes unavailable. * - * @param trayIcon the TrayIcon to be added - * @throws NullPointerException if trayIcon is - * null + * @param trayIcon the {@code TrayIcon} to be added + * @throws NullPointerException if {@code trayIcon} is + * {@code null} * @throws IllegalArgumentException if the same instance of - * a TrayIcon is added more than once + * a {@code TrayIcon} is added more than once * @throws AWTException if the desktop system tray is missing * @see #remove(TrayIcon) * @see #getSystemTray @@ -284,18 +284,18 @@ } /** - * Removes the specified TrayIcon from the - * SystemTray. + * Removes the specified {@code TrayIcon} from the + * {@code SystemTray}. * *

            All icons added by the application are automatically - * removed from the SystemTray upon application exit + * removed from the {@code SystemTray} upon application exit * and also when the desktop system tray becomes unavailable. * - *

            If trayIcon is null or was not + *

            If {@code trayIcon} is {@code null} or was not * added to the system tray, no exception is thrown and no action * is performed. * - * @param trayIcon the TrayIcon to be removed + * @param trayIcon the {@code TrayIcon} to be removed * @see #add(TrayIcon) * @see TrayIcon */ @@ -328,8 +328,8 @@ * *

            The returned array is a copy of the actual array and may be * modified in any way without affecting the system tray. To - * remove a TrayIcon from the - * SystemTray, use the {@link + * remove a {@code TrayIcon} from the + * {@code SystemTray}, use the {@link * #remove(TrayIcon)} method. * * @return an array of all tray icons added to this tray, or an @@ -351,7 +351,7 @@ * occupy in the system tray. Developers may use this methods to * acquire the preferred size for the image property of a tray icon * before it is created. For convenience, there is a similar - * method {@link TrayIcon#getSize} in the TrayIcon class. + * method {@link TrayIcon#getSize} in the {@code TrayIcon} class. * * @return the default size of a tray icon, in pixels * @see TrayIcon#setImageAutoSize(boolean) @@ -383,7 +383,7 @@ * * {@code systemTray} * This property contains {@code SystemTray} instance when the system tray - * is available or null otherwise.
            This property is changed + * is available or {@code null} otherwise.
            This property is changed * when the system tray becomes available or unavailable on the desktop.
            * The property is accessed by the {@link #getSystemTray} method. * --- old/src/java.desktop/share/classes/java/awt/TextArea.java 2015-10-04 22:53:05.041273190 +0400 +++ new/src/java.desktop/share/classes/java/awt/TextArea.java 2015-10-04 22:53:04.853273199 +0400 @@ -35,7 +35,7 @@ import javax.accessibility.AccessibleStateSet; /** - * A TextArea object is a multi-line region + * A {@code TextArea} object is a multi-line region * that displays text. It can be set to allow editing or * to be read-only. *

            @@ -56,7 +56,7 @@ public class TextArea extends TextComponent { /** - * The number of rows in the TextArea. + * The number of rows in the {@code TextArea}. * This parameter will determine the text area's height. * Guaranteed to be non-negative. * @@ -67,7 +67,7 @@ int rows; /** - * The number of columns in the TextArea. + * The number of columns in the {@code TextArea}. * A column is an approximate average character * width that is platform-dependent. * This parameter will determine the text area's width. @@ -109,10 +109,10 @@ /** * Determines which scrollbars are created for the * text area. It can be one of four values : - * SCROLLBARS_BOTH = both scrollbars.
            - * SCROLLBARS_HORIZONTAL_ONLY = Horizontal bar only.
            - * SCROLLBARS_VERTICAL_ONLY = Vertical bar only.
            - * SCROLLBARS_NONE = No scrollbars.
            + * {@code SCROLLBARS_BOTH} = both scrollbars.
            + * {@code SCROLLBARS_HORIZONTAL_ONLY} = Horizontal bar only.
            + * {@code SCROLLBARS_VERTICAL_ONLY} = Vertical bar only.
            + * {@code SCROLLBARS_NONE} = No scrollbars.
            * * @serial * @see #getScrollbarVisibility() @@ -155,7 +155,7 @@ * {@link #SCROLLBARS_BOTH}, so both vertical and horizontal * scrollbars will be visible for this text area. * @exception HeadlessException if - * GraphicsEnvironment.isHeadless returns true + * {@code GraphicsEnvironment.isHeadless} returns true * @see java.awt.GraphicsEnvironment#isHeadless() */ public TextArea() throws HeadlessException { @@ -168,10 +168,10 @@ * {@link #SCROLLBARS_BOTH}, so both vertical and horizontal * scrollbars will be visible for this text area. * @param text the text to be displayed; if - * text is null, the empty - * string "" will be displayed + * {@code text} is {@code null}, the empty + * string {@code ""} will be displayed * @exception HeadlessException if - * GraphicsEnvironment.isHeadless returns true + * {@code GraphicsEnvironment.isHeadless} returns true * @see java.awt.GraphicsEnvironment#isHeadless() */ public TextArea(String text) throws HeadlessException { @@ -189,7 +189,7 @@ * @param rows the number of rows * @param columns the number of columns * @exception HeadlessException if - * GraphicsEnvironment.isHeadless returns true + * {@code GraphicsEnvironment.isHeadless} returns true * @see java.awt.GraphicsEnvironment#isHeadless() */ public TextArea(int rows, int columns) throws HeadlessException { @@ -205,12 +205,12 @@ * vertical and horizontal scrollbars will be visible for this * text area. * @param text the text to be displayed; if - * text is null, the empty - * string "" will be displayed + * {@code text} is {@code null}, the empty + * string {@code ""} will be displayed * @param rows the number of rows * @param columns the number of columns * @exception HeadlessException if - * GraphicsEnvironment.isHeadless returns true + * {@code GraphicsEnvironment.isHeadless} returns true * @see java.awt.GraphicsEnvironment#isHeadless() */ public TextArea(String text, int rows, int columns) @@ -221,36 +221,36 @@ /** * Constructs a new text area with the specified text, * and with the rows, columns, and scroll bar visibility - * as specified. All TextArea constructors defer to + * as specified. All {@code TextArea} constructors defer to * this one. *

            - * The TextArea class defines several constants + * The {@code TextArea} class defines several constants * that can be supplied as values for the - * scrollbars argument: + * {@code scrollbars} argument: *

              - *
            • SCROLLBARS_BOTH, - *
            • SCROLLBARS_VERTICAL_ONLY, - *
            • SCROLLBARS_HORIZONTAL_ONLY, - *
            • SCROLLBARS_NONE. + *
            • {@code SCROLLBARS_BOTH}, + *
            • {@code SCROLLBARS_VERTICAL_ONLY}, + *
            • {@code SCROLLBARS_HORIZONTAL_ONLY}, + *
            • {@code SCROLLBARS_NONE}. *
            * Any other value for the - * scrollbars argument is invalid and will result in + * {@code scrollbars} argument is invalid and will result in * this text area being created with scrollbar visibility equal to * the default value of {@link #SCROLLBARS_BOTH}. * @param text the text to be displayed; if - * text is null, the empty - * string "" will be displayed + * {@code text} is {@code null}, the empty + * string {@code ""} will be displayed * @param rows the number of rows; if - * rows is less than 0, - * rows is set to 0 + * {@code rows} is less than {@code 0}, + * {@code rows} is set to {@code 0} * @param columns the number of columns; if - * columns is less than 0, - * columns is set to 0 + * {@code columns} is less than {@code 0}, + * {@code columns} is set to {@code 0} * @param scrollbars a constant that determines what * scrollbars are created to view the text area * @since 1.1 * @exception HeadlessException if - * GraphicsEnvironment.isHeadless returns true + * {@code GraphicsEnvironment.isHeadless} returns true * @see java.awt.GraphicsEnvironment#isHeadless() */ public TextArea(String text, int rows, int columns, int scrollbars) @@ -273,8 +273,8 @@ } /** - * Construct a name for this component. Called by getName - * when the name is null. + * Construct a name for this component. Called by {@code getName} + * when the name is {@code null}. */ String constructComponentName() { synchronized (TextArea.class) { @@ -283,8 +283,8 @@ } /** - * Creates the TextArea's peer. The peer allows us to modify - * the appearance of the TextArea without changing any of its + * Creates the {@code TextArea}'s peer. The peer allows us to modify + * the appearance of the {@code TextArea} without changing any of its * functionality. */ public void addNotify() { @@ -298,11 +298,11 @@ /** * Inserts the specified text at the specified position * in this text area. - *

            Note that passing null or inconsistent + *

            Note that passing {@code null} or inconsistent * parameters is invalid and will result in unspecified * behavior. * - * @param str the non-null text to insert + * @param str the non-{@code null} text to insert * @param pos the position at which to insert * @see java.awt.TextComponent#setText * @see java.awt.TextArea#replaceRange @@ -320,7 +320,7 @@ * @param str the non-{@code null} text to insert * @param pos the position at which to insert * @deprecated As of JDK version 1.1, - * replaced by insert(String, int). + * replaced by {@code insert(String, int)}. */ @Deprecated public synchronized void insertText(String str, int pos) { @@ -333,11 +333,11 @@ /** * Appends the given text to the text area's current text. - *

            Note that passing null or inconsistent + *

            Note that passing {@code null} or inconsistent * parameters is invalid and will result in unspecified * behavior. * - * @param str the non-null text to append + * @param str the non-{@code null} text to append * @see java.awt.TextArea#insert * @since 1.1 */ @@ -350,7 +350,7 @@ * * @param str the text to append * @deprecated As of JDK version 1.1, - * replaced by append(String). + * replaced by {@code append(String)}. */ @Deprecated public synchronized void appendText(String str) { @@ -365,11 +365,11 @@ * same as the end position). * The text position is zero-based. The inserted substring may be * of a different length than the text it replaces. - *

            Note that passing null or inconsistent + *

            Note that passing {@code null} or inconsistent * parameters is invalid and will result in unspecified * behavior. * - * @param str the non-null text to use as + * @param str the non-{@code null} text to use as * the replacement * @param start the start position * @param end the end position @@ -391,7 +391,7 @@ * @param start the start position * @param end the end position * @deprecated As of JDK version 1.1, - * replaced by replaceRange(String, int, int). + * replaced by {@code replaceRange(String, int, int)}. */ @Deprecated public synchronized void replaceText(String str, int start, int end) { @@ -419,8 +419,8 @@ * @see #getRows() * @see #setColumns(int) * @exception IllegalArgumentException if the value - * supplied for rows - * is less than 0 + * supplied for {@code rows} + * is less than {@code 0} * @since 1.1 */ public void setRows(int rows) { @@ -450,8 +450,8 @@ * @see #getColumns() * @see #setRows(int) * @exception IllegalArgumentException if the value - * supplied for columns - * is less than 0 + * supplied for {@code columns} + * is less than {@code 0} * @since 1.1 */ public void setColumns(int columns) { @@ -469,9 +469,9 @@ * Returns an enumerated value that indicates which scroll bars * the text area uses. *

            - * The TextArea class defines four integer constants + * The {@code TextArea} class defines four integer constants * that are used to specify which scroll bars are available. - * TextArea has one constructor that gives the + * {@code TextArea} has one constructor that gives the * application discretion over scroll bars. * * @return an integer that indicates which scroll bars are used @@ -510,7 +510,7 @@ * @param columns the number of columns * @return the preferred dimensions needed for the text area * @deprecated As of JDK version 1.1, - * replaced by getPreferredSize(int, int). + * replaced by {@code getPreferredSize(int, int)}. */ @Deprecated public Dimension preferredSize(int rows, int columns) { @@ -534,7 +534,7 @@ /** * @deprecated As of JDK version 1.1, - * replaced by getPreferredSize(). + * replaced by {@code getPreferredSize()}. */ @Deprecated public Dimension preferredSize() { @@ -568,7 +568,7 @@ * @param columns the number of columns * @return the minimum size for the text area * @deprecated As of JDK version 1.1, - * replaced by getMinimumSize(int, int). + * replaced by {@code getMinimumSize(int, int)}. */ @Deprecated public Dimension minimumSize(int rows, int columns) { @@ -592,7 +592,7 @@ /** * @deprecated As of JDK version 1.1, - * replaced by getMinimumSize(). + * replaced by {@code getMinimumSize()}. */ @Deprecated public Dimension minimumSize() { @@ -604,11 +604,11 @@ } /** - * Returns a string representing the state of this TextArea. + * Returns a string representing the state of this {@code TextArea}. * This method is intended to be used only for debugging purposes, and the * content and format of the returned string may vary between * implementations. The returned string may be empty but may not be - * null. + * {@code null}. * * @return the parameter string of this text area */ @@ -650,8 +650,8 @@ /** * Read the ObjectInputStream. * @exception HeadlessException if - * GraphicsEnvironment.isHeadless() returns - * true + * {@code GraphicsEnvironment.isHeadless()} returns + * {@code true} * @see java.awt.GraphicsEnvironment#isHeadless */ private void readObject(ObjectInputStream s) @@ -689,14 +689,14 @@ /** - * Returns the AccessibleContext associated with - * this TextArea. For text areas, the - * AccessibleContext takes the form of an - * AccessibleAWTTextArea. - * A new AccessibleAWTTextArea instance is created if necessary. + * Returns the {@code AccessibleContext} associated with + * this {@code TextArea}. For text areas, the + * {@code AccessibleContext} takes the form of an + * {@code AccessibleAWTTextArea}. + * A new {@code AccessibleAWTTextArea} instance is created if necessary. * - * @return an AccessibleAWTTextArea that serves as the - * AccessibleContext of this TextArea + * @return an {@code AccessibleAWTTextArea} that serves as the + * {@code AccessibleContext} of this {@code TextArea} * @since 1.3 */ public AccessibleContext getAccessibleContext() { @@ -708,7 +708,7 @@ /** * This class implements accessibility support for the - * TextArea class. It provides an implementation of the + * {@code TextArea} class. It provides an implementation of the * Java Accessibility API appropriate to text area user-interface elements. * @since 1.3 */ --- old/src/java.desktop/share/classes/java/awt/TextComponent.java 2015-10-04 22:53:05.577273166 +0400 +++ new/src/java.desktop/share/classes/java/awt/TextComponent.java 2015-10-04 22:53:05.389273175 +0400 @@ -38,11 +38,11 @@ import sun.awt.InputMethodSupport; /** - * The TextComponent class is the superclass of + * The {@code TextComponent} class is the superclass of * any component that allows the editing of some text. *

            * A text component embodies a string of text. The - * TextComponent class defines a set of methods + * {@code TextComponent} class defines a set of methods * that determine whether or not this text is editable. If the * component is editable, it defines another set of methods * that supports a text insertion caret. @@ -61,7 +61,7 @@ /** * The value of the text. - * A null value is the same as "". + * A {@code null} value is the same as "". * * @serial * @see #setText(String) @@ -71,9 +71,9 @@ /** * A boolean indicating whether or not this - * TextComponent is editable. - * It will be true if the text component - * is editable and false if not. + * {@code TextComponent} is editable. + * It will be {@code true} if the text component + * is editable and {@code false} if not. * * @serial * @see #isEditable() @@ -82,7 +82,7 @@ /** * The selection refers to the selected text, and the - * selectionStart is the start position + * {@code selectionStart} is the start position * of the selected text. * * @serial @@ -93,7 +93,7 @@ /** * The selection refers to the selected text, and the - * selectionEnd + * {@code selectionEnd} * is the end position of the selected text. * * @serial @@ -120,12 +120,12 @@ /** * Constructs a new text component initialized with the * specified text. Sets the value of the cursor to - * Cursor.TEXT_CURSOR. + * {@code Cursor.TEXT_CURSOR}. * @param text the text to be displayed; if - * text is null, the empty - * string "" will be displayed + * {@code text} is {@code null}, the empty + * string {@code ""} will be displayed * @exception HeadlessException if - * GraphicsEnvironment.isHeadless + * {@code GraphicsEnvironment.isHeadless} * returns true * @see java.awt.GraphicsEnvironment#isHeadless * @see java.awt.Cursor @@ -203,9 +203,9 @@ } /** - * Removes the TextComponent's peer. + * Removes the {@code TextComponent}'s peer. * The peer allows us to modify the appearance of the - * TextComponent without changing its + * {@code TextComponent} without changing its * functionality. */ public void removeNotify() { @@ -224,7 +224,7 @@ * Sets the text that is presented by this * text component to be the specified text. * @param t the new text; - * if this parameter is null then + * if this parameter is {@code null} then * the text is set to the empty string "" * @see java.awt.TextComponent#getText */ @@ -245,7 +245,7 @@ * Returns the text that is presented by this text component. * By default, this is an empty string. * - * @return the value of this TextComponent + * @return the value of this {@code TextComponent} * @see java.awt.TextComponent#setText */ public synchronized String getText() { @@ -268,8 +268,8 @@ /** * Indicates whether or not this text component is editable. - * @return true if this text component is - * editable; false otherwise. + * @return {@code true} if this text component is + * editable; {@code false} otherwise. * @see java.awt.TextComponent#setEditable * @since 1.0 */ @@ -281,8 +281,8 @@ * Sets the flag that determines whether or not this * text component is editable. *

            - * If the flag is set to true, this text component - * becomes user editable. If the flag is set to false, + * If the flag is set to {@code true}, this text component + * becomes user editable. If the flag is set to {@code false}, * the user cannot change the text of this text component. * By default, non-editable text components have a background color * of SystemColor.control. This default can be overridden by @@ -361,7 +361,7 @@ * to be at or before the current selection end. It also * cannot be set to less than zero, the beginning of the * component's text. - * If the caller supplies a value for selectionStart + * If the caller supplies a value for {@code selectionStart} * that is out of bounds, the method enforces these constraints * silently, and without failure. * @param selectionStart the start position of the @@ -397,7 +397,7 @@ * the specified position. The new end point is constrained * to be at or after the current selection start. It also * cannot be set beyond the end of the component's text. - * If the caller supplies a value for selectionEnd + * If the caller supplies a value for {@code selectionEnd} * that is out of bounds, the method enforces these constraints * silently, and without failure. * @param selectionEnd the end position of the @@ -423,8 +423,8 @@ * equal to the length of the text component's text. The * character positions are indexed starting with zero. * The length of the selection is - * endPosition - startPosition, so the - * character at endPosition is not selected. + * {@code endPosition} - {@code startPosition}, so the + * character at {@code endPosition} is not selected. * If the start and end positions of the selected text are equal, * all text is deselected. *

            @@ -437,10 +437,10 @@ * start position, it is reset to the start position. * * @param selectionStart the zero-based index of the first - character (char value) to be selected + * character ({@code char} value) to be selected * @param selectionEnd the zero-based end position of the - text to be selected; the character (char value) at - selectionEnd is not selected + * text to be selected; the character ({@code char} value) at + * {@code selectionEnd} is not selected * @see java.awt.TextComponent#setSelectionStart * @see java.awt.TextComponent#setSelectionEnd * @see java.awt.TextComponent#selectAll @@ -489,13 +489,13 @@ * and the last character of the text, inclusive. * If the passed-in value is greater than this range, * the value is set to the last character (or 0 if - * the TextComponent contains no text) + * the {@code TextComponent} contains no text) * and no error is returned. If the passed-in value is - * less than 0, an IllegalArgumentException + * less than 0, an {@code IllegalArgumentException} * is thrown. * * @param position the position of the text insertion caret - * @exception IllegalArgumentException if position + * @exception IllegalArgumentException if {@code position} * is less than zero * @since 1.1 */ @@ -547,7 +547,7 @@ /** * Adds the specified text event listener to receive text events * from this text component. - * If l is null, no exception is + * If {@code l} is {@code null}, no exception is * thrown and no action is performed. *

            Refer to AWT Threading Issues for details on AWT's threading model. @@ -568,7 +568,7 @@ /** * Removes the specified text event listener so that it no longer * receives text events from this text component - * If l is null, no exception is + * If {@code l} is {@code null}, no exception is * thrown and no action is performed. *

            Refer to AWT Threading Issues for details on AWT's threading model. @@ -590,7 +590,7 @@ * Returns an array of all the text listeners * registered on this text component. * - * @return all of this text component's TextListeners + * @return all of this text component's {@code TextListener}s * or an empty array if no text * listeners are currently registered * @@ -606,16 +606,16 @@ /** * Returns an array of all the objects currently registered * as FooListeners - * upon this TextComponent. + * upon this {@code TextComponent}. * FooListeners are registered using the * addFooListener method. * *

            - * You can specify the listenerType argument + * You can specify the {@code listenerType} argument * with a class literal, such as * FooListener.class. * For example, you can query a - * TextComponent t + * {@code TextComponent t} * for its text listeners with the following code: * *

            TextListener[] tls = (TextListener[])(t.getListeners(TextListener.class));
            @@ -624,14 +624,14 @@ * * @param listenerType the type of listeners requested; this parameter * should specify an interface that descends from - * java.util.EventListener + * {@code java.util.EventListener} * @return an array of all objects registered as * FooListeners on this text component, * or an empty array if no such * listeners have been added - * @exception ClassCastException if listenerType + * @exception ClassCastException if {@code listenerType} * doesn't specify a class or interface that implements - * java.util.EventListener + * {@code java.util.EventListener} * * @see #getTextListeners * @since 1.3 @@ -660,9 +660,9 @@ /** * Processes events on this text component. If the event is a - * TextEvent, it invokes the processTextEvent - * method else it invokes its superclass's processEvent. - *

            Note that if the event parameter is null + * {@code TextEvent}, it invokes the {@code processTextEvent} + * method else it invokes its superclass's {@code processEvent}. + *

            Note that if the event parameter is {@code null} * the behavior is unspecified and may result in an * exception. * @@ -678,17 +678,17 @@ /** * Processes text events occurring on this text component by - * dispatching them to any registered TextListener objects. + * dispatching them to any registered {@code TextListener} objects. *

            * NOTE: This method will not be called unless text events * are enabled for this component. This happens when one of the * following occurs: *

              - *
            • A TextListener object is registered - * via addTextListener - *
            • Text events are enabled via enableEvents + *
            • A {@code TextListener} object is registered + * via {@code addTextListener} + *
            • Text events are enabled via {@code enableEvents} *
            - *

            Note that if the event parameter is null + *

            Note that if the event parameter is {@code null} * the behavior is unspecified and may result in an * exception. * @@ -709,11 +709,11 @@ /** * Returns a string representing the state of this - * TextComponent. This + * {@code TextComponent}. This * method is intended to be used only for debugging purposes, and the * content and format of the returned string may vary between * implementations. The returned string may be empty but may not be - * null. + * {@code null}. * * @return the parameter string of this text component */ @@ -789,8 +789,8 @@ * ignored. * * @exception HeadlessException if - * GraphicsEnvironment.isHeadless() returns - * true + * {@code GraphicsEnvironment.isHeadless()} returns + * {@code true} * @see #removeTextListener * @see #addTextListener * @see java.awt.GraphicsEnvironment#isHeadless @@ -844,7 +844,7 @@ /** * This class implements accessibility support for the - * TextComponent class. It provides an implementation of the + * {@code TextComponent} class. It provides an implementation of the * Java Accessibility API appropriate to text component user-interface * elements. * @since 1.3 --- old/src/java.desktop/share/classes/java/awt/TextField.java 2015-10-04 22:53:06.133273141 +0400 +++ new/src/java.desktop/share/classes/java/awt/TextField.java 2015-10-04 22:53:05.929273150 +0400 @@ -34,12 +34,12 @@ /** - * A TextField object is a text component + * A {@code TextField} object is a text component * that allows for the editing of a single line of text. *

            * For example, the following image depicts a frame with four * text fields of varying widths. Two of these text fields - * display the predefined text "Hello". + * display the predefined text {@code "Hello"}. *

            * The preceding text describes this image. @@ -59,27 +59,27 @@ *


            *

            * Every time the user types a key in the text field, one or - * more key events are sent to the text field. A KeyEvent + * more key events are sent to the text field. A {@code KeyEvent} * may be one of three types: keyPressed, keyReleased, or keyTyped. * The properties of a key event indicate which of these types * it is, as well as additional information about the event, * such as what modifiers are applied to the key event and the * time at which the event occurred. *

            - * The key event is passed to every KeyListener - * or KeyAdapter object which registered to receive such - * events using the component's addKeyListener method. - * (KeyAdapter objects implement the - * KeyListener interface.) + * The key event is passed to every {@code KeyListener} + * or {@code KeyAdapter} object which registered to receive such + * events using the component's {@code addKeyListener} method. + * ({@code KeyAdapter} objects implement the + * {@code KeyListener} interface.) *

            - * It is also possible to fire an ActionEvent. + * It is also possible to fire an {@code ActionEvent}. * If action events are enabled for the text field, they may - * be fired by pressing the Return key. + * be fired by pressing the {@code Return} key. *

            - * The TextField class's processEvent + * The {@code TextField} class's {@code processEvent} * method examines the action event and passes it along to - * processActionEvent. The latter method redirects the - * event to any ActionListener objects that have + * {@code processActionEvent}. The latter method redirects the + * event to any {@code ActionListener} objects that have * registered to receive action events generated by this * text field. * @@ -112,7 +112,7 @@ * The echo character, which is used when * the user wishes to disguise the characters * typed into the text field. - * The disguises are removed if echoChar = 0. + * The disguises are removed if echoChar = {@code 0}. * * @serial * @see #getEchoChar() @@ -157,8 +157,8 @@ /** * Constructs a new text field initialized with the specified text. * @param text the text to be displayed. If - * text is null, the empty - * string "" will be displayed. + * {@code text} is {@code null}, the empty + * string {@code ""} will be displayed. * @exception HeadlessException if GraphicsEnvironment.isHeadless() * returns true. * @see java.awt.GraphicsEnvironment#isHeadless @@ -172,8 +172,8 @@ * of columns. A column is an approximate average character * width that is platform-dependent. * @param columns the number of columns. If - * columns is less than 0, - * columns is set to 0. + * {@code columns} is less than {@code 0}, + * {@code columns} is set to {@code 0}. * @exception HeadlessException if GraphicsEnvironment.isHeadless() * returns true. * @see java.awt.GraphicsEnvironment#isHeadless @@ -188,11 +188,11 @@ * number of columns. A column is an approximate average character * width that is platform-dependent. * @param text the text to be displayed. If - * text is null, the empty - * string "" will be displayed. + * {@code text} is {@code null}, the empty + * string {@code ""} will be displayed. * @param columns the number of columns. If - * columns is less than 0, - * columns is set to 0. + * {@code columns} is less than {@code 0}, + * {@code columns} is set to {@code 0}. * @exception HeadlessException if GraphicsEnvironment.isHeadless() * returns true. * @see java.awt.GraphicsEnvironment#isHeadless @@ -230,7 +230,7 @@ * An echo character is useful for text fields where * user input should not be echoed to the screen, as in * the case of a text field for entering a password. - * If echoChar = 0, user + * If {@code echoChar} = {@code 0}, user * input is echoed to the screen unchanged. *

            * A Java platform implementation may support only a limited, @@ -252,7 +252,7 @@ * An echo character is useful for text fields where * user input should not be echoed to the screen, as in * the case of a text field for entering a password. - * Setting echoChar = 0 allows + * Setting {@code echoChar} = {@code 0} allows * user input to be echoed to the screen again. *

            * A Java platform implementation may support only a limited, @@ -277,7 +277,7 @@ * @param c the echo character for this text field * * @deprecated As of JDK version 1.1, - * replaced by setEchoChar(char). + * replaced by {@code setEchoChar(char)}. */ @Deprecated public synchronized void setEchoCharacter(char c) { @@ -310,9 +310,9 @@ * An echo character is useful for text fields where * user input should not be echoed to the screen, as in * the case of a text field for entering a password. - * @return true if this text field has + * @return {@code true} if this text field has * a character set for echoing; - * false otherwise. + * {@code false} otherwise. * @see java.awt.TextField#setEchoChar * @see java.awt.TextField#getEchoChar */ @@ -337,8 +337,8 @@ * @param columns the number of columns. * @see java.awt.TextField#getColumns * @exception IllegalArgumentException if the value - * supplied for columns - * is less than 0. + * supplied for {@code columns} + * is less than {@code 0}. * @since 1.1 */ public void setColumns(int columns) { @@ -379,7 +379,7 @@ * @return the preferred size for the text field * * @deprecated As of JDK version 1.1, - * replaced by getPreferredSize(int). + * replaced by {@code getPreferredSize(int)}. */ @Deprecated public Dimension preferredSize(int columns) { @@ -403,7 +403,7 @@ /** * @deprecated As of JDK version 1.1, - * replaced by getPreferredSize(). + * replaced by {@code getPreferredSize()}. */ @Deprecated public Dimension preferredSize() { @@ -433,7 +433,7 @@ * @param columns the number of columns * @return the minimum size for this text field * @deprecated As of JDK version 1.1, - * replaced by getMinimumSize(int). + * replaced by {@code getMinimumSize(int)}. */ @Deprecated public Dimension minimumSize(int columns) { @@ -457,7 +457,7 @@ /** * @deprecated As of JDK version 1.1, - * replaced by getMinimumSize(). + * replaced by {@code getMinimumSize()}. */ @Deprecated public Dimension minimumSize() { @@ -513,7 +513,7 @@ * Returns an array of all the action listeners * registered on this textfield. * - * @return all of this textfield's ActionListeners + * @return all of this textfield's {@code ActionListener}s * or an empty array if no action * listeners are currently registered * @@ -529,16 +529,16 @@ /** * Returns an array of all the objects currently registered * as FooListeners - * upon this TextField. + * upon this {@code TextField}. * FooListeners are registered using the * addFooListener method. * *

            - * You can specify the listenerType argument + * You can specify the {@code listenerType} argument * with a class literal, such as * FooListener.class. * For example, you can query a - * TextField t + * {@code TextField t} * for its action listeners with the following code: * *

            ActionListener[] als = (ActionListener[])(t.getListeners(ActionListener.class));
            @@ -547,14 +547,14 @@ * * @param listenerType the type of listeners requested; this parameter * should specify an interface that descends from - * java.util.EventListener + * {@code java.util.EventListener} * @return an array of all objects registered as * FooListeners on this textfield, * or an empty array if no such * listeners have been added - * @exception ClassCastException if listenerType + * @exception ClassCastException if {@code listenerType} * doesn't specify a class or interface that implements - * java.util.EventListener + * {@code java.util.EventListener} * * @see #getActionListeners * @since 1.3 @@ -583,11 +583,11 @@ /** * Processes events on this text field. If the event - * is an instance of ActionEvent, - * it invokes the processActionEvent - * method. Otherwise, it invokes processEvent + * is an instance of {@code ActionEvent}, + * it invokes the {@code processActionEvent} + * method. Otherwise, it invokes {@code processEvent} * on the superclass. - *

            Note that if the event parameter is null + *

            Note that if the event parameter is {@code null} * the behavior is unspecified and may result in an * exception. * @@ -607,17 +607,17 @@ /** * Processes action events occurring on this text field by * dispatching them to any registered - * ActionListener objects. + * {@code ActionListener} objects. *

            * This method is not called unless action events are * enabled for this component. Action events are enabled * when one of the following occurs: *

              - *
            • An ActionListener object is registered - * via addActionListener. - *
            • Action events are enabled via enableEvents. + *
            • An {@code ActionListener} object is registered + * via {@code addActionListener}. + *
            • Action events are enabled via {@code enableEvents}. *
            - *

            Note that if the event parameter is null + *

            Note that if the event parameter is {@code null} * the behavior is unspecified and may result in an * exception. * @@ -635,11 +635,11 @@ } /** - * Returns a string representing the state of this TextField. + * Returns a string representing the state of this {@code TextField}. * This method is intended to be used only for debugging purposes, and the * content and format of the returned string may vary between * implementations. The returned string may be empty but may not be - * null. + * {@code null}. * * @return the parameter string of this text field */ @@ -693,8 +693,8 @@ * ignored. * * @exception HeadlessException if - * GraphicsEnvironment.isHeadless() returns - * true + * {@code GraphicsEnvironment.isHeadless()} returns + * {@code true} * @see #removeActionListener(ActionListener) * @see #addActionListener(ActionListener) * @see java.awt.GraphicsEnvironment#isHeadless @@ -749,7 +749,7 @@ /** * This class implements accessibility support for the - * TextField class. It provides an implementation of the + * {@code TextField} class. It provides an implementation of the * Java Accessibility API appropriate to text field user-interface elements. * @since 1.3 */ --- old/src/java.desktop/share/classes/java/awt/TexturePaint.java 2015-10-04 22:53:06.665273117 +0400 +++ new/src/java.desktop/share/classes/java/awt/TexturePaint.java 2015-10-04 22:53:06.473273126 +0400 @@ -31,18 +31,18 @@ import java.awt.image.ColorModel; /** - * The TexturePaint class provides a way to fill a + * The {@code TexturePaint} class provides a way to fill a * {@link Shape} with a texture that is specified as - * a {@link BufferedImage}. The size of the BufferedImage - * object should be small because the BufferedImage data - * is copied by the TexturePaint object. + * a {@link BufferedImage}. The size of the {@code BufferedImage} + * object should be small because the {@code BufferedImage} data + * is copied by the {@code TexturePaint} object. * At construction time, the texture is anchored to the upper * left corner of a {@link Rectangle2D} that is * specified in user space. Texture is computed for * locations in the device space by conceptually replicating the - * specified Rectangle2D infinitely in all directions - * in user space and mapping the BufferedImage to each - * replicated Rectangle2D. + * specified {@code Rectangle2D} infinitely in all directions + * in user space and mapping the {@code BufferedImage} to each + * replicated {@code Rectangle2D}. * @see Paint * @see Graphics2D#setPaint * @version 1.48, 06/05/07 @@ -57,10 +57,10 @@ double sy; /** - * Constructs a TexturePaint object. - * @param txtr the BufferedImage object with the texture + * Constructs a {@code TexturePaint} object. + * @param txtr the {@code BufferedImage} object with the texture * used for painting - * @param anchor the Rectangle2D in user space used to + * @param anchor the {@code Rectangle2D} in user space used to * anchor and replicate the texture */ public TexturePaint(BufferedImage txtr, @@ -73,9 +73,9 @@ } /** - * Returns the BufferedImage texture used to + * Returns the {@code BufferedImage} texture used to * fill the shapes. - * @return a BufferedImage. + * @return a {@code BufferedImage}. */ public BufferedImage getImage() { return bufImg; @@ -84,8 +84,8 @@ /** * Returns a copy of the anchor rectangle which positions and * sizes the textured image. - * @return the Rectangle2D used to anchor and - * size this TexturePaint. + * @return the {@code Rectangle2D} used to anchor and + * size this {@code TexturePaint}. */ public Rectangle2D getAnchorRect() { return new Rectangle2D.Double(tx, ty, @@ -139,8 +139,8 @@ } /** - * Returns the transparency mode for this TexturePaint. - * @return the transparency mode for this TexturePaint + * Returns the transparency mode for this {@code TexturePaint}. + * @return the transparency mode for this {@code TexturePaint} * as an integer value. * @see Transparency */ --- old/src/java.desktop/share/classes/java/awt/Toolkit.java 2015-10-04 22:53:07.201273093 +0400 +++ new/src/java.desktop/share/classes/java/awt/Toolkit.java 2015-10-04 22:53:06.997273102 +0400 @@ -69,7 +69,7 @@ /** * This class is the abstract superclass of all actual * implementations of the Abstract Window Toolkit. Subclasses of - * the Toolkit class are used to bind the various components + * the {@code Toolkit} class are used to bind the various components * to particular native toolkit implementations. *

            * Many GUI events may be delivered to user @@ -82,8 +82,8 @@ * limited to: *

              *
            • Scrolling to a specified position. - *
              For example, calling ScrollPane.setScrollPosition - * and then getScrollPosition may return an incorrect + *
              For example, calling {@code ScrollPane.setScrollPosition} + * and then {@code getScrollPosition} may return an incorrect * value if the original request has not yet been processed. * *
            • Moving the focus from one component to another. @@ -94,25 +94,25 @@ * Tutorial. * *
            • Making a top-level container visible. - *
              Calling setVisible(true) on a Window, - * Frame or Dialog may occur + *
              Calling {@code setVisible(true)} on a {@code Window}, + * {@code Frame} or {@code Dialog} may occur * asynchronously. * *
            • Setting the size or location of a top-level container. - *
              Calls to setSize, setBounds or - * setLocation on a Window, - * Frame or Dialog are forwarded + *
              Calls to {@code setSize}, {@code setBounds} or + * {@code setLocation} on a {@code Window}, + * {@code Frame} or {@code Dialog} are forwarded * to the underlying window management system and may be * ignored or modified. See {@link java.awt.Window} for * more information. *
            *

            * Most applications should not call any of the methods in this - * class directly. The methods defined by Toolkit are + * class directly. The methods defined by {@code Toolkit} are * the "glue" that joins the platform-independent classes in the - * java.awt package with their counterparts in - * java.awt.peer. Some methods defined by - * Toolkit query the native operating system directly. + * {@code java.awt} package with their counterparts in + * {@code java.awt.peer}. Some methods defined by + * {@code Toolkit} query the native operating system directly. * * @author Sami Shaio * @author Arthur van Hoff @@ -247,8 +247,8 @@ /** * Gets the size of the screen. On systems with multiple displays, the * primary display is used. Multi-screen aware display dimensions are - * available from GraphicsConfiguration and - * GraphicsDevice. + * available from {@code GraphicsConfiguration} and + * {@code GraphicsDevice}. * @return the size of this toolkit's screen, in pixels. * @exception HeadlessException if GraphicsEnvironment.isHeadless() * returns true @@ -271,7 +271,7 @@ /** * Gets the insets of the screen. - * @param gc a GraphicsConfiguration + * @param gc a {@code GraphicsConfiguration} * @return the insets of this toolkit's screen, in pixels. * @exception HeadlessException if GraphicsEnvironment.isHeadless() * returns true @@ -291,14 +291,14 @@ /** * Determines the color model of this toolkit's screen. *

            - * ColorModel is an abstract class that + * {@code ColorModel} is an abstract class that * encapsulates the ability to translate between the * pixel values of an image and its red, green, blue, * and alpha components. *

            * This toolkit method is called by the - * getColorModel method - * of the Component class. + * {@code getColorModel} method + * of the {@code Component} class. * @return the color model of this toolkit's screen. * @exception HeadlessException if GraphicsEnvironment.isHeadless() * returns true @@ -332,8 +332,8 @@ * Gets the screen device metrics for rendering of the font. * @param font a font * @return the screen metrics of the specified font in this toolkit - * @deprecated As of JDK version 1.2, replaced by the Font - * method getLineMetrics. + * @deprecated As of JDK version 1.2, replaced by the {@code Font} + * method {@code getLineMetrics}. * @see java.awt.font.LineMetrics * @see java.awt.Font#getLineMetrics * @see java.awt.GraphicsEnvironment#getScreenDevices @@ -606,22 +606,22 @@ * with the same filename to the same returned Image. *

            * Since the mechanism required to facilitate this sharing of - * Image objects may continue to hold onto images + * {@code Image} objects may continue to hold onto images * that are no longer in use for an indefinite period of time, * developers are encouraged to implement their own caching of * images by using the {@link #createImage(java.lang.String) createImage} * variant wherever available. * If the image data contained in the specified file changes, - * the Image object returned from this method may + * the {@code Image} object returned from this method may * still contain stale information which was loaded from the * file after a prior call. * Previously loaded image data can be manually discarded by * calling the {@link Image#flush flush} method on the - * returned Image. + * returned {@code Image}. *

            * This method first checks if there is a security manager installed. * If so, the method calls the security manager's - * checkRead method with the file specified to ensure + * {@code checkRead} method with the file specified to ensure * that the access to the image is allowed. * @param filename the name of a file containing pixel data * in a recognized file format. @@ -641,27 +641,27 @@ * with the same URL to the same returned Image. *

            * Since the mechanism required to facilitate this sharing of - * Image objects may continue to hold onto images + * {@code Image} objects may continue to hold onto images * that are no longer in use for an indefinite period of time, * developers are encouraged to implement their own caching of * images by using the {@link #createImage(java.net.URL) createImage} * variant wherever available. * If the image data stored at the specified URL changes, - * the Image object returned from this method may + * the {@code Image} object returned from this method may * still contain stale information which was fetched from the * URL after a prior call. * Previously loaded image data can be manually discarded by * calling the {@link Image#flush flush} method on the - * returned Image. + * returned {@code Image}. *

            * This method first checks if there is a security manager installed. * If so, the method calls the security manager's - * checkPermission method with the + * {@code checkPermission} method with the * url.openConnection().getPermission() permission to ensure * that the access to the image is allowed. For compatibility * with pre-1.2 security managers, if the access is denied with - * FilePermission or SocketPermission, - * the method throws the SecurityException + * {@code FilePermission} or {@code SocketPermission}, + * the method throws the {@code SecurityException} * if the corresponding 1.1-style SecurityManager.checkXXX method * also denies permission. * @param url the URL to use in fetching the pixel data. @@ -681,7 +681,7 @@ *

            * This method first checks if there is a security manager installed. * If so, the method calls the security manager's - * checkRead method with the specified file to ensure + * {@code checkRead} method with the specified file to ensure * that the image creation is allowed. * @param filename the name of a file containing pixel data * in a recognized file format. @@ -700,12 +700,12 @@ *

            * This method first checks if there is a security manager installed. * If so, the method calls the security manager's - * checkPermission method with the + * {@code checkPermission} method with the * url.openConnection().getPermission() permission to ensure * that the image creation is allowed. For compatibility * with pre-1.2 security managers, if the access is denied with - * FilePermission or SocketPermission, - * the method throws SecurityException + * {@code FilePermission} or {@code SocketPermission}, + * the method throws {@code SecurityException} * if the corresponding 1.1-style SecurityManager.checkXXX method * also denies permission. * @param url the URL to use in fetching the pixel data. @@ -722,7 +722,7 @@ * Prepares an image for rendering. *

            * If the values of the width and height arguments are both - * -1, this method prepares the image for rendering + * {@code -1}, this method prepares the image for rendering * on the default screen; otherwise, this method prepares an image * for rendering on the default screen at the specified width and height. *

            @@ -730,23 +730,23 @@ * and an appropriately scaled screen representation of the image is * generated. *

            - * This method is called by components prepareImage + * This method is called by components {@code prepareImage} * methods. *

            * Information on the flags returned by this method can be found - * with the definition of the ImageObserver interface. + * with the definition of the {@code ImageObserver} interface. * @param image the image for which to prepare a * screen representation. * @param width the width of the desired screen - * representation, or -1. + * representation, or {@code -1}. * @param height the height of the desired screen - * representation, or -1. - * @param observer the ImageObserver + * representation, or {@code -1}. + * @param observer the {@code ImageObserver} * object to be notified as the * image is being prepared. - * @return true if the image has already been - * fully prepared; false otherwise. + * @return {@code true} if the image has already been + * fully prepared; {@code false} otherwise. * @see java.awt.Component#prepareImage(java.awt.Image, * java.awt.image.ImageObserver) * @see java.awt.Component#prepareImage(java.awt.Image, @@ -761,30 +761,30 @@ * being prepared for display. *

            * If the values of the width and height arguments are both - * -1, this method returns the construction status of + * {@code -1}, this method returns the construction status of * a screen representation of the specified image in this toolkit. * Otherwise, this method returns the construction status of a * scaled representation of the image at the specified width * and height. *

            * This method does not cause the image to begin loading. - * An application must call prepareImage to force + * An application must call {@code prepareImage} to force * the loading of an image. *

            - * This method is called by the component's checkImage + * This method is called by the component's {@code checkImage} * methods. *

            * Information on the flags returned by this method can be found - * with the definition of the ImageObserver interface. + * with the definition of the {@code ImageObserver} interface. * @param image the image whose status is being checked. * @param width the width of the scaled version whose status is - * being checked, or -1. + * being checked, or {@code -1}. * @param height the height of the scaled version whose status - * is being checked, or -1. - * @param observer the ImageObserver object to be + * is being checked, or {@code -1}. + * @param observer the {@code ImageObserver} object to be * notified as the image is being prepared. * @return the bitwise inclusive OR of the - * ImageObserver flags for the + * {@code ImageObserver} flags for the * image data that is currently available. * @see java.awt.Toolkit#prepareImage(java.awt.Image, * int, int, java.awt.image.ImageObserver) @@ -840,17 +840,17 @@ int imagelength); /** - * Gets a PrintJob object which is the result of initiating + * Gets a {@code PrintJob} object which is the result of initiating * a print operation on the toolkit's platform. *

            * Each actual implementation of this method should first check if there * is a security manager installed. If there is, the method should call - * the security manager's checkPrintJobAccess method to + * the security manager's {@code checkPrintJobAccess} method to * ensure initiation of a print operation is allowed. If the default - * implementation of checkPrintJobAccess is used (that is, + * implementation of {@code checkPrintJobAccess} is used (that is, * that method is not overriden), then this results in a call to the - * security manager's checkPermission method with a - * RuntimePermission("queuePrintJob") permission. + * security manager's {@code checkPermission} method with a + * {@code RuntimePermission("queuePrintJob")} permission. * * @param frame the parent of the print dialog. May not be null. * @param jobtitle the title of the PrintJob. A null title is equivalent @@ -862,7 +862,7 @@ * takes JobAttributes and PageAttributes objects. This object * may be updated to reflect the user's job choices on exit. May * be null. - * @return a PrintJob object, or null if the + * @return a {@code PrintJob} object, or {@code null} if the * user cancelled the print job. * @throws NullPointerException if frame is null * @throws SecurityException if this thread is not allowed to initiate a @@ -876,17 +876,17 @@ Properties props); /** - * Gets a PrintJob object which is the result of initiating + * Gets a {@code PrintJob} object which is the result of initiating * a print operation on the toolkit's platform. *

            * Each actual implementation of this method should first check if there * is a security manager installed. If there is, the method should call - * the security manager's checkPrintJobAccess method to + * the security manager's {@code checkPrintJobAccess} method to * ensure initiation of a print operation is allowed. If the default - * implementation of checkPrintJobAccess is used (that is, + * implementation of {@code checkPrintJobAccess} is used (that is, * that method is not overriden), then this results in a call to the - * security manager's checkPermission method with a - * RuntimePermission("queuePrintJob") permission. + * security manager's {@code checkPermission} method with a + * {@code RuntimePermission("queuePrintJob")} permission. * * @param frame the parent of the print dialog. May not be null. * @param jobtitle the title of the PrintJob. A null title is equivalent @@ -900,7 +900,7 @@ * job. The attributes will be updated to reflect the user's * choices as outlined in the PageAttributes documentation. May be * null. - * @return a PrintJob object, or null if the + * @return a {@code PrintJob} object, or {@code null} if the * user cancelled the print job. * @throws NullPointerException if frame is null * @throws IllegalArgumentException if pageAttributes specifies differing @@ -952,20 +952,20 @@ * applications which use native clipboard facilities. *

            * In addition to any and all default formats text returned by the system - * Clipboard's getTransferData() method is available in the + * Clipboard's {@code getTransferData()} method is available in the * following flavors: *

              *
            • DataFlavor.stringFlavor
            • *
            • DataFlavor.plainTextFlavor (deprecated)
            • *
            - * As with java.awt.datatransfer.StringSelection, if the - * requested flavor is DataFlavor.plainTextFlavor, or an + * As with {@code java.awt.datatransfer.StringSelection}, if the + * requested flavor is {@code DataFlavor.plainTextFlavor}, or an * equivalent flavor, a Reader is returned. Note: The behavior of - * the system Clipboard's getTransferData() method for - * DataFlavor.plainTextFlavor, and equivalent DataFlavors, is - * inconsistent with the definition of DataFlavor.plainTextFlavor - * . Because of this, support for - * DataFlavor.plainTextFlavor, and equivalent flavors, is + * the system Clipboard's {@code getTransferData()} method for + * {@code DataFlavor.plainTextFlavor}, and equivalent DataFlavors, is + * inconsistent with the definition of {@code DataFlavor.plainTextFlavor}. + * Because of this, support for + * {@code DataFlavor.plainTextFlavor}, and equivalent flavors, is * deprecated. *

            * Each actual implementation of this method should first check if there @@ -990,37 +990,37 @@ /** * Gets the singleton instance of the system selection as a - * Clipboard object. This allows an application to read and + * {@code Clipboard} object. This allows an application to read and * modify the current, system-wide selection. *

            * An application is responsible for updating the system selection whenever * the user selects text, using either the mouse or the keyboard. * Typically, this is implemented by installing a - * FocusListener on all Components which support - * text selection, and, between FOCUS_GAINED and - * FOCUS_LOST events delivered to that Component, - * updating the system selection Clipboard when the selection - * changes inside the Component. Properly updating the system + * {@code FocusListener} on all {@code Component}s which support + * text selection, and, between {@code FOCUS_GAINED} and + * {@code FOCUS_LOST} events delivered to that {@code Component}, + * updating the system selection {@code Clipboard} when the selection + * changes inside the {@code Component}. Properly updating the system * selection ensures that a Java application will interact correctly with * native applications and other Java applications running simultaneously - * on the system. Note that java.awt.TextComponent and - * javax.swing.text.JTextComponent already adhere to this + * on the system. Note that {@code java.awt.TextComponent} and + * {@code javax.swing.text.JTextComponent} already adhere to this * policy. When using these classes, and their subclasses, developers need * not write any additional code. *

            - * Some platforms do not support a system selection Clipboard. - * On those platforms, this method will return null. In such a + * Some platforms do not support a system selection {@code Clipboard}. + * On those platforms, this method will return {@code null}. In such a * case, an application is absolved from its responsibility to update the - * system selection Clipboard as described above. + * system selection {@code Clipboard} as described above. *

            * Each actual implementation of this method should first check if there * is a security manager installed. If there is, the method should call * the security manager's {@link SecurityManager#checkPermission * checkPermission} method to check {@code AWTPermission("accessClipboard")}. * - * @return the system selection as a Clipboard, or - * null if the native platform does not support a - * system selection Clipboard + * @return the system selection as a {@code Clipboard}, or + * {@code null} if the native platform does not support a + * system selection {@code Clipboard} * @exception HeadlessException if GraphicsEnvironment.isHeadless() * returns true * @@ -1050,13 +1050,13 @@ * key for menu shortcuts. *

            * Menu shortcuts, which are embodied in the - * MenuShortcut class, are handled by the - * MenuBar class. + * {@code MenuShortcut} class, are handled by the + * {@code MenuBar} class. *

            - * By default, this method returns Event.CTRL_MASK. + * By default, this method returns {@code Event.CTRL_MASK}. * Toolkit implementations should override this method if the * Control key isn't the correct key for accelerators. - * @return the modifier mask on the Event class + * @return the modifier mask on the {@code Event} class * that is used for menu shortcuts on this toolkit. * @exception HeadlessException if GraphicsEnvironment.isHeadless() * returns true @@ -1083,7 +1083,7 @@ * @param keyCode the key code * @return {@code true} if the given key is currently in its "on" state; * otherwise {@code false} - * @exception java.lang.IllegalArgumentException if keyCode + * @exception java.lang.IllegalArgumentException if {@code keyCode} * is not one of the valid key codes * @exception java.lang.UnsupportedOperationException if the host system doesn't * allow getting the state of this key programmatically, or if the keyboard @@ -1119,7 +1119,7 @@ * * @param keyCode the key code * @param on the state of the key - * @exception java.lang.IllegalArgumentException if keyCode + * @exception java.lang.IllegalArgumentException if {@code keyCode} * is not one of the valid key codes * @exception java.lang.UnsupportedOperationException if the host system doesn't * allow setting the state of this key programmatically, or if the keyboard @@ -1163,7 +1163,7 @@ * @param cursor the image to display when the cursor is activated * @param hotSpot the X and Y of the large cursor's hot spot; the * hotSpot values must be less than the Dimension returned by - * getBestCursorSize + * {@code getBestCursorSize} * @param name a localized description of the cursor, for Java Accessibility use * @exception IndexOutOfBoundsException if the hotSpot values are outside * the bounds of the cursor @@ -1252,10 +1252,10 @@ /** * Returns whether Toolkit supports this state for - * Frames. This method tells whether the UI + * {@code Frame}s. This method tells whether the UI * concept of, say, maximization or iconification is * supported. It will always return false for "compound" states - * like Frame.ICONIFIED|Frame.MAXIMIZED_VERT. + * like {@code Frame.ICONIFIED|Frame.MAXIMIZED_VERT}. * In other words, the rule of thumb is that only queries with a * single frame state constant as an argument are meaningful. *

            Note that supporting a given concept is a platform- @@ -1280,11 +1280,11 @@ *

          * * @param state one of named frame state constants. - * @return true is this frame state is supported by - * this Toolkit implementation, false otherwise. + * @return {@code true} is this frame state is supported by + * this Toolkit implementation, {@code false} otherwise. * @exception HeadlessException - * if GraphicsEnvironment.isHeadless() - * returns true. + * if {@code GraphicsEnvironment.isHeadless()} + * returns {@code true}. * @see java.awt.Window#addWindowStateListener * @since 1.4 */ @@ -1431,7 +1431,7 @@ * {@link SecurityManager#checkPermission checkPermission} method * is called to check {@code AWTPermission("accessEventQueue")}. * - * @return the EventQueue object + * @return the {@code EventQueue} object * @throws SecurityException * if a security manager is set and it denies access to * the {@code EventQueue} @@ -1446,10 +1446,10 @@ } /** - * Gets the application's or applet's EventQueue + * Gets the application's or applet's {@code EventQueue} * instance, without checking access. For security reasons, - * this can only be called from a Toolkit subclass. - * @return the EventQueue object + * this can only be called from a {@code Toolkit} subclass. + * @return the {@code EventQueue} object */ protected abstract EventQueue getSystemEventQueueImpl(); @@ -1664,8 +1664,8 @@ * Returns whether the always-on-top mode is supported by this toolkit. * To detect whether the always-on-top mode is supported for a * particular Window, use {@link Window#isAlwaysOnTopSupported}. - * @return true, if current toolkit supports the always-on-top mode, - * otherwise returns false + * @return {@code true}, if current toolkit supports the always-on-top mode, + * otherwise returns {@code false} * @see Window#isAlwaysOnTopSupported * @see Window#setAlwaysOnTop(boolean) * @since 1.6 @@ -1677,12 +1677,12 @@ /** * Returns whether the given modality type is supported by this toolkit. If * a dialog with unsupported modality type is created, then - * Dialog.ModalityType.MODELESS is used instead. + * {@code Dialog.ModalityType.MODELESS} is used instead. * * @param modalityType modality type to be checked for support by this toolkit * - * @return true, if current toolkit supports given modality - * type, false otherwise + * @return {@code true}, if current toolkit supports given modality + * type, {@code false} otherwise * * @see java.awt.Dialog.ModalityType * @see java.awt.Dialog#getModalityType @@ -1695,12 +1695,12 @@ /** * Returns whether the given modal exclusion type is supported by this * toolkit. If an unsupported modal exclusion type property is set on a window, - * then Dialog.ModalExclusionType.NO_EXCLUDE is used instead. + * then {@code Dialog.ModalExclusionType.NO_EXCLUDE} is used instead. * * @param modalExclusionType modal exclusion type to be checked for support by this toolkit * - * @return true, if current toolkit supports given modal exclusion - * type, false otherwise + * @return {@code true}, if current toolkit supports given modal exclusion + * type, {@code false} otherwise * * @see java.awt.Dialog.ModalExclusionType * @see java.awt.Window#getModalExclusionType @@ -1739,16 +1739,16 @@ /** * Adds an AWTEventListener to receive all AWTEvents dispatched - * system-wide that conform to the given eventMask. + * system-wide that conform to the given {@code eventMask}. *

          - * First, if there is a security manager, its checkPermission + * First, if there is a security manager, its {@code checkPermission} * method is called with an - * AWTPermission("listenToAllAWTEvents") permission. + * {@code AWTPermission("listenToAllAWTEvents")} permission. * This may result in a SecurityException. *

          - * eventMask is a bitmask of event types to receive. + * {@code eventMask} is a bitmask of event types to receive. * It is constructed by bitwise OR-ing together the event masks - * defined in AWTEvent. + * defined in {@code AWTEvent}. *

          * Note: event listener use is not recommended for normal * application use, but are intended solely to support special @@ -1761,7 +1761,7 @@ * @param eventMask the bitmask of event types to receive * @throws SecurityException * if a security manager exists and its - * checkPermission method doesn't allow the operation. + * {@code checkPermission} method doesn't allow the operation. * @see #removeAWTEventListener * @see #getAWTEventListeners * @see SecurityManager#checkPermission @@ -1815,9 +1815,9 @@ /** * Removes an AWTEventListener from receiving dispatched AWTEvents. *

          - * First, if there is a security manager, its checkPermission + * First, if there is a security manager, its {@code checkPermission} * method is called with an - * AWTPermission("listenToAllAWTEvents") permission. + * {@code AWTPermission("listenToAllAWTEvents")} permission. * This may result in a SecurityException. *

          * Note: event listener use is not recommended for normal @@ -1830,7 +1830,7 @@ * @param listener the event listener. * @throws SecurityException * if a security manager exists and its - * checkPermission method doesn't allow the operation. + * {@code checkPermission} method doesn't allow the operation. * @see #addAWTEventListener * @see #getAWTEventListeners * @see SecurityManager#checkPermission @@ -1884,23 +1884,23 @@ return calls[ci]; } /** - * Returns an array of all the AWTEventListeners + * Returns an array of all the {@code AWTEventListener}s * registered on this toolkit. * If there is a security manager, its {@code checkPermission} * method is called with an * {@code AWTPermission("listenToAllAWTEvents")} permission. * This may result in a SecurityException. * Listeners can be returned - * within AWTEventListenerProxy objects, which also contain + * within {@code AWTEventListenerProxy} objects, which also contain * the event mask for the given listener. * Note that listener objects * added multiple times appear only once in the returned array. * - * @return all of the AWTEventListeners or an empty + * @return all of the {@code AWTEventListener}s or an empty * array if no listeners are currently registered * @throws SecurityException * if a security manager exists and its - * checkPermission method doesn't allow the operation. + * {@code checkPermission} method doesn't allow the operation. * @see #addAWTEventListener * @see #removeAWTEventListener * @see SecurityManager#checkPermission @@ -1932,7 +1932,7 @@ } /** - * Returns an array of all the AWTEventListeners + * Returns an array of all the {@code AWTEventListener}s * registered on this toolkit which listen to all of the event * types specified in the {@code eventMask} argument. * If there is a security manager, its {@code checkPermission} @@ -1940,19 +1940,19 @@ * {@code AWTPermission("listenToAllAWTEvents")} permission. * This may result in a SecurityException. * Listeners can be returned - * within AWTEventListenerProxy objects, which also contain + * within {@code AWTEventListenerProxy} objects, which also contain * the event mask for the given listener. * Note that listener objects * added multiple times appear only once in the returned array. * * @param eventMask the bitmask of event types to listen for - * @return all of the AWTEventListeners registered + * @return all of the {@code AWTEventListener}s registered * on this toolkit for the specified * event types, or an empty array if no such listeners * are currently registered * @throws SecurityException * if a security manager exists and its - * checkPermission method doesn't allow the operation. + * {@code checkPermission} method doesn't allow the operation. * @see #addAWTEventListener * @see #removeAWTEventListener * @see SecurityManager#checkPermission @@ -2167,9 +2167,9 @@ * The style field of the input method highlight is ignored. The map * returned is unmodifiable. * @param highlight input method highlight - * @return style attribute map, or null + * @return style attribute map, or {@code null} * @exception HeadlessException if - * GraphicsEnvironment.isHeadless returns true + * {@code GraphicsEnvironment.isHeadless} returns true * @see java.awt.GraphicsEnvironment#isHeadless * @since 1.3 */ --- old/src/java.desktop/share/classes/java/awt/Transparency.java 2015-10-04 22:53:07.769273068 +0400 +++ new/src/java.desktop/share/classes/java/awt/Transparency.java 2015-10-04 22:53:07.581273076 +0400 @@ -28,7 +28,7 @@ import java.lang.annotation.Native; /** - * The Transparency interface defines the common transparency + * The {@code Transparency} interface defines the common transparency * modes for implementing classes. */ public interface Transparency { @@ -53,8 +53,8 @@ @Native public static final int TRANSLUCENT = 3; /** - * Returns the type of this Transparency. - * @return the field type of this Transparency, which is + * Returns the type of this {@code Transparency}. + * @return the field type of this {@code Transparency}, which is * either OPAQUE, BITMASK or TRANSLUCENT. */ public int getTransparency(); --- old/src/java.desktop/share/classes/java/awt/TrayIcon.java 2015-10-04 22:53:08.293273044 +0400 +++ new/src/java.desktop/share/classes/java/awt/TrayIcon.java 2015-10-04 22:53:08.101273053 +0400 @@ -36,32 +36,32 @@ import java.security.AccessController; /** - * A TrayIcon object represents a tray icon that can be + * A {@code TrayIcon} object represents a tray icon that can be * added to the {@link SystemTray system tray}. A - * TrayIcon can have a tooltip (text), an image, a popup + * {@code TrayIcon} can have a tooltip (text), an image, a popup * menu, and a set of listeners associated with it. * - *

          A TrayIcon can generate various {@link MouseEvent + *

          A {@code TrayIcon} can generate various {@link MouseEvent * MouseEvents} and supports adding corresponding listeners to receive - * notification of these events. TrayIcon processes some + * notification of these events. {@code TrayIcon} processes some * of the events by itself. For example, by default, when the - * right-mouse click is performed on the TrayIcon it + * right-mouse click is performed on the {@code TrayIcon} it * displays the specified popup menu. When the mouse hovers - * over the TrayIcon the tooltip is displayed. + * over the {@code TrayIcon} the tooltip is displayed. * - *

          Note: When the MouseEvent is - * dispatched to its registered listeners its component - * property will be set to null. (See {@link + *

          Note: When the {@code MouseEvent} is + * dispatched to its registered listeners its {@code component} + * property will be set to {@code null}. (See {@link * java.awt.event.ComponentEvent#getComponent}) The - * source property will be set to this - * TrayIcon. (See {@link + * {@code source} property will be set to this + * {@code TrayIcon}. (See {@link * java.util.EventObject#getSource}) * *

          Note: A well-behaved {@link TrayIcon} implementation * will assign different gestures to showing a popup menu and * selecting a tray icon. * - *

          A TrayIcon can generate an {@link ActionEvent + *

          A {@code TrayIcon} can generate an {@link ActionEvent * ActionEvent}. On some platforms, this occurs when the user selects * the tray icon using either the mouse or keyboard. * @@ -71,7 +71,7 @@ * SecurityException. * *

          See the {@link SystemTray} class overview for an example on how - * to use the TrayIcon API. + * to use the {@code TrayIcon} API. * * @since 1.6 * @see SystemTray#add @@ -147,11 +147,11 @@ } /** - * Creates a TrayIcon with the specified image. + * Creates a {@code TrayIcon} with the specified image. * - * @param image the Image to be used - * @throws IllegalArgumentException if image is - * null + * @param image the {@code Image} to be used + * @throws IllegalArgumentException if {@code image} is + * {@code null} * @throws UnsupportedOperationException if the system tray isn't * supported by the current platform * @throws HeadlessException if @@ -173,14 +173,14 @@ } /** - * Creates a TrayIcon with the specified image and + * Creates a {@code TrayIcon} with the specified image and * tooltip text. * - * @param image the Image to be used + * @param image the {@code Image} to be used * @param tooltip the string to be used as tooltip text; if the - * value is null no tooltip is shown - * @throws IllegalArgumentException if image is - * null + * value is {@code null} no tooltip is shown + * @throws IllegalArgumentException if {@code image} is + * {@code null} * @throws UnsupportedOperationException if the system tray isn't * supported by the current platform * @throws HeadlessException if @@ -199,15 +199,15 @@ } /** - * Creates a TrayIcon with the specified image, + * Creates a {@code TrayIcon} with the specified image, * tooltip and popup menu. * - * @param image the Image to be used + * @param image the {@code Image} to be used * @param tooltip the string to be used as tooltip text; if the - * value is null no tooltip is shown + * value is {@code null} no tooltip is shown * @param popup the menu to be used for the tray icon's popup - * menu; if the value is null no popup menu is shown - * @throws IllegalArgumentException if image is null + * menu; if the value is {@code null} no popup menu is shown + * @throws IllegalArgumentException if {@code image} is {@code null} * @throws UnsupportedOperationException if the system tray isn't * supported by the current platform * @throws HeadlessException if @@ -229,7 +229,7 @@ } /** - * Sets the image for this TrayIcon. The previous + * Sets the image for this {@code TrayIcon}. The previous * tray icon image is discarded without calling the {@link * java.awt.Image#flush} method — you will need to call it * manually. @@ -243,8 +243,8 @@ *

          Calling this method with the same image that is currently * being used has no effect. * - * @throws NullPointerException if image is null - * @param image the non-null Image to be used + * @throws NullPointerException if {@code image} is {@code null} + * @param image the non-null {@code Image} to be used * @see #getImage * @see Image * @see SystemTray#add(TrayIcon) @@ -263,7 +263,7 @@ } /** - * Returns the current image used for this TrayIcon. + * Returns the current image used for this {@code TrayIcon}. * * @return the image * @see #setImage(Image) @@ -274,13 +274,13 @@ } /** - * Sets the popup menu for this TrayIcon. If - * popup is null, no popup menu will be - * associated with this TrayIcon. + * Sets the popup menu for this {@code TrayIcon}. If + * {@code popup} is {@code null}, no popup menu will be + * associated with this {@code TrayIcon}. * - *

          Note that this popup must not be added to any + *

          Note that this {@code popup} must not be added to any * parent before or after it is set on the tray icon. If you add - * it to some parent, the popup may be removed from + * it to some parent, the {@code popup} may be removed from * that parent. * *

          The {@code popup} can be set on one {@code TrayIcon} only. @@ -295,7 +295,7 @@ * * @throws IllegalArgumentException if the {@code popup} is already * set for another {@code TrayIcon} - * @param popup a PopupMenu or null to + * @param popup a {@code PopupMenu} or {@code null} to * remove any popup menu * @see #getPopupMenu */ @@ -318,9 +318,9 @@ } /** - * Returns the popup menu associated with this TrayIcon. + * Returns the popup menu associated with this {@code TrayIcon}. * - * @return the popup menu or null if none exists + * @return the popup menu or {@code null} if none exists * @see #setPopupMenu(PopupMenu) */ public PopupMenu getPopupMenu() { @@ -328,16 +328,16 @@ } /** - * Sets the tooltip string for this TrayIcon. The + * Sets the tooltip string for this {@code TrayIcon}. The * tooltip is displayed automatically when the mouse hovers over - * the icon. Setting the tooltip to null removes any + * the icon. Setting the tooltip to {@code null} removes any * tooltip text. * * When displayed, the tooltip string may be truncated on some platforms; * the number of characters that may be displayed is platform-dependent. * * @param tooltip the string for the tooltip; if the value is - * null no tooltip is shown + * {@code null} no tooltip is shown * @see #getToolTip */ public void setToolTip(String tooltip) { @@ -351,9 +351,9 @@ /** * Returns the tooltip string associated with this - * TrayIcon. + * {@code TrayIcon}. * - * @return the tooltip string or null if none exists + * @return the tooltip string or {@code null} if none exists * @see #setToolTip(String) */ public String getToolTip() { @@ -364,18 +364,18 @@ * Sets the auto-size property. Auto-size determines whether the * tray image is automatically sized to fit the space allocated * for the image on the tray. By default, the auto-size property - * is set to false. + * is set to {@code false}. * - *

          If auto-size is false, and the image size + *

          If auto-size is {@code false}, and the image size * doesn't match the tray icon space, the image is painted as-is * inside that space — if larger than the allocated space, it will * be cropped. * - *

          If auto-size is true, the image is stretched or shrunk to + *

          If auto-size is {@code true}, the image is stretched or shrunk to * fit the tray icon space. * - * @param autosize true to auto-size the image, - * false otherwise + * @param autosize {@code true} to auto-size the image, + * {@code false} otherwise * @see #isImageAutoSize */ public void setImageAutoSize(boolean autosize) { @@ -390,8 +390,8 @@ /** * Returns the value of the auto-size property. * - * @return true if the image will be auto-sized, - * false otherwise + * @return {@code true} if the image will be auto-sized, + * {@code false} otherwise * @see #setImageAutoSize(boolean) */ public boolean isImageAutoSize() { @@ -400,15 +400,15 @@ /** * Adds the specified mouse listener to receive mouse events from - * this TrayIcon. Calling this method with a - * null value has no effect. + * this {@code TrayIcon}. Calling this method with a + * {@code null} value has no effect. * *

          Note: The {@code MouseEvent}'s coordinates (received * from the {@code TrayIcon}) are relative to the screen, not the * {@code TrayIcon}. * - *

          Note: The MOUSE_ENTERED and - * MOUSE_EXITED mouse events are not supported. + *

          Note: The {@code MOUSE_ENTERED} and + * {@code MOUSE_EXITED} mouse events are not supported. *

          Refer to AWT Threading Issues for details on AWT's threading model. * @@ -427,7 +427,7 @@ /** * Removes the specified mouse listener. Calling this method with - * null or an invalid value has no effect. + * {@code null} or an invalid value has no effect. *

          Refer to AWT Threading Issues for details on AWT's threading model. * @@ -446,10 +446,10 @@ /** * Returns an array of all the mouse listeners - * registered on this TrayIcon. + * registered on this {@code TrayIcon}. * - * @return all of the MouseListeners registered on - * this TrayIcon or an empty array if no mouse + * @return all of the {@code MouseListeners} registered on + * this {@code TrayIcon} or an empty array if no mouse * listeners are currently registered * * @see #addMouseListener(MouseListener) @@ -462,14 +462,14 @@ /** * Adds the specified mouse listener to receive mouse-motion - * events from this TrayIcon. Calling this method - * with a null value has no effect. + * events from this {@code TrayIcon}. Calling this method + * with a {@code null} value has no effect. * *

          Note: The {@code MouseEvent}'s coordinates (received * from the {@code TrayIcon}) are relative to the screen, not the * {@code TrayIcon}. * - *

          Note: The MOUSE_DRAGGED mouse event is not supported. + *

          Note: The {@code MOUSE_DRAGGED} mouse event is not supported. *

          Refer to AWT Threading Issues for details on AWT's threading model. * @@ -488,7 +488,7 @@ /** * Removes the specified mouse-motion listener. Calling this method with - * null or an invalid value has no effect. + * {@code null} or an invalid value has no effect. *

          Refer to AWT Threading Issues for details on AWT's threading model. * @@ -507,10 +507,10 @@ /** * Returns an array of all the mouse-motion listeners - * registered on this TrayIcon. + * registered on this {@code TrayIcon}. * - * @return all of the MouseInputListeners registered on - * this TrayIcon or an empty array if no mouse + * @return all of the {@code MouseInputListeners} registered on + * this {@code TrayIcon} or an empty array if no mouse * listeners are currently registered * * @see #addMouseMotionListener(MouseMotionListener) @@ -524,7 +524,7 @@ /** * Returns the command name of the action event fired by this tray icon. * - * @return the action command name, or null if none exists + * @return the action command name, or {@code null} if none exists * @see #addActionListener(ActionListener) * @see #setActionCommand(String) */ @@ -535,7 +535,7 @@ /** * Sets the command name for the action event fired by this tray * icon. By default, this action command is set to - * null. + * {@code null}. * * @param command a string used to set the tray icon's * action command. @@ -549,12 +549,12 @@ /** * Adds the specified action listener to receive - * ActionEvents from this TrayIcon. + * {@code ActionEvent}s from this {@code TrayIcon}. * Action events usually occur when a user selects the tray icon, * using either the mouse or keyboard. The conditions in which * action events are generated are platform-dependent. * - *

          Calling this method with a null value has no + *

          Calling this method with a {@code null} value has no * effect. *

          Refer to AWT Threading Issues for details on AWT's threading model. @@ -574,7 +574,7 @@ /** * Removes the specified action listener. Calling this method with - * null or an invalid value has no effect. + * {@code null} or an invalid value has no effect. *

          Refer to AWT Threading Issues for details on AWT's threading model. * @@ -594,10 +594,10 @@ /** * Returns an array of all the action listeners - * registered on this TrayIcon. + * registered on this {@code TrayIcon}. * - * @return all of the ActionListeners registered on - * this TrayIcon or an empty array if no action + * @return all of the {@code ActionListeners} registered on + * this {@code TrayIcon} or an empty array if no action * listeners are currently registered * * @see #addActionListener(ActionListener) @@ -633,9 +633,9 @@ * disappear after a time or if the user clicks on it. Clicking * on the message may trigger an {@code ActionEvent}. * - *

          Either the caption or the text may be null, but an - * NullPointerException is thrown if both are - * null. + *

          Either the caption or the text may be {@code null}, but an + * {@code NullPointerException} is thrown if both are + * {@code null}. * * When displayed, the caption or text strings may be truncated on * some platforms; the number of characters that may be displayed is @@ -645,12 +645,12 @@ * showing a message. * * @param caption the caption displayed above the text, usually in - * bold; may be null + * bold; may be {@code null} * @param text the text displayed for the particular message; may be - * null + * {@code null} * @param messageType an enum indicating the message type - * @throws NullPointerException if both caption - * and text are null + * @throws NullPointerException if both {@code caption} + * and {@code text} are {@code null} */ public void displayMessage(String caption, String text, MessageType messageType) { if (caption == null && text == null) { --- old/src/java.desktop/share/classes/java/awt/Window.java 2015-10-04 22:53:08.849273019 +0400 +++ new/src/java.desktop/share/classes/java/awt/Window.java 2015-10-04 22:53:08.657273028 +0400 @@ -1930,7 +1930,7 @@ * with a class literal, such as * FooListener.class. * For example, you can query a - * {@code Window} {@code w} + * {@code Window w} * for its window listeners with the following code: * *

          WindowListener[] wls = (WindowListener[])(w.getListeners(WindowListener.class));
          --- old/src/java.desktop/share/classes/java/awt/color/ColorSpace.java 2015-10-04 22:53:09.429272993 +0400 +++ new/src/java.desktop/share/classes/java/awt/color/ColorSpace.java 2015-10-04 22:53:09.229273002 +0400 @@ -268,7 +268,7 @@ /** * Constructs a ColorSpace object given a color space type * and the number of components. - * @param type one of the ColorSpace type constants + * @param type one of the {@code ColorSpace} type constants * @param numcomponents the number of components in the color space */ protected ColorSpace (int type, int numcomponents) { @@ -283,7 +283,7 @@ * @param colorspace a specific color space identified by one of * the predefined class constants (e.g. CS_sRGB, CS_LINEAR_RGB, * CS_CIEXYZ, CS_GRAY, or CS_PYCC) - * @return the requested ColorSpace object + * @return the requested {@code ColorSpace} object */ // NOTE: This method may be called by privileged threads. // DO NOT INVOKE CLIENT CODE ON THIS THREAD! @@ -366,8 +366,8 @@ /** * Returns true if the ColorSpace is CS_sRGB. - * @return true if this is a CS_sRGB color - * space, false if it is not + * @return {@code true} if this is a {@code CS_sRGB} color + * space, {@code false} if it is not */ public boolean isCS_sRGB () { /* REMIND - make sure we know sRGBspace exists already */ @@ -381,10 +381,10 @@ * This method transforms color values using algorithms designed * to produce the best perceptual match between input and output * colors. In order to do colorimetric conversion of color values, - * you should use the toCIEXYZ + * you should use the {@code toCIEXYZ} * method of this color space to first convert from the input * color space to the CS_CIEXYZ color space, and then use the - * fromCIEXYZ method of the CS_sRGB color space to + * {@code fromCIEXYZ} method of the CS_sRGB color space to * convert from CS_CIEXYZ to the output color space. * See {@link #toCIEXYZ(float[]) toCIEXYZ} and * {@link #fromCIEXYZ(float[]) fromCIEXYZ} for further information. @@ -405,10 +405,10 @@ * This method transforms color values using algorithms designed * to produce the best perceptual match between input and output * colors. In order to do colorimetric conversion of color values, - * you should use the toCIEXYZ + * you should use the {@code toCIEXYZ} * method of the CS_sRGB color space to first convert from the input * color space to the CS_CIEXYZ color space, and then use the - * fromCIEXYZ method of this color space to + * {@code fromCIEXYZ} method of this color space to * convert from CS_CIEXYZ to the output color space. * See {@link #toCIEXYZ(float[]) toCIEXYZ} and * {@link #fromCIEXYZ(float[]) fromCIEXYZ} for further information. @@ -438,7 +438,7 @@ * A further transformation is necessary to compute the XYZ values * that would be measured using current CIE recommended practices. * See the {@link ICC_ColorSpace#toCIEXYZ(float[]) toCIEXYZ} method of - * ICC_ColorSpace for further information. + * {@code ICC_ColorSpace} for further information. * * @param colorvalue a float array with length of at least the number * of components in this ColorSpace @@ -466,7 +466,7 @@ * current CIE recommended practices, they must be converted to D50 * relative values before being passed to this method. * See the {@link ICC_ColorSpace#fromCIEXYZ(float[]) fromCIEXYZ} method of - * ICC_ColorSpace for further information. + * {@code ICC_ColorSpace} for further information. * * @param colorvalue a float array with length of at least 3 * @return a float array with length equal to the number of @@ -486,7 +486,7 @@ * primaries. * * @return the type constant that represents the type of this - * ColorSpace + * {@code ColorSpace} */ public int getType() { return type; @@ -494,7 +494,7 @@ /** * Returns the number of components of this ColorSpace. - * @return The number of components in this ColorSpace. + * @return The number of components in this {@code ColorSpace}. */ public int getNumComponents() { return numComponents; @@ -505,7 +505,7 @@ * * @param idx the component index * @return the name of the component at the specified index - * @throws IllegalArgumentException if idx is + * @throws IllegalArgumentException if {@code idx} is * less than 0 or greater than numComponents - 1 */ public String getName (int idx) { --- old/src/java.desktop/share/classes/java/awt/color/ICC_ColorSpace.java 2015-10-04 22:53:09.957272969 +0400 +++ new/src/java.desktop/share/classes/java/awt/color/ICC_ColorSpace.java 2015-10-04 22:53:09.769272978 +0400 @@ -142,10 +142,10 @@ * This method transforms color values using algorithms designed * to produce the best perceptual match between input and output * colors. In order to do colorimetric conversion of color values, - * you should use the toCIEXYZ + * you should use the {@code toCIEXYZ} * method of this color space to first convert from the input * color space to the CS_CIEXYZ color space, and then use the - * fromCIEXYZ method of the CS_sRGB color space to + * {@code fromCIEXYZ} method of the CS_sRGB color space to * convert from CS_CIEXYZ to the output color space. * See {@link #toCIEXYZ(float[]) toCIEXYZ} and * {@link #fromCIEXYZ(float[]) fromCIEXYZ} for further information. @@ -194,10 +194,10 @@ * This method transforms color values using algorithms designed * to produce the best perceptual match between input and output * colors. In order to do colorimetric conversion of color values, - * you should use the toCIEXYZ + * you should use the {@code toCIEXYZ} * method of the CS_sRGB color space to first convert from the input * color space to the CS_CIEXYZ color space, and then use the - * fromCIEXYZ method of this color space to + * {@code fromCIEXYZ} method of this color space to * convert from CS_CIEXYZ to the output color space. * See {@link #toCIEXYZ(float[]) toCIEXYZ} and * {@link #fromCIEXYZ(float[]) fromCIEXYZ} for further information. --- old/src/java.desktop/share/classes/java/awt/color/ICC_Profile.java 2015-10-04 22:53:10.501272945 +0400 +++ new/src/java.desktop/share/classes/java/awt/color/ICC_Profile.java 2015-10-04 22:53:10.309272954 +0400 @@ -766,8 +766,8 @@ * a byte array. Throws an IllegalArgumentException if the data * does not correspond to a valid ICC Profile. * @param data the specified ICC Profile data - * @return an ICC_Profile object corresponding to - * the data in the specified data array. + * @return an {@code ICC_Profile} object corresponding to + * the data in the specified {@code data} array. */ public static ICC_Profile getInstance(byte[] data) { ICC_Profile thisProfile; @@ -821,11 +821,11 @@ * * @param cspace the type of color space to create a profile for. * The specified type is one of the color - * space constants defined in the ColorSpace class. + * space constants defined in the {@code ColorSpace} class. * - * @return an ICC_Profile object corresponding to - * the specified ColorSpace type. - * @exception IllegalArgumentException If cspace is not + * @return an {@code ICC_Profile} object corresponding to + * the specified {@code ColorSpace} type. + * @exception IllegalArgumentException If {@code cspace} is not * one of the predefined color space types. */ public static ICC_Profile getInstance (int cspace) { @@ -956,7 +956,7 @@ * Profile data. * @param fileName The file that contains the data for the profile. * - * @return an ICC_Profile object corresponding to + * @return an {@code ICC_Profile} object corresponding to * the data in the specified file. * @exception IOException If the specified file cannot be opened or * an I/O error occurs while reading the file. @@ -997,8 +997,8 @@ * error occurs while reading the stream. * @param s The input stream from which to read the profile data. * - * @return an ICC_Profile object corresponding to the - * data in the specified InputStream. + * @return an {@code ICC_Profile} object corresponding to the + * data in the specified {@code InputStream}. * * @exception IOException If an I/O error occurs while reading the stream. * @@ -1213,7 +1213,7 @@ * characteristics of the space, e.g. the chromaticities of the * primaries. * @return One of the color space type constants defined in the - * ColorSpace class. + * {@code ColorSpace} class. */ public int getColorSpaceType() { if (deferralInfo != null) { @@ -1245,7 +1245,7 @@ * color space defined in the ICC specification. For a device * link profile, this could be any of the color space type constants. * @return One of the color space type constants defined in the - * ColorSpace class. + * {@code ColorSpace} class. */ public int getPCSType() { if (ProfileDeferralMgr.deferring) { @@ -1342,7 +1342,7 @@ * want to get. * * @return A byte array that contains the tagged data element. Returns - * null if the specified tag doesn't exist. + * {@code null} if the specified tag doesn't exist. * @see #setData(int, byte[]) */ public byte[] getData(int tagSignature) { @@ -1929,7 +1929,7 @@ /** * Version of the format of additional serialized data in the - * stream. Version 1 corresponds to Java 2 + * stream. Version {@code 1} corresponds to Java 2 * Platform, v1.3. * @since 1.3 * @serial @@ -1943,17 +1943,17 @@ * * @param s stream used for serialization. * @throws IOException - * thrown by ObjectInputStream. + * thrown by {@code ObjectInputStream}. * @serialData - * The String is the name of one of + * The {@code String} is the name of one of * CS_* constants defined in the * {@link ColorSpace} class if the profile object is a profile * for a predefined color space (for example - * "CS_sRGB"). The string is null + * {@code "CS_sRGB"}). The string is {@code null} * otherwise. *

          - * The byte[] array is the profile data for the - * profile. For predefined color spaces null is + * The {@code byte[]} array is the profile data for the + * profile. For predefined color spaces {@code null} is * written instead of the profile data. If in the future * versions of Java API new predefined color spaces will be * added, future versions of this class may choose to write @@ -2003,19 +2003,19 @@ * * @param s stream used for deserialization. * @throws IOException - * thrown by ObjectInputStream. + * thrown by {@code ObjectInputStream}. * @throws ClassNotFoundException - * thrown by ObjectInputStream. + * thrown by {@code ObjectInputStream}. * @serialData - * The String is the name of one of + * The {@code String} is the name of one of * CS_* constants defined in the * {@link ColorSpace} class if the profile object is a profile * for a predefined color space (for example - * "CS_sRGB"). The string is null + * {@code "CS_sRGB"}). The string is {@code null} * otherwise. *

          - * The byte[] array is the profile data for the - * profile. It will usually be null for the + * The {@code byte[]} array is the profile data for the + * profile. It will usually be {@code null} for the * predefined profiles. *

          * If the string is recognized as a constant name for --- old/src/java.desktop/share/classes/java/awt/color/ICC_ProfileRGB.java 2015-10-04 22:53:11.061272920 +0400 +++ new/src/java.desktop/share/classes/java/awt/color/ICC_ProfileRGB.java 2015-10-04 22:53:10.873272928 +0400 @@ -45,13 +45,13 @@ * that represents profiles which meet the following criteria: *

            *
          • The profile's color space type is RGB.
          • - *
          • The profile includes the redColorantTag, - * greenColorantTag, blueColorantTag, - * redTRCTag, greenTRCTag, - * blueTRCTag, and mediaWhitePointTag tags.
          • + *
          • The profile includes the {@code redColorantTag}, + * {@code greenColorantTag}, {@code blueColorantTag}, + * {@code redTRCTag}, {@code greenTRCTag}, + * {@code blueTRCTag}, and {@code mediaWhitePointTag} tags.
          • *
          - * The ICC_Profile getInstance method will - * return an ICC_ProfileRGB object when these conditions are met. + * The {@code ICC_Profile getInstance} method will + * return an {@code ICC_ProfileRGB} object when these conditions are met. * Three-component, matrix-based input profiles and RGB display profiles are * examples of this type of profile. *

          @@ -109,7 +109,7 @@ /** - * Constructs an new ICC_ProfileRGB from a CMM ID. + * Constructs an new {@code ICC_ProfileRGB} from a CMM ID. * * @param p The CMM ID for the profile. * @@ -119,7 +119,7 @@ } /** - * Constructs a new ICC_ProfileRGB from a + * Constructs a new {@code ICC_ProfileRGB} from a * ProfileDeferralInfo object. * * @param pdi @@ -131,10 +131,10 @@ /** * Returns an array that contains the components of the profile's - * mediaWhitePointTag. + * {@code mediaWhitePointTag}. * - * @return A 3-element float array containing the x, y, - * and z components of the profile's mediaWhitePointTag. + * @return A 3-element {@code float} array containing the x, y, + * and z components of the profile's {@code mediaWhitePointTag}. */ public float[] getMediaWhitePoint() { return super.getMediaWhitePoint(); @@ -142,17 +142,17 @@ /** - * Returns a 3x3 float matrix constructed from the - * X, Y, and Z components of the profile's redColorantTag, - * greenColorantTag, and blueColorantTag. + * Returns a 3x3 {@code float} matrix constructed from the + * X, Y, and Z components of the profile's {@code redColorantTag}, + * {@code greenColorantTag}, and {@code blueColorantTag}. *

          * This matrix can be used for color transforms in the forward * direction of the profile--from the profile color space * to the CIEXYZ PCS. * - * @return A 3x3 float array that contains the x, y, and z - * components of the profile's redColorantTag, - * greenColorantTag, and blueColorantTag. + * @return A 3x3 {@code float} array that contains the x, y, and z + * components of the profile's {@code redColorantTag}, + * {@code greenColorantTag}, and {@code blueColorantTag}. */ public float[][] getMatrix() { float[][] theMatrix = new float[3][3]; @@ -191,7 +191,7 @@ *   linearComponent = deviceComponent * * - * @param component The ICC_ProfileRGB constant that + * @param component The {@code ICC_ProfileRGB} constant that * represents the component whose TRC you want to retrieve * @return the gamma value as a float. * @exception ProfileDataException if the profile does not specify @@ -225,8 +225,8 @@ /** * Returns the TRC for a particular component as an array. - * Component must be REDCOMPONENT, - * GREENCOMPONENT, or BLUECOMPONENT. + * Component must be {@code REDCOMPONENT}, + * {@code GREENCOMPONENT}, or {@code BLUECOMPONENT}. * Otherwise the returned array * represents a lookup table where the input component value * is conceptually in the range [0.0, 1.0]. Value 0.0 maps @@ -236,18 +236,18 @@ * array. Output values also map linearly to the range [0.0, 1.0]. * Value 0.0 is represented by an array value of 0x0000 and * value 1.0 by 0xFFFF. In other words, the values are really unsigned - * short values even though they are returned in a - * short array. + * {@code short} values even though they are returned in a + * {@code short} array. * * If the profile has specified the corresponding TRC * as linear (gamma = 1.0) or as a simple gamma value, this method * throws an exception. In this case, the {@link #getGamma(int)} * method should be used to get the gamma value. * - * @param component The ICC_ProfileRGB constant that + * @param component The {@code ICC_ProfileRGB} constant that * represents the component whose TRC you want to retrieve: - * REDCOMPONENT, GREENCOMPONENT, or - * BLUECOMPONENT. + * {@code REDCOMPONENT}, {@code GREENCOMPONENT}, or + * {@code BLUECOMPONENT}. * * @return a short array representing the TRC. * @exception ProfileDataException if the profile does not specify --- old/src/java.desktop/share/classes/java/awt/dnd/Autoscroll.java 2015-10-04 22:53:11.585272896 +0400 +++ new/src/java.desktop/share/classes/java/awt/dnd/Autoscroll.java 2015-10-04 22:53:11.397272905 +0400 @@ -37,17 +37,17 @@ * and institute a scroll operation in order to make obscured region(s) * visible to the user. This feature is known as autoscrolling. *

          - * If a GUI control is both an active DropTarget + * If a GUI control is both an active {@code DropTarget} * and is also scrollable, it * can receive notifications of autoscrolling gestures by the user from * the DnD system by implementing this interface. *

          * An autoscrolling gesture is initiated by the user by keeping the drag - * cursor motionless with a border region of the Component, + * cursor motionless with a border region of the {@code Component}, * referred to as * the "autoscrolling region", for a predefined period of time, this will - * result in repeated scroll requests to the Component - * until the drag Cursor resumes its motion. + * result in repeated scroll requests to the {@code Component} + * until the drag {@code Cursor} resumes its motion. * * @since 1.2 */ @@ -55,13 +55,13 @@ public interface Autoscroll { /** - * This method returns the Insets describing + * This method returns the {@code Insets} describing * the autoscrolling region or border relative * to the geometry of the implementing Component. *

          - * This value is read once by the DropTarget - * upon entry of the drag Cursor - * into the associated Component. + * This value is read once by the {@code DropTarget} + * upon entry of the drag {@code Cursor} + * into the associated {@code Component}. * * @return the Insets */ @@ -69,9 +69,9 @@ public Insets getAutoscrollInsets(); /** - * notify the Component to autoscroll + * notify the {@code Component} to autoscroll * - * @param cursorLocn A Point indicating the + * @param cursorLocn A {@code Point} indicating the * location of the cursor that triggered this operation. */ --- old/src/java.desktop/share/classes/java/awt/dnd/DnDConstants.java 2015-10-04 22:53:12.105272873 +0400 +++ new/src/java.desktop/share/classes/java/awt/dnd/DnDConstants.java 2015-10-04 22:53:11.917272881 +0400 @@ -37,28 +37,28 @@ private DnDConstants() {} // define null private constructor. /** - * An int representing no action. + * An {@code int} representing no action. */ @Native public static final int ACTION_NONE = 0x0; /** - * An int representing a "copy" action. + * An {@code int} representing a "copy" action. */ @Native public static final int ACTION_COPY = 0x1; /** - * An int representing a "move" action. + * An {@code int} representing a "move" action. */ @Native public static final int ACTION_MOVE = 0x2; /** - * An int representing a "copy" or - * "move" action. + * An {@code int} representing a "copy" or + * "move" action. */ @Native public static final int ACTION_COPY_OR_MOVE = ACTION_COPY | ACTION_MOVE; /** - * An int representing a "link" action. + * An {@code int} representing a "link" action. * * The link verb is found in many, if not all native DnD platforms, and the * actual interpretation of LINK semantics is both platform @@ -76,7 +76,7 @@ @Native public static final int ACTION_LINK = 0x40000000; /** - * An int representing a "reference" + * An {@code int} representing a "reference" * action (synonym for ACTION_LINK). */ @Native public static final int ACTION_REFERENCE = ACTION_LINK; --- old/src/java.desktop/share/classes/java/awt/dnd/DnDEventMulticaster.java 2015-10-04 22:53:12.645272849 +0400 +++ new/src/java.desktop/share/classes/java/awt/dnd/DnDEventMulticaster.java 2015-10-04 22:53:12.457272857 +0400 @@ -31,7 +31,7 @@ /** - * A class extends AWTEventMulticaster to implement efficient and + * A class extends {@code AWTEventMulticaster} to implement efficient and * thread-safe multi-cast event dispatching for the drag-and-drop events defined * in the java.awt.dnd package. * @@ -44,9 +44,9 @@ /** * Creates an event multicaster instance which chains listener-a - * with listener-b. Input parameters a and b - * should not be null, though implementations may vary in - * choosing whether or not to throw NullPointerException + * with listener-b. Input parameters {@code a} and {@code b} + * should not be {@code null}, though implementations may vary in + * choosing whether or not to throw {@code NullPointerException} * in that case. * * @param a listener-a @@ -57,10 +57,10 @@ } /** - * Handles the DragSourceDragEvent by invoking - * dragEnter on listener-a and listener-b. + * Handles the {@code DragSourceDragEvent} by invoking + * {@code dragEnter} on listener-a and listener-b. * - * @param dsde the DragSourceDragEvent + * @param dsde the {@code DragSourceDragEvent} */ public void dragEnter(DragSourceDragEvent dsde) { ((DragSourceListener)a).dragEnter(dsde); @@ -68,10 +68,10 @@ } /** - * Handles the DragSourceDragEvent by invoking - * dragOver on listener-a and listener-b. + * Handles the {@code DragSourceDragEvent} by invoking + * {@code dragOver} on listener-a and listener-b. * - * @param dsde the DragSourceDragEvent + * @param dsde the {@code DragSourceDragEvent} */ public void dragOver(DragSourceDragEvent dsde) { ((DragSourceListener)a).dragOver(dsde); @@ -79,10 +79,10 @@ } /** - * Handles the DragSourceDragEvent by invoking - * dropActionChanged on listener-a and listener-b. + * Handles the {@code DragSourceDragEvent} by invoking + * {@code dropActionChanged} on listener-a and listener-b. * - * @param dsde the DragSourceDragEvent + * @param dsde the {@code DragSourceDragEvent} */ public void dropActionChanged(DragSourceDragEvent dsde) { ((DragSourceListener)a).dropActionChanged(dsde); @@ -90,10 +90,10 @@ } /** - * Handles the DragSourceEvent by invoking - * dragExit on listener-a and listener-b. + * Handles the {@code DragSourceEvent} by invoking + * {@code dragExit} on listener-a and listener-b. * - * @param dse the DragSourceEvent + * @param dse the {@code DragSourceEvent} */ public void dragExit(DragSourceEvent dse) { ((DragSourceListener)a).dragExit(dse); @@ -101,10 +101,10 @@ } /** - * Handles the DragSourceDropEvent by invoking - * dragDropEnd on listener-a and listener-b. + * Handles the {@code DragSourceDropEvent} by invoking + * {@code dragDropEnd} on listener-a and listener-b. * - * @param dsde the DragSourceDropEvent + * @param dsde the {@code DragSourceDropEvent} */ public void dragDropEnd(DragSourceDropEvent dsde) { ((DragSourceListener)a).dragDropEnd(dsde); @@ -112,10 +112,10 @@ } /** - * Handles the DragSourceDragEvent by invoking - * dragMouseMoved on listener-a and listener-b. + * Handles the {@code DragSourceDragEvent} by invoking + * {@code dragMouseMoved} on listener-a and listener-b. * - * @param dsde the DragSourceDragEvent + * @param dsde the {@code DragSourceDragEvent} */ public void dragMouseMoved(DragSourceDragEvent dsde) { ((DragSourceMotionListener)a).dragMouseMoved(dsde); --- old/src/java.desktop/share/classes/java/awt/dnd/DragGestureEvent.java 2015-10-04 22:53:13.173272825 +0400 +++ new/src/java.desktop/share/classes/java/awt/dnd/DragGestureEvent.java 2015-10-04 22:53:12.981272834 +0400 @@ -49,12 +49,12 @@ /** - * A DragGestureEvent is passed - * to DragGestureListener's + * A {@code DragGestureEvent} is passed + * to {@code DragGestureListener}'s * dragGestureRecognized() method - * when a particular DragGestureRecognizer detects that a + * when a particular {@code DragGestureRecognizer} detects that a * platform dependent drag initiating gesture has occurred - * on the Component that it is tracking. + * on the {@code Component} that it is tracking. * * The {@code action} field of any {@code DragGestureEvent} instance should take one of the following * values: @@ -76,19 +76,19 @@ private static final long serialVersionUID = 9080172649166731306L; /** - * Constructs a DragGestureEvent object given by the - * DragGestureRecognizer instance firing this event, + * Constructs a {@code DragGestureEvent} object given by the + * {@code DragGestureRecognizer} instance firing this event, * an {@code act} parameter representing * the user's preferred action, an {@code ori} parameter * indicating the origin of the drag, and a {@code List} of * events that comprise the gesture({@code evs} parameter). * - * @param dgr The DragGestureRecognizer firing this event + * @param dgr The {@code DragGestureRecognizer} firing this event * @param act The user's preferred action. * For information on allowable values, see * the class description for {@link DragGestureEvent} * @param ori The origin of the drag - * @param evs The List of events that comprise the gesture + * @param evs The {@code List} of events that comprise the gesture * * @throws IllegalArgumentException if any parameter equals {@code null} * @throws IllegalArgumentException if the act parameter does not comply with @@ -123,9 +123,9 @@ } /** - * Returns the source as a DragGestureRecognizer. + * Returns the source as a {@code DragGestureRecognizer}. * - * @return the source as a DragGestureRecognizer + * @return the source as a {@code DragGestureRecognizer} */ public DragGestureRecognizer getSourceAsDragGestureRecognizer() { @@ -133,8 +133,8 @@ } /** - * Returns the Component associated - * with this DragGestureEvent. + * Returns the {@code Component} associated + * with this {@code DragGestureEvent}. * * @return the Component */ @@ -142,16 +142,16 @@ public Component getComponent() { return component; } /** - * Returns the DragSource. + * Returns the {@code DragSource}. * - * @return the DragSource + * @return the {@code DragSource} */ public DragSource getDragSource() { return dragSource; } /** - * Returns a Point in the coordinates - * of the Component over which the drag originated. + * Returns a {@code Point} in the coordinates + * of the {@code Component} over which the drag originated. * * @return the Point where the drag originated in Component coords. */ @@ -161,7 +161,7 @@ } /** - * Returns an Iterator for the events + * Returns an {@code Iterator} for the events * comprising the gesture. * * @return an Iterator for the events comprising the gesture @@ -170,7 +170,7 @@ public Iterator iterator() { return events.iterator(); } /** - * Returns an Object array of the + * Returns an {@code Object} array of the * events comprising the drag gesture. * * @return an array of the events comprising the gesture @@ -181,7 +181,7 @@ /** * Returns an array of the events comprising the drag gesture. * - * @param array the array of EventObject sub(types) + * @param array the array of {@code EventObject} sub(types) * * @return an array of the events comprising the gesture */ @@ -189,7 +189,7 @@ public Object[] toArray(Object[] array) { return events.toArray(array); } /** - * Returns an int representing the + * Returns an {@code int} representing the * action selected by the user. * * @return the action selected by the user @@ -208,22 +208,22 @@ } /** - * Starts the drag operation given the Cursor for this drag - * operation and the Transferable representing the source data + * Starts the drag operation given the {@code Cursor} for this drag + * operation and the {@code Transferable} representing the source data * for this drag operation. *
          - * If a null Cursor is specified no exception will + * If a {@code null Cursor} is specified no exception will * be thrown and default drag cursors will be used instead. *
          - * If a null Transferable is specified - * NullPointerException will be thrown. + * If a {@code null Transferable} is specified + * {@code NullPointerException} will be thrown. * @param dragCursor The initial {@code Cursor} for this drag operation * or {@code null} for the default cursor handling; * see * DragSourceContext * for more details on the cursor handling mechanism * during drag and drop - * @param transferable The Transferable representing the source + * @param transferable The {@code Transferable} representing the source * data for this drag operation. * * @throws InvalidDnDOperationException if the Drag and Drop @@ -239,9 +239,9 @@ } /** - * Starts the drag given the initial Cursor to display, - * the Transferable object, - * and the DragSourceListener to use. + * Starts the drag given the initial {@code Cursor} to display, + * the {@code Transferable} object, + * and the {@code DragSourceListener} to use. * * @param dragCursor The initial {@code Cursor} for this drag operation * or {@code null} for the default cursor handling; @@ -264,11 +264,11 @@ } /** - * Start the drag given the initial Cursor to display, - * a drag Image, the offset of - * the Image, - * the Transferable object, and - * the DragSourceListener to use. + * Start the drag given the initial {@code Cursor} to display, + * a drag {@code Image}, the offset of + * the {@code Image}, + * the {@code Transferable} object, and + * the {@code DragSourceListener} to use. * * @param dragCursor The initial {@code Cursor} for this drag operation * or {@code null} for the default cursor handling; @@ -293,16 +293,16 @@ } /** - * Serializes this DragGestureEvent. Performs default - * serialization and then writes out this object's List of - * gesture events if and only if the List can be serialized. - * If not, null is written instead. In this case, a - * DragGestureEvent created from the resulting deserialized - * stream will contain an empty List of gesture events. + * Serializes this {@code DragGestureEvent}. Performs default + * serialization and then writes out this object's {@code List} of + * gesture events if and only if the {@code List} can be serialized. + * If not, {@code null} is written instead. In this case, a + * {@code DragGestureEvent} created from the resulting deserialized + * stream will contain an empty {@code List} of gesture events. * * @serialData The default serializable fields, in alphabetical order, - * followed by either a List instance, or - * null. + * followed by either a {@code List} instance, or + * {@code null}. * @since 1.4 */ private void writeObject(ObjectOutputStream s) throws IOException { @@ -312,16 +312,16 @@ } /** - * Deserializes this DragGestureEvent. This method first - * performs default deserialization for all non-transient + * Deserializes this {@code DragGestureEvent}. This method first + * performs default deserialization for all non-{@code transient} * fields. An attempt is then made to deserialize this object's - * List of gesture events as well. This is first attempted - * by deserializing the field events, because, in releases - * prior to 1.4, a non-transient field of this name stored the - * List of gesture events. If this fails, the next object in - * the stream is used instead. If the resulting List is - * null, this object's List of gesture events - * is set to an empty List. + * {@code List} of gesture events as well. This is first attempted + * by deserializing the field {@code events}, because, in releases + * prior to 1.4, a non-{@code transient} field of this name stored the + * {@code List} of gesture events. If this fails, the next object in + * the stream is used instead. If the resulting {@code List} is + * {@code null}, this object's {@code List} of gesture events + * is set to an empty {@code List}. * * @since 1.4 */ --- old/src/java.desktop/share/classes/java/awt/dnd/DragGestureListener.java 2015-10-04 22:53:13.701272801 +0400 +++ new/src/java.desktop/share/classes/java/awt/dnd/DragGestureListener.java 2015-10-04 22:53:13.509272810 +0400 @@ -56,7 +56,7 @@ * * @see java.awt.dnd.DragGestureRecognizer * @see java.awt.dnd.DragGestureEvent - * @param dge the DragGestureEvent describing + * @param dge the {@code DragGestureEvent} describing * the gesture that has just occurred */ --- old/src/java.desktop/share/classes/java/awt/dnd/DragGestureRecognizer.java 2015-10-04 22:53:14.237272777 +0400 +++ new/src/java.desktop/share/classes/java/awt/dnd/DragGestureRecognizer.java 2015-10-04 22:53:14.049272786 +0400 @@ -40,41 +40,41 @@ import java.io.Serializable; /** - * The DragGestureRecognizer is an + * The {@code DragGestureRecognizer} is an * abstract base class for the specification * of a platform-dependent listener that can be associated with a particular - * Component in order to + * {@code Component} in order to * identify platform-dependent drag initiating gestures. *

          - * The appropriate DragGestureRecognizer + * The appropriate {@code DragGestureRecognizer} * subclass instance is obtained from the * {@link DragSource} associated with - * a particular Component, or from the Toolkit object via its + * a particular {@code Component}, or from the {@code Toolkit} object via its * {@link java.awt.Toolkit#createDragGestureRecognizer createDragGestureRecognizer()} * method. *

          - * Once the DragGestureRecognizer - * is associated with a particular Component + * Once the {@code DragGestureRecognizer} + * is associated with a particular {@code Component} * it will register the appropriate listener interfaces on that - * Component - * in order to track the input events delivered to the Component. + * {@code Component} + * in order to track the input events delivered to the {@code Component}. *

          - * Once the DragGestureRecognizer identifies a sequence of events - * on the Component as a drag initiating gesture, it will notify - * its unicast DragGestureListener by + * Once the {@code DragGestureRecognizer} identifies a sequence of events + * on the {@code Component} as a drag initiating gesture, it will notify + * its unicast {@code DragGestureListener} by * invoking its * {@link java.awt.dnd.DragGestureListener#dragGestureRecognized gestureRecognized()} * method. *

          - * When a concrete DragGestureRecognizer + * When a concrete {@code DragGestureRecognizer} * instance detects a drag initiating - * gesture on the Component it is associated with, + * gesture on the {@code Component} it is associated with, * it fires a {@link DragGestureEvent} to - * the DragGestureListener registered on - * its unicast event source for DragGestureListener - * events. This DragGestureListener is responsible + * the {@code DragGestureListener} registered on + * its unicast event source for {@code DragGestureListener} + * events. This {@code DragGestureListener} is responsible * for causing the associated - * DragSource to start the Drag and Drop operation (if + * {@code DragSource} to start the Drag and Drop operation (if * appropriate). * * @author Laurence P. G. Cable @@ -88,36 +88,36 @@ private static final long serialVersionUID = 8996673345831063337L; /** - * Construct a new DragGestureRecognizer - * given the DragSource to be used - * in this Drag and Drop operation, the Component - * this DragGestureRecognizer should "observe" + * Construct a new {@code DragGestureRecognizer} + * given the {@code DragSource} to be used + * in this Drag and Drop operation, the {@code Component} + * this {@code DragGestureRecognizer} should "observe" * for drag initiating gestures, the action(s) supported * for this Drag and Drop operation, and the - * DragGestureListener to notify + * {@code DragGestureListener} to notify * once a drag initiating gesture has been detected. * - * @param ds the DragSource this - * DragGestureRecognizer + * @param ds the {@code DragSource} this + * {@code DragGestureRecognizer} * will use to process the Drag and Drop operation * - * @param c the Component - * this DragGestureRecognizer + * @param c the {@code Component} + * this {@code DragGestureRecognizer} * should "observe" the event stream to, * in order to detect a drag initiating gesture. - * If this value is null, the - * DragGestureRecognizer - * is not associated with any Component. + * If this value is {@code null}, the + * {@code DragGestureRecognizer} + * is not associated with any {@code Component}. * * @param sa the set (logical OR) of the - * DnDConstants + * {@code DnDConstants} * that this Drag and Drop operation will support * - * @param dgl the DragGestureRecognizer + * @param dgl the {@code DragGestureRecognizer} * to notify when a drag gesture is detected * * @throws IllegalArgumentException - * if ds is null. + * if ds is {@code null}. */ protected DragGestureRecognizer(DragSource ds, Component c, int sa, DragGestureListener dgl) { @@ -137,30 +137,30 @@ } /** - * Construct a new DragGestureRecognizer - * given the DragSource to be used in this + * Construct a new {@code DragGestureRecognizer} + * given the {@code DragSource} to be used in this * Drag and Drop - * operation, the Component this - * DragGestureRecognizer should "observe" + * operation, the {@code Component} this + * {@code DragGestureRecognizer} should "observe" * for drag initiating gestures, and the action(s) * supported for this Drag and Drop operation. * - * @param ds the DragSource this - * DragGestureRecognizer will use to + * @param ds the {@code DragSource} this + * {@code DragGestureRecognizer} will use to * process the Drag and Drop operation * - * @param c the Component this - * DragGestureRecognizer should "observe" the event + * @param c the {@code Component} this + * {@code DragGestureRecognizer} should "observe" the event * stream to, in order to detect a drag initiating gesture. - * If this value is null, the - * DragGestureRecognizer - * is not associated with any Component. + * If this value is {@code null}, the + * {@code DragGestureRecognizer} + * is not associated with any {@code Component}. * - * @param sa the set (logical OR) of the DnDConstants + * @param sa the set (logical OR) of the {@code DnDConstants} * that this Drag and Drop operation will support * * @throws IllegalArgumentException - * if ds is null. + * if ds is {@code null}. */ protected DragGestureRecognizer(DragSource ds, Component c, int sa) { @@ -168,27 +168,27 @@ } /** - * Construct a new DragGestureRecognizer - * given the DragSource to be used + * Construct a new {@code DragGestureRecognizer} + * given the {@code DragSource} to be used * in this Drag and Drop operation, and - * the Component this - * DragGestureRecognizer + * the {@code Component} this + * {@code DragGestureRecognizer} * should "observe" for drag initiating gestures. * - * @param ds the DragSource this - * DragGestureRecognizer + * @param ds the {@code DragSource} this + * {@code DragGestureRecognizer} * will use to process the Drag and Drop operation * - * @param c the Component - * this DragGestureRecognizer + * @param c the {@code Component} + * this {@code DragGestureRecognizer} * should "observe" the event stream to, * in order to detect a drag initiating gesture. - * If this value is null, - * the DragGestureRecognizer - * is not associated with any Component. + * If this value is {@code null}, + * the {@code DragGestureRecognizer} + * is not associated with any {@code Component}. * * @throws IllegalArgumentException - * if ds is null. + * if ds is {@code null}. */ protected DragGestureRecognizer(DragSource ds, Component c) { @@ -196,16 +196,16 @@ } /** - * Construct a new DragGestureRecognizer - * given the DragSource to be used in this + * Construct a new {@code DragGestureRecognizer} + * given the {@code DragSource} to be used in this * Drag and Drop operation. * - * @param ds the DragSource this - * DragGestureRecognizer will + * @param ds the {@code DragSource} this + * {@code DragGestureRecognizer} will * use to process the Drag and Drop operation * * @throws IllegalArgumentException - * if ds is null. + * if ds is {@code null}. */ protected DragGestureRecognizer(DragSource ds) { @@ -229,8 +229,8 @@ protected abstract void unregisterListeners(); /** - * This method returns the DragSource - * this DragGestureRecognizer + * This method returns the {@code DragSource} + * this {@code DragGestureRecognizer} * will use in order to process the Drag and Drop * operation. * @@ -240,9 +240,9 @@ public DragSource getDragSource() { return dragSource; } /** - * This method returns the Component + * This method returns the {@code Component} * that is to be "observed" by the - * DragGestureRecognizer + * {@code DragGestureRecognizer} * for drag initiating gestures. * * @return The Component this DragGestureRecognizer @@ -257,7 +257,7 @@ * registerListeners() and unregisterListeners() are called as a side * effect as appropriate. * - * @param c The Component or null + * @param c The {@code Component} or {@code null} */ public synchronized void setComponent(Component c) { @@ -309,13 +309,13 @@ public void resetRecognizer() { events.clear(); } /** - * Register a new DragGestureListener. + * Register a new {@code DragGestureListener}. * - * @param dgl the DragGestureListener to register - * with this DragGestureRecognizer. + * @param dgl the {@code DragGestureListener} to register + * with this {@code DragGestureRecognizer}. * * @throws java.util.TooManyListenersException if a - * DragGestureListener has already been added. + * {@code DragGestureListener} has already been added. */ public synchronized void addDragGestureListener(DragGestureListener dgl) throws TooManyListenersException { @@ -331,11 +331,11 @@ /** * unregister the current DragGestureListener * - * @param dgl the DragGestureListener to unregister - * from this DragGestureRecognizer + * @param dgl the {@code DragGestureListener} to unregister + * from this {@code DragGestureRecognizer} * * @throws IllegalArgumentException if - * dgl is not (equal to) the currently registered DragGestureListener. + * dgl is not (equal to) the currently registered {@code DragGestureListener}. */ public synchronized void removeDragGestureListener(DragGestureListener dgl) { @@ -370,16 +370,16 @@ * all Events that are recognized as part of the series of Events that go * to comprise a Drag and Drop initiating gesture via this API. *

          - * This method is used by a DragGestureRecognizer - * implementation to add an InputEvent + * This method is used by a {@code DragGestureRecognizer} + * implementation to add an {@code InputEvent} * subclass (that it believes is one in a series * of events that comprise a Drag and Drop operation) * to the array of events that this - * DragGestureRecognizer maintains internally. + * {@code DragGestureRecognizer} maintains internally. * - * @param awtie the InputEvent - * to add to this DragGestureRecognizer's - * internal array of events. Note that null + * @param awtie the {@code InputEvent} + * to add to this {@code DragGestureRecognizer}'s + * internal array of events. Note that {@code null} * is not a valid value, and will be ignored. */ @@ -388,14 +388,14 @@ } /** - * Serializes this DragGestureRecognizer. This method first + * Serializes this {@code DragGestureRecognizer}. This method first * performs default serialization. Then, this object's - * DragGestureListener is written out if and only if it can be - * serialized. If not, null is written instead. + * {@code DragGestureListener} is written out if and only if it can be + * serialized. If not, {@code null} is written instead. * * @serialData The default serializable fields, in alphabetical order, - * followed by either a DragGestureListener, or - * null. + * followed by either a {@code DragGestureListener}, or + * {@code null}. * @since 1.4 */ private void writeObject(ObjectOutputStream s) throws IOException { @@ -406,9 +406,9 @@ } /** - * Deserializes this DragGestureRecognizer. This method first - * performs default deserialization for all non-transient - * fields. This object's DragGestureListener is then + * Deserializes this {@code DragGestureRecognizer}. This method first + * performs default deserialization for all non-{@code transient} + * fields. This object's {@code DragGestureListener} is then * deserialized as well by using the next object in the stream. * * @since 1.4 @@ -437,30 +437,30 @@ */ /** - * The DragSource + * The {@code DragSource} * associated with this - * DragGestureRecognizer. + * {@code DragGestureRecognizer}. * * @serial */ protected DragSource dragSource; /** - * The Component - * associated with this DragGestureRecognizer. + * The {@code Component} + * associated with this {@code DragGestureRecognizer}. * * @serial */ protected Component component; /** - * The DragGestureListener - * associated with this DragGestureRecognizer. + * The {@code DragGestureListener} + * associated with this {@code DragGestureRecognizer}. */ protected transient DragGestureListener dragGestureListener; /** - * An int representing + * An {@code int} representing * the type(s) of action(s) used * in this Drag and Drop operation. * @@ -470,7 +470,7 @@ /** * The list of events (in order) that - * the DragGestureRecognizer + * the {@code DragGestureRecognizer} * "recognized" as a "gesture" that triggers a drag. * * @serial --- old/src/java.desktop/share/classes/java/awt/dnd/DragSource.java 2015-10-04 22:53:14.773272753 +0400 +++ new/src/java.desktop/share/classes/java/awt/dnd/DragSource.java 2015-10-04 22:53:14.581272762 +0400 @@ -49,7 +49,7 @@ /** - * The DragSource is the entity responsible + * The {@code DragSource} is the entity responsible * for the initiation of the Drag * and Drop operation, and may be used in a number of scenarios: *

            @@ -57,49 +57,49 @@ *
          • 1 instance per class of potential Drag Initiator object (e.g * TextField). [implementation dependent] *
          • 1 per instance of a particular - * Component, or application specific - * object associated with a Component + * {@code Component}, or application specific + * object associated with a {@code Component} * instance in the GUI. [implementation dependent] *
          • Some other arbitrary association. [implementation dependent] *
          * - * Once the DragSource is - * obtained, a DragGestureRecognizer should - * also be obtained to associate the DragSource + * Once the {@code DragSource} is + * obtained, a {@code DragGestureRecognizer} should + * also be obtained to associate the {@code DragSource} * with a particular - * Component. + * {@code Component}. *

          * The initial interpretation of the user's gesture, * and the subsequent starting of the drag operation * are the responsibility of the implementing - * Component, which is usually - * implemented by a DragGestureRecognizer. + * {@code Component}, which is usually + * implemented by a {@code DragGestureRecognizer}. *

          * When a drag gesture occurs, the - * DragSource's + * {@code DragSource}'s * startDrag() method shall be * invoked in order to cause processing * of the user's navigational * gestures and delivery of Drag and Drop * protocol notifications. A - * DragSource shall only + * {@code DragSource} shall only * permit a single Drag and Drop operation to be * current at any one time, and shall * reject any further startDrag() requests - * by throwing an IllegalDnDOperationException + * by throwing an {@code IllegalDnDOperationException} * until such time as the extant operation is complete. *

          * The startDrag() method invokes the * createDragSourceContext() method to * instantiate an appropriate - * DragSourceContext - * and associate the DragSourceContextPeer + * {@code DragSourceContext} + * and associate the {@code DragSourceContextPeer} * with that. *

          * If the Drag and Drop System is * unable to initiate a drag operation for * some reason, the startDrag() method throws - * a java.awt.dnd.InvalidDnDOperationException + * a {@code java.awt.dnd.InvalidDnDOperationException} * to signal such a condition. Typically this * exception is thrown when the underlying platform * system is either not in a state to @@ -111,7 +111,7 @@ * until the operation is complete. * The operation(s) are constant for the * duration of the operation with respect to the - * DragSource. + * {@code DragSource}. * * @since 1.2 */ @@ -140,9 +140,9 @@ /** - * The default Cursor to use with a copy operation indicating - * that a drop is currently allowed. null if - * GraphicsEnvironment.isHeadless() returns true. + * The default {@code Cursor} to use with a copy operation indicating + * that a drop is currently allowed. {@code null} if + * {@code GraphicsEnvironment.isHeadless()} returns {@code true}. * * @see java.awt.GraphicsEnvironment#isHeadless */ @@ -150,9 +150,9 @@ load("DnD.Cursor.CopyDrop"); /** - * The default Cursor to use with a move operation indicating - * that a drop is currently allowed. null if - * GraphicsEnvironment.isHeadless() returns true. + * The default {@code Cursor} to use with a move operation indicating + * that a drop is currently allowed. {@code null} if + * {@code GraphicsEnvironment.isHeadless()} returns {@code true}. * * @see java.awt.GraphicsEnvironment#isHeadless */ @@ -160,9 +160,9 @@ load("DnD.Cursor.MoveDrop"); /** - * The default Cursor to use with a link operation indicating - * that a drop is currently allowed. null if - * GraphicsEnvironment.isHeadless() returns true. + * The default {@code Cursor} to use with a link operation indicating + * that a drop is currently allowed. {@code null} if + * {@code GraphicsEnvironment.isHeadless()} returns {@code true}. * * @see java.awt.GraphicsEnvironment#isHeadless */ @@ -170,9 +170,9 @@ load("DnD.Cursor.LinkDrop"); /** - * The default Cursor to use with a copy operation indicating - * that a drop is currently not allowed. null if - * GraphicsEnvironment.isHeadless() returns true. + * The default {@code Cursor} to use with a copy operation indicating + * that a drop is currently not allowed. {@code null} if + * {@code GraphicsEnvironment.isHeadless()} returns {@code true}. * * @see java.awt.GraphicsEnvironment#isHeadless */ @@ -180,9 +180,9 @@ load("DnD.Cursor.CopyNoDrop"); /** - * The default Cursor to use with a move operation indicating - * that a drop is currently not allowed. null if - * GraphicsEnvironment.isHeadless() returns true. + * The default {@code Cursor} to use with a move operation indicating + * that a drop is currently not allowed. {@code null} if + * {@code GraphicsEnvironment.isHeadless()} returns {@code true}. * * @see java.awt.GraphicsEnvironment#isHeadless */ @@ -190,9 +190,9 @@ load("DnD.Cursor.MoveNoDrop"); /** - * The default Cursor to use with a link operation indicating - * that a drop is currently not allowed. null if - * GraphicsEnvironment.isHeadless() returns true. + * The default {@code Cursor} to use with a link operation indicating + * that a drop is currently not allowed. {@code null} if + * {@code GraphicsEnvironment.isHeadless()} returns {@code true}. * * @see java.awt.GraphicsEnvironment#isHeadless */ @@ -209,7 +209,7 @@ static final String dragSourceMotionListenerK = "dragSourceMotionL"; /** - * Gets the DragSource object associated with + * Gets the {@code DragSource} object associated with * the underlying platform. * * @return the platform DragSource @@ -228,7 +228,7 @@ /** * Reports * whether or not drag - * Image support + * {@code Image} support * is available on the underlying platform. * * @return if the Drag Image support is available on this platform @@ -249,7 +249,7 @@ } /** - * Creates a new DragSource. + * Creates a new {@code DragSource}. * * @exception HeadlessException if GraphicsEnvironment.isHeadless() * returns true @@ -262,28 +262,28 @@ } /** - * Start a drag, given the DragGestureEvent + * Start a drag, given the {@code DragGestureEvent} * that initiated the drag, the initial - * Cursor to use, - * the Image to drag, - * the offset of the Image origin - * from the hotspot of the Cursor at + * {@code Cursor} to use, + * the {@code Image} to drag, + * the offset of the {@code Image} origin + * from the hotspot of the {@code Cursor} at * the instant of the trigger, - * the Transferable subject data - * of the drag, the DragSourceListener, - * and the FlavorMap. + * the {@code Transferable} subject data + * of the drag, the {@code DragSourceListener}, + * and the {@code FlavorMap}. * - * @param trigger the DragGestureEvent that initiated the drag + * @param trigger the {@code DragGestureEvent} that initiated the drag * @param dragCursor the initial {@code Cursor} for this drag operation * or {@code null} for the default cursor handling; * see DragSourceContext * for more details on the cursor handling mechanism during drag and drop * @param dragImage the image to drag or {@code null} - * @param imageOffset the offset of the Image origin from the hotspot - * of the Cursor at the instant of the trigger + * @param imageOffset the offset of the {@code Image} origin from the hotspot + * of the {@code Cursor} at the instant of the trigger * @param transferable the subject data of the drag - * @param dsl the DragSourceListener - * @param flavorMap the FlavorMap to use, or null + * @param dsl the {@code DragSourceListener} + * @param flavorMap the {@code FlavorMap} to use, or {@code null} * * @throws java.awt.dnd.InvalidDnDOperationException * if the Drag and Drop @@ -322,22 +322,22 @@ } /** - * Start a drag, given the DragGestureEvent + * Start a drag, given the {@code DragGestureEvent} * that initiated the drag, the initial - * Cursor to use, - * the Transferable subject data - * of the drag, the DragSourceListener, - * and the FlavorMap. + * {@code Cursor} to use, + * the {@code Transferable} subject data + * of the drag, the {@code DragSourceListener}, + * and the {@code FlavorMap}. * - * @param trigger the DragGestureEvent that + * @param trigger the {@code DragGestureEvent} that * initiated the drag * @param dragCursor the initial {@code Cursor} for this drag operation * or {@code null} for the default cursor handling; * see DragSourceContext * for more details on the cursor handling mechanism during drag and drop * @param transferable the subject data of the drag - * @param dsl the DragSourceListener - * @param flavorMap the FlavorMap to use or null + * @param dsl the {@code DragSourceListener} + * @param flavorMap the {@code FlavorMap} to use or {@code null} * * @throws java.awt.dnd.InvalidDnDOperationException * if the Drag and Drop @@ -355,26 +355,26 @@ } /** - * Start a drag, given the DragGestureEvent - * that initiated the drag, the initial Cursor + * Start a drag, given the {@code DragGestureEvent} + * that initiated the drag, the initial {@code Cursor} * to use, - * the Image to drag, - * the offset of the Image origin - * from the hotspot of the Cursor + * the {@code Image} to drag, + * the offset of the {@code Image} origin + * from the hotspot of the {@code Cursor} * at the instant of the trigger, * the subject data of the drag, and - * the DragSourceListener. + * the {@code DragSourceListener}. * - * @param trigger the DragGestureEvent that initiated the drag + * @param trigger the {@code DragGestureEvent} that initiated the drag * @param dragCursor the initial {@code Cursor} for this drag operation * or {@code null} for the default cursor handling; * see DragSourceContext * for more details on the cursor handling mechanism during drag and drop - * @param dragImage the Image to drag or null - * @param dragOffset the offset of the Image origin from the hotspot - * of the Cursor at the instant of the trigger + * @param dragImage the {@code Image} to drag or {@code null} + * @param dragOffset the offset of the {@code Image} origin from the hotspot + * of the {@code Cursor} at the instant of the trigger * @param transferable the subject data of the drag - * @param dsl the DragSourceListener + * @param dsl the {@code DragSourceListener} * * @throws java.awt.dnd.InvalidDnDOperationException * if the Drag and Drop @@ -393,20 +393,20 @@ } /** - * Start a drag, given the DragGestureEvent + * Start a drag, given the {@code DragGestureEvent} * that initiated the drag, the initial - * Cursor to + * {@code Cursor} to * use, - * the Transferable subject data - * of the drag, and the DragSourceListener. + * the {@code Transferable} subject data + * of the drag, and the {@code DragSourceListener}. * - * @param trigger the DragGestureEvent that initiated the drag + * @param trigger the {@code DragGestureEvent} that initiated the drag * @param dragCursor the initial {@code Cursor} for this drag operation * or {@code null} for the default cursor handling; * see DragSourceContext class * for more details on the cursor handling mechanism during drag and drop * @param transferable the subject data of the drag - * @param dsl the DragSourceListener + * @param dsl the {@code DragSourceListener} * * @throws java.awt.dnd.InvalidDnDOperationException * if the Drag and Drop @@ -426,46 +426,46 @@ * Creates the {@code DragSourceContext} to handle the current drag * operation. *

          - * To incorporate a new DragSourceContext - * subclass, subclass DragSource and + * To incorporate a new {@code DragSourceContext} + * subclass, subclass {@code DragSource} and * override this method. *

          - * If dragImage is null, no image is used + * If {@code dragImage} is {@code null}, no image is used * to represent the drag over feedback for this drag operation, but - * NullPointerException is not thrown. + * {@code NullPointerException} is not thrown. *

          - * If dsl is null, no drag source listener - * is registered with the created DragSourceContext, - * but NullPointerException is not thrown. + * If {@code dsl} is {@code null}, no drag source listener + * is registered with the created {@code DragSourceContext}, + * but {@code NullPointerException} is not thrown. * - * @param dgl The DragGestureEvent that triggered the + * @param dgl The {@code DragGestureEvent} that triggered the * drag * @param dragCursor The initial {@code Cursor} for this drag operation * or {@code null} for the default cursor handling; * see DragSourceContext class * for more details on the cursor handling mechanism during drag and drop - * @param dragImage The Image to drag or null - * @param imageOffset The offset of the Image origin from the + * @param dragImage The {@code Image} to drag or {@code null} + * @param imageOffset The offset of the {@code Image} origin from the * hotspot of the cursor at the instant of the trigger * @param t The subject data of the drag - * @param dsl The DragSourceListener + * @param dsl The {@code DragSourceListener} * - * @return the DragSourceContext + * @return the {@code DragSourceContext} * - * @throws NullPointerException if dscp is null - * @throws NullPointerException if dgl is null - * @throws NullPointerException if dragImage is not - * null and imageOffset is null - * @throws NullPointerException if t is null - * @throws IllegalArgumentException if the Component - * associated with the trigger event is null. - * @throws IllegalArgumentException if the DragSource for the - * trigger event is null. + * @throws NullPointerException if {@code dscp} is {@code null} + * @throws NullPointerException if {@code dgl} is {@code null} + * @throws NullPointerException if {@code dragImage} is not + * {@code null} and {@code imageOffset} is {@code null} + * @throws NullPointerException if {@code t} is {@code null} + * @throws IllegalArgumentException if the {@code Component} + * associated with the trigger event is {@code null}. + * @throws IllegalArgumentException if the {@code DragSource} for the + * trigger event is {@code null}. * @throws IllegalArgumentException if the drag action for the - * trigger event is DnDConstants.ACTION_NONE. + * trigger event is {@code DnDConstants.ACTION_NONE}. * @throws IllegalArgumentException if the source actions for the - * DragGestureRecognizer associated with the trigger - * event are equal to DnDConstants.ACTION_NONE. + * {@code DragGestureRecognizer} associated with the trigger + * event are equal to {@code DnDConstants.ACTION_NONE}. */ protected DragSourceContext createDragSourceContext(DragGestureEvent dgl, @@ -479,33 +479,33 @@ /** * This method returns the - * FlavorMap for this DragSource. + * {@code FlavorMap} for this {@code DragSource}. * - * @return the FlavorMap for this DragSource + * @return the {@code FlavorMap} for this {@code DragSource} */ public FlavorMap getFlavorMap() { return flavorMap; } /** - * Creates a new DragGestureRecognizer + * Creates a new {@code DragGestureRecognizer} * that implements the specified * abstract subclass of - * DragGestureRecognizer, and - * sets the specified Component - * and DragGestureListener on + * {@code DragGestureRecognizer}, and + * sets the specified {@code Component} + * and {@code DragGestureListener} on * the newly created object. * * @param the type of {@code DragGestureRecognizer} to create * @param recognizerAbstractClass the requested abstract type * @param actions the permitted source drag actions - * @param c the Component target - * @param dgl the DragGestureListener to notify + * @param c the {@code Component} target + * @param dgl the {@code DragGestureListener} to notify * - * @return the new DragGestureRecognizer or null - * if the Toolkit.createDragGestureRecognizer method + * @return the new {@code DragGestureRecognizer} or {@code null} + * if the {@code Toolkit.createDragGestureRecognizer} method * has no implementation available for - * the requested DragGestureRecognizer - * subclass and returns null + * the requested {@code DragGestureRecognizer} + * subclass and returns {@code null} */ public T @@ -518,26 +518,26 @@ /** - * Creates a new DragGestureRecognizer + * Creates a new {@code DragGestureRecognizer} * that implements the default - * abstract subclass of DragGestureRecognizer - * for this DragSource, - * and sets the specified Component - * and DragGestureListener on the + * abstract subclass of {@code DragGestureRecognizer} + * for this {@code DragSource}, + * and sets the specified {@code Component} + * and {@code DragGestureListener} on the * newly created object. * - * For this DragSource - * the default is MouseDragGestureRecognizer. + * For this {@code DragSource} + * the default is {@code MouseDragGestureRecognizer}. * - * @param c the Component target for the recognizer + * @param c the {@code Component} target for the recognizer * @param actions the permitted source actions - * @param dgl the DragGestureListener to notify + * @param dgl the {@code DragGestureListener} to notify * - * @return the new DragGestureRecognizer or null - * if the Toolkit.createDragGestureRecognizer method + * @return the new {@code DragGestureRecognizer} or {@code null} + * if the {@code Toolkit.createDragGestureRecognizer} method * has no implementation available for - * the requested DragGestureRecognizer - * subclass and returns null + * the requested {@code DragGestureRecognizer} + * subclass and returns {@code null} */ public DragGestureRecognizer createDefaultDragGestureRecognizer(Component c, int actions, DragGestureListener dgl) { @@ -545,13 +545,13 @@ } /** - * Adds the specified DragSourceListener to this - * DragSource to receive drag source events during drag - * operations initiated with this DragSource. - * If a null listener is specified, no action is taken and no + * Adds the specified {@code DragSourceListener} to this + * {@code DragSource} to receive drag source events during drag + * operations initiated with this {@code DragSource}. + * If a {@code null} listener is specified, no action is taken and no * exception is thrown. * - * @param dsl the DragSourceListener to add + * @param dsl the {@code DragSourceListener} to add * * @see #removeDragSourceListener * @see #getDragSourceListeners @@ -566,15 +566,15 @@ } /** - * Removes the specified DragSourceListener from this - * DragSource. - * If a null listener is specified, no action is taken and no + * Removes the specified {@code DragSourceListener} from this + * {@code DragSource}. + * If a {@code null} listener is specified, no action is taken and no * exception is thrown. * If the listener specified by the argument was not previously added to - * this DragSource, no action is taken and no exception + * this {@code DragSource}, no action is taken and no exception * is thrown. * - * @param dsl the DragSourceListener to remove + * @param dsl the {@code DragSourceListener} to remove * * @see #addDragSourceListener * @see #getDragSourceListeners @@ -589,11 +589,11 @@ } /** - * Gets all the DragSourceListeners - * registered with this DragSource. + * Gets all the {@code DragSourceListener}s + * registered with this {@code DragSource}. * - * @return all of this DragSource's - * DragSourceListeners or an empty array if no + * @return all of this {@code DragSource}'s + * {@code DragSourceListener}s or an empty array if no * such listeners are currently registered * * @see #addDragSourceListener @@ -605,13 +605,13 @@ } /** - * Adds the specified DragSourceMotionListener to this - * DragSource to receive drag motion events during drag - * operations initiated with this DragSource. - * If a null listener is specified, no action is taken and no + * Adds the specified {@code DragSourceMotionListener} to this + * {@code DragSource} to receive drag motion events during drag + * operations initiated with this {@code DragSource}. + * If a {@code null} listener is specified, no action is taken and no * exception is thrown. * - * @param dsml the DragSourceMotionListener to add + * @param dsml the {@code DragSourceMotionListener} to add * * @see #removeDragSourceMotionListener * @see #getDragSourceMotionListeners @@ -626,15 +626,15 @@ } /** - * Removes the specified DragSourceMotionListener from this - * DragSource. - * If a null listener is specified, no action is taken and no + * Removes the specified {@code DragSourceMotionListener} from this + * {@code DragSource}. + * If a {@code null} listener is specified, no action is taken and no * exception is thrown. * If the listener specified by the argument was not previously added to - * this DragSource, no action is taken and no exception + * this {@code DragSource}, no action is taken and no exception * is thrown. * - * @param dsml the DragSourceMotionListener to remove + * @param dsml the {@code DragSourceMotionListener} to remove * * @see #addDragSourceMotionListener * @see #getDragSourceMotionListeners @@ -649,11 +649,11 @@ } /** - * Gets all of the DragSourceMotionListeners - * registered with this DragSource. + * Gets all of the {@code DragSourceMotionListener}s + * registered with this {@code DragSource}. * - * @return all of this DragSource's - * DragSourceMotionListeners or an empty array if no + * @return all of this {@code DragSource}'s + * {@code DragSourceMotionListener}s or an empty array if no * such listeners are currently registered * * @see #addDragSourceMotionListener @@ -666,21 +666,21 @@ /** * Gets all the objects currently registered as - * FooListeners upon this DragSource. + * FooListeners upon this {@code DragSource}. * FooListeners are registered using the * addFooListener method. * * @param the type of listener objects * @param listenerType the type of listeners requested; this parameter * should specify an interface that descends from - * java.util.EventListener + * {@code java.util.EventListener} * @return an array of all objects registered as * FooListeners on this - * DragSource, or an empty array if no such listeners + * {@code DragSource}, or an empty array if no such listeners * have been added - * @exception ClassCastException if listenerType + * @exception ClassCastException if {@code listenerType} * doesn't specify a class or interface that implements - * java.util.EventListener + * {@code java.util.EventListener} * * @see #getDragSourceListeners * @see #getDragSourceMotionListeners @@ -697,12 +697,12 @@ } /** - * This method calls dragEnter on the - * DragSourceListeners registered with this - * DragSource, and passes them the specified - * DragSourceDragEvent. + * This method calls {@code dragEnter} on the + * {@code DragSourceListener}s registered with this + * {@code DragSource}, and passes them the specified + * {@code DragSourceDragEvent}. * - * @param dsde the DragSourceDragEvent + * @param dsde the {@code DragSourceDragEvent} */ void processDragEnter(DragSourceDragEvent dsde) { DragSourceListener dsl = listener; @@ -712,12 +712,12 @@ } /** - * This method calls dragOver on the - * DragSourceListeners registered with this - * DragSource, and passes them the specified - * DragSourceDragEvent. + * This method calls {@code dragOver} on the + * {@code DragSourceListener}s registered with this + * {@code DragSource}, and passes them the specified + * {@code DragSourceDragEvent}. * - * @param dsde the DragSourceDragEvent + * @param dsde the {@code DragSourceDragEvent} */ void processDragOver(DragSourceDragEvent dsde) { DragSourceListener dsl = listener; @@ -727,12 +727,12 @@ } /** - * This method calls dropActionChanged on the - * DragSourceListeners registered with this - * DragSource, and passes them the specified - * DragSourceDragEvent. + * This method calls {@code dropActionChanged} on the + * {@code DragSourceListener}s registered with this + * {@code DragSource}, and passes them the specified + * {@code DragSourceDragEvent}. * - * @param dsde the DragSourceDragEvent + * @param dsde the {@code DragSourceDragEvent} */ void processDropActionChanged(DragSourceDragEvent dsde) { DragSourceListener dsl = listener; @@ -742,12 +742,12 @@ } /** - * This method calls dragExit on the - * DragSourceListeners registered with this - * DragSource, and passes them the specified - * DragSourceEvent. + * This method calls {@code dragExit} on the + * {@code DragSourceListener}s registered with this + * {@code DragSource}, and passes them the specified + * {@code DragSourceEvent}. * - * @param dse the DragSourceEvent + * @param dse the {@code DragSourceEvent} */ void processDragExit(DragSourceEvent dse) { DragSourceListener dsl = listener; @@ -757,12 +757,12 @@ } /** - * This method calls dragDropEnd on the - * DragSourceListeners registered with this - * DragSource, and passes them the specified - * DragSourceDropEvent. + * This method calls {@code dragDropEnd} on the + * {@code DragSourceListener}s registered with this + * {@code DragSource}, and passes them the specified + * {@code DragSourceDropEvent}. * - * @param dsde the DragSourceEvent + * @param dsde the {@code DragSourceEvent} */ void processDragDropEnd(DragSourceDropEvent dsde) { DragSourceListener dsl = listener; @@ -772,12 +772,12 @@ } /** - * This method calls dragMouseMoved on the - * DragSourceMotionListeners registered with this - * DragSource, and passes them the specified - * DragSourceDragEvent. + * This method calls {@code dragMouseMoved} on the + * {@code DragSourceMotionListener}s registered with this + * {@code DragSource}, and passes them the specified + * {@code DragSourceDragEvent}. * - * @param dsde the DragSourceEvent + * @param dsde the {@code DragSourceEvent} */ void processDragMouseMoved(DragSourceDragEvent dsde) { DragSourceMotionListener dsml = motionListener; @@ -787,33 +787,33 @@ } /** - * Serializes this DragSource. This method first performs + * Serializes this {@code DragSource}. This method first performs * default serialization. Next, it writes out this object's - * FlavorMap if and only if it can be serialized. If not, - * null is written instead. Next, it writes out - * Serializable listeners registered with this - * object. Listeners are written in a null-terminated sequence - * of 0 or more pairs. The pair consists of a String and an - * Object; the String indicates the type of the - * Object and is one of the following: + * {@code FlavorMap} if and only if it can be serialized. If not, + * {@code null} is written instead. Next, it writes out + * {@code Serializable} listeners registered with this + * object. Listeners are written in a {@code null}-terminated sequence + * of 0 or more pairs. The pair consists of a {@code String} and an + * {@code Object}; the {@code String} indicates the type of the + * {@code Object} and is one of the following: *

            - *
          • dragSourceListenerK indicating a - * DragSourceListener object; - *
          • dragSourceMotionListenerK indicating a - * DragSourceMotionListener object. + *
          • {@code dragSourceListenerK} indicating a + * {@code DragSourceListener} object; + *
          • {@code dragSourceMotionListenerK} indicating a + * {@code DragSourceMotionListener} object. *
          * - * @serialData Either a FlavorMap instance, or - * null, followed by a null-terminated + * @serialData Either a {@code FlavorMap} instance, or + * {@code null}, followed by a {@code null}-terminated * sequence of 0 or more pairs; the pair consists of a - * String and an Object; the - * String indicates the type of the Object + * {@code String} and an {@code Object}; the + * {@code String} indicates the type of the {@code Object} * and is one of the following: *
            - *
          • dragSourceListenerK indicating a - * DragSourceListener object; - *
          • dragSourceMotionListenerK indicating a - * DragSourceMotionListener object. + *
          • {@code dragSourceListenerK} indicating a + * {@code DragSourceListener} object; + *
          • {@code dragSourceMotionListenerK} indicating a + * {@code DragSourceMotionListener} object. *
          . * @since 1.4 */ @@ -828,24 +828,24 @@ } /** - * Deserializes this DragSource. This method first performs - * default deserialization. Next, this object's FlavorMap is + * Deserializes this {@code DragSource}. This method first performs + * default deserialization. Next, this object's {@code FlavorMap} is * deserialized by using the next object in the stream. - * If the resulting FlavorMap is null, this - * object's FlavorMap is set to the default FlavorMap for - * this thread's ClassLoader. + * If the resulting {@code FlavorMap} is {@code null}, this + * object's {@code FlavorMap} is set to the default FlavorMap for + * this thread's {@code ClassLoader}. * Next, this object's listeners are deserialized by reading a - * null-terminated sequence of 0 or more key/value pairs + * {@code null}-terminated sequence of 0 or more key/value pairs * from the stream: *
            - *
          • If a key object is a String equal to - * dragSourceListenerK, a DragSourceListener is + *
          • If a key object is a {@code String} equal to + * {@code dragSourceListenerK}, a {@code DragSourceListener} is * deserialized using the corresponding value object and added to this - * DragSource. - *
          • If a key object is a String equal to - * dragSourceMotionListenerK, a - * DragSourceMotionListener is deserialized using the - * corresponding value object and added to this DragSource. + * {@code DragSource}. + *
          • If a key object is a {@code String} equal to + * {@code dragSourceMotionListenerK}, a + * {@code DragSourceMotionListener} is deserialized using the + * corresponding value object and added to this {@code DragSource}. *
          • Otherwise, the key/value pair is skipped. *
          * @@ -884,13 +884,13 @@ * Returns the drag gesture motion threshold. The drag gesture motion threshold * defines the recommended behavior for {@link MouseDragGestureRecognizer}s. *

          - * If the system property awt.dnd.drag.threshold is set to + * If the system property {@code awt.dnd.drag.threshold} is set to * a positive integer, this method returns the value of the system property; * otherwise if a pertinent desktop property is available and supported by * the implementation of the Java platform, this method returns the value of * that property; otherwise this method returns some default value. * The pertinent desktop property can be queried using - * java.awt.Toolkit.getDesktopProperty("DnD.gestureMotionThreshold"). + * {@code java.awt.Toolkit.getDesktopProperty("DnD.gestureMotionThreshold")}. * * @return the drag gesture motion threshold * @see MouseDragGestureRecognizer --- old/src/java.desktop/share/classes/java/awt/dnd/DragSourceAdapter.java 2015-10-04 22:53:15.325272728 +0400 +++ new/src/java.desktop/share/classes/java/awt/dnd/DragSourceAdapter.java 2015-10-04 22:53:15.133272737 +0400 @@ -30,22 +30,22 @@ * this class are empty. This class exists only as a convenience for creating * listener objects. *

          - * Extend this class to create a DragSourceEvent listener + * Extend this class to create a {@code DragSourceEvent} listener * and override the methods for the events of interest. (If you implement the - * DragSourceListener interface, you have to define all of + * {@code DragSourceListener} interface, you have to define all of * the methods in it. This abstract class defines null methods for them * all, so you only have to define methods for events you care about.) *

          * Create a listener object using the extended class and then register it with - * a DragSource. When the drag enters, moves over, or exits + * a {@code DragSource}. When the drag enters, moves over, or exits * a drop site, when the drop action changes, and when the drag ends, the * relevant method in the listener object is invoked, and the - * DragSourceEvent is passed to it. + * {@code DragSourceEvent} is passed to it. *

          - * The drop site is associated with the previous dragEnter() - * invocation if the latest invocation of dragEnter() on this + * The drop site is associated with the previous {@code dragEnter()} + * invocation if the latest invocation of {@code dragEnter()} on this * adapter corresponds to that drop site and is not followed by a - * dragExit() invocation on this adapter. + * {@code dragExit()} invocation on this adapter. * * @see DragSourceEvent * @see DragSourceListener @@ -67,7 +67,7 @@ *

        • The drop site accepts the drag. *
        * - * @param dsde the DragSourceDragEvent + * @param dsde the {@code DragSourceDragEvent} */ public void dragEnter(DragSourceDragEvent dsde) {} @@ -82,14 +82,14 @@ *
      • The drop site accepts the drag. *
      * - * @param dsde the DragSourceDragEvent + * @param dsde the {@code DragSourceDragEvent} */ public void dragOver(DragSourceDragEvent dsde) {} /** * Called whenever the mouse is moved during a drag operation. * - * @param dsde the DragSourceDragEvent + * @param dsde the {@code DragSourceDragEvent} */ public void dragMouseMoved(DragSourceDragEvent dsde) {} @@ -100,7 +100,7 @@ * Such devices are typically the mouse buttons or keyboard * modifiers that the user is interacting with. * - * @param dsde the DragSourceDragEvent + * @param dsde the {@code DragSourceDragEvent} */ public void dropActionChanged(DragSourceDragEvent dsde) {} @@ -122,21 +122,21 @@ * has rejected the drag. * * - * @param dse the DragSourceEvent + * @param dse the {@code DragSourceEvent} */ public void dragExit(DragSourceEvent dse) {} /** * This method is invoked to signify that the Drag and Drop * operation is complete. The getDropSuccess() method of - * the DragSourceDropEvent can be used to + * the {@code DragSourceDropEvent} can be used to * determine the termination state. The getDropAction() method * returns the operation that the drop site selected * to apply to the Drop operation. Once this method is complete, the - * current DragSourceContext and + * current {@code DragSourceContext} and * associated resources become invalid. * - * @param dsde the DragSourceDropEvent + * @param dsde the {@code DragSourceDropEvent} */ public void dragDropEnd(DragSourceDropEvent dsde) {} } --- old/src/java.desktop/share/classes/java/awt/dnd/DragSourceContext.java 2015-10-04 22:53:15.853272705 +0400 +++ new/src/java.desktop/share/classes/java/awt/dnd/DragSourceContext.java 2015-10-04 22:53:15.661272713 +0400 @@ -46,22 +46,22 @@ import sun.awt.ComponentFactory; /** - * The DragSourceContext class is responsible for managing the + * The {@code DragSourceContext} class is responsible for managing the * initiator side of the Drag and Drop protocol. In particular, it is responsible * for managing drag event notifications to the * {@linkplain DragSourceListener DragSourceListeners} * and {@linkplain DragSourceMotionListener DragSourceMotionListeners}, and providing the * {@link Transferable} representing the source data for the drag operation. *

      - * Note that the DragSourceContext itself - * implements the DragSourceListener and - * DragSourceMotionListener interfaces. + * Note that the {@code DragSourceContext} itself + * implements the {@code DragSourceListener} and + * {@code DragSourceMotionListener} interfaces. * This is to allow the platform peer * (the {@link DragSourceContextPeer} instance) * created by the {@link DragSource} to notify - * the DragSourceContext of + * the {@code DragSourceContext} of * state changes in the ongoing operation. This allows the - * DragSourceContext object to interpose + * {@code DragSourceContext} object to interpose * itself between the platform and the * listeners provided by the initiator of the drag operation. *

      @@ -97,28 +97,28 @@ // used by updateCurrentCursor /** - * An int used by updateCurrentCursor() - * indicating that the Cursor should change - * to the default (no drop) Cursor. + * An {@code int} used by updateCurrentCursor() + * indicating that the {@code Cursor} should change + * to the default (no drop) {@code Cursor}. */ protected static final int DEFAULT = 0; /** - * An int used by updateCurrentCursor() - * indicating that the Cursor - * has entered a DropTarget. + * An {@code int} used by updateCurrentCursor() + * indicating that the {@code Cursor} + * has entered a {@code DropTarget}. */ protected static final int ENTER = 1; /** - * An int used by updateCurrentCursor() - * indicating that the Cursor is - * over a DropTarget. + * An {@code int} used by updateCurrentCursor() + * indicating that the {@code Cursor} is + * over a {@code DropTarget}. */ protected static final int OVER = 2; /** - * An int used by updateCurrentCursor() + * An {@code int} used by updateCurrentCursor() * indicating that the user operation has changed. */ @@ -129,35 +129,35 @@ } /** - * Called from DragSource, this constructor creates a new - * DragSourceContext given the - * DragSourceContextPeer for this Drag, the - * DragGestureEvent that triggered the Drag, the initial - * Cursor to use for the Drag, an (optional) - * Image to display while the Drag is taking place, the offset - * of the Image origin from the hotspot at the instant of the - * triggering event, the Transferable subject data, and the - * DragSourceListener to use during the Drag and Drop + * Called from {@code DragSource}, this constructor creates a new + * {@code DragSourceContext} given the + * {@code DragSourceContextPeer} for this Drag, the + * {@code DragGestureEvent} that triggered the Drag, the initial + * {@code Cursor} to use for the Drag, an (optional) + * {@code Image} to display while the Drag is taking place, the offset + * of the {@code Image} origin from the hotspot at the instant of the + * triggering event, the {@code Transferable} subject data, and the + * {@code DragSourceListener} to use during the Drag and Drop * operation. *
      - * If DragSourceContextPeer is null - * NullPointerException is thrown. + * If {@code DragSourceContextPeer} is {@code null} + * {@code NullPointerException} is thrown. *
      - * If DragGestureEvent is null - * NullPointerException is thrown. + * If {@code DragGestureEvent} is {@code null} + * {@code NullPointerException} is thrown. *
      - * If Cursor is null no exception is thrown and + * If {@code Cursor} is {@code null} no exception is thrown and * the default drag cursor behavior is activated for this drag operation. *
      - * If Image is null no exception is thrown. + * If {@code Image} is {@code null} no exception is thrown. *
      - * If Image is not null and the offset is - * null NullPointerException is thrown. + * If {@code Image} is not {@code null} and the offset is + * {@code null NullPointerException} is thrown. *
      - * If Transferable is null - * NullPointerException is thrown. + * If {@code Transferable} is {@code null} + * {@code NullPointerException} is thrown. *
      - * If DragSourceListener is null no exception + * If {@code DragSourceListener} is {@code null} no exception * is thrown. * * @param trigger the triggering event @@ -165,21 +165,21 @@ * or {@code null} for the default cursor handling; * see class level documentation * for more details on the cursor handling mechanism during drag and drop - * @param dragImage the Image to drag (or null) + * @param dragImage the {@code Image} to drag (or {@code null}) * @param offset the offset of the image origin from the hotspot at the * instant of the triggering event - * @param t the Transferable - * @param dsl the DragSourceListener + * @param t the {@code Transferable} + * @param dsl the {@code DragSourceListener} * - * @throws IllegalArgumentException if the Component associated - * with the trigger event is null. - * @throws IllegalArgumentException if the DragSource for the - * trigger event is null. + * @throws IllegalArgumentException if the {@code Component} associated + * with the trigger event is {@code null}. + * @throws IllegalArgumentException if the {@code DragSource} for the + * trigger event is {@code null}. * @throws IllegalArgumentException if the drag action for the - * trigger event is DnDConstants.ACTION_NONE. + * trigger event is {@code DnDConstants.ACTION_NONE}. * @throws IllegalArgumentException if the source actions for the - * DragGestureRecognizer associated with the trigger - * event are equal to DnDConstants.ACTION_NONE. + * {@code DragGestureRecognizer} associated with the trigger + * event are equal to {@code DnDConstants.ACTION_NONE}. * @throws NullPointerException if dscp, trigger, or t are null, or * if dragImage is non-null and offset is null */ @@ -240,26 +240,26 @@ } /** - * Returns the DragSource - * that instantiated this DragSourceContext. + * Returns the {@code DragSource} + * that instantiated this {@code DragSourceContext}. * - * @return the DragSource that - * instantiated this DragSourceContext + * @return the {@code DragSource} that + * instantiated this {@code DragSourceContext} */ public DragSource getDragSource() { return trigger.getDragSource(); } /** - * Returns the Component associated with this - * DragSourceContext. + * Returns the {@code Component} associated with this + * {@code DragSourceContext}. * - * @return the Component that started the drag + * @return the {@code Component} that started the drag */ public Component getComponent() { return trigger.getComponent(); } /** - * Returns the DragGestureEvent + * Returns the {@code DragGestureEvent} * that initially triggered the drag. * * @return the Event that triggered the drag @@ -268,9 +268,9 @@ public DragGestureEvent getTrigger() { return trigger; } /** - * Returns a bitwise mask of DnDConstants that + * Returns a bitwise mask of {@code DnDConstants} that * represent the set of drop actions supported by the drag source for the - * drag operation associated with this DragSourceContext. + * drag operation associated with this {@code DragSourceContext}. * * @return the drop actions supported by the drag source */ @@ -280,8 +280,8 @@ /** * Sets the cursor for this drag operation to the specified - * Cursor. If the specified Cursor - * is null, the default drag cursor behavior is + * {@code Cursor}. If the specified {@code Cursor} + * is {@code null}, the default drag cursor behavior is * activated for this drag operation, otherwise it is deactivated. * * @param c the initial {@code Cursor} for this drag operation, @@ -298,25 +298,25 @@ } /** - * Returns the current drag Cursor. + * Returns the current drag {@code Cursor}. * - * @return the current drag Cursor + * @return the current drag {@code Cursor} */ public Cursor getCursor() { return cursor; } /** - * Add a DragSourceListener to this - * DragSourceContext if one has not already been added. - * If a DragSourceListener already exists, - * this method throws a TooManyListenersException. + * Add a {@code DragSourceListener} to this + * {@code DragSourceContext} if one has not already been added. + * If a {@code DragSourceListener} already exists, + * this method throws a {@code TooManyListenersException}. * - * @param dsl the DragSourceListener to add. - * Note that while null is not prohibited, + * @param dsl the {@code DragSourceListener} to add. + * Note that while {@code null} is not prohibited, * it is not acceptable as a parameter. * * @throws TooManyListenersException if - * a DragSourceListener has already been added + * a {@code DragSourceListener} has already been added */ public synchronized void addDragSourceListener(DragSourceListener dsl) throws TooManyListenersException { @@ -331,11 +331,11 @@ } /** - * Removes the specified DragSourceListener - * from this DragSourceContext. + * Removes the specified {@code DragSourceListener} + * from this {@code DragSourceContext}. * - * @param dsl the DragSourceListener to remove; - * note that while null is not prohibited, + * @param dsl the {@code DragSourceListener} to remove; + * note that while {@code null} is not prohibited, * it is not acceptable as a parameter */ @@ -347,8 +347,8 @@ } /** - * Notifies the peer that the Transferable's - * DataFlavors have changed. + * Notifies the peer that the {@code Transferable}'s + * {@code DataFlavor}s have changed. */ public void transferablesFlavorsChanged() { @@ -356,13 +356,13 @@ } /** - * Calls dragEnter on the - * DragSourceListeners registered with this - * DragSourceContext and with the associated - * DragSource, and passes them the specified - * DragSourceDragEvent. + * Calls {@code dragEnter} on the + * {@code DragSourceListener}s registered with this + * {@code DragSourceContext} and with the associated + * {@code DragSource}, and passes them the specified + * {@code DragSourceDragEvent}. * - * @param dsde the DragSourceDragEvent + * @param dsde the {@code DragSourceDragEvent} */ public void dragEnter(DragSourceDragEvent dsde) { DragSourceListener dsl = listener; @@ -375,13 +375,13 @@ } /** - * Calls dragOver on the - * DragSourceListeners registered with this - * DragSourceContext and with the associated - * DragSource, and passes them the specified - * DragSourceDragEvent. + * Calls {@code dragOver} on the + * {@code DragSourceListener}s registered with this + * {@code DragSourceContext} and with the associated + * {@code DragSource}, and passes them the specified + * {@code DragSourceDragEvent}. * - * @param dsde the DragSourceDragEvent + * @param dsde the {@code DragSourceDragEvent} */ public void dragOver(DragSourceDragEvent dsde) { DragSourceListener dsl = listener; @@ -394,13 +394,13 @@ } /** - * Calls dragExit on the - * DragSourceListeners registered with this - * DragSourceContext and with the associated - * DragSource, and passes them the specified - * DragSourceEvent. + * Calls {@code dragExit} on the + * {@code DragSourceListener}s registered with this + * {@code DragSourceContext} and with the associated + * {@code DragSource}, and passes them the specified + * {@code DragSourceEvent}. * - * @param dse the DragSourceEvent + * @param dse the {@code DragSourceEvent} */ public void dragExit(DragSourceEvent dse) { DragSourceListener dsl = listener; @@ -413,13 +413,13 @@ } /** - * Calls dropActionChanged on the - * DragSourceListeners registered with this - * DragSourceContext and with the associated - * DragSource, and passes them the specified - * DragSourceDragEvent. + * Calls {@code dropActionChanged} on the + * {@code DragSourceListener}s registered with this + * {@code DragSourceContext} and with the associated + * {@code DragSource}, and passes them the specified + * {@code DragSourceDragEvent}. * - * @param dsde the DragSourceDragEvent + * @param dsde the {@code DragSourceDragEvent} */ public void dropActionChanged(DragSourceDragEvent dsde) { DragSourceListener dsl = listener; @@ -432,13 +432,13 @@ } /** - * Calls dragDropEnd on the - * DragSourceListeners registered with this - * DragSourceContext and with the associated - * DragSource, and passes them the specified - * DragSourceDropEvent. + * Calls {@code dragDropEnd} on the + * {@code DragSourceListener}s registered with this + * {@code DragSourceContext} and with the associated + * {@code DragSource}, and passes them the specified + * {@code DragSourceDropEvent}. * - * @param dsde the DragSourceDropEvent + * @param dsde the {@code DragSourceDropEvent} */ public void dragDropEnd(DragSourceDropEvent dsde) { DragSourceListener dsl = listener; @@ -449,13 +449,13 @@ } /** - * Calls dragMouseMoved on the - * DragSourceMotionListeners registered with the - * DragSource associated with this - * DragSourceContext, and them passes the specified - * DragSourceDragEvent. + * Calls {@code dragMouseMoved} on the + * {@code DragSourceMotionListener}s registered with the + * {@code DragSource} associated with this + * {@code DragSourceContext}, and them passes the specified + * {@code DragSourceDragEvent}. * - * @param dsde the DragSourceDragEvent + * @param dsde the {@code DragSourceDragEvent} * @since 1.4 */ public void dragMouseMoved(DragSourceDragEvent dsde) { @@ -463,10 +463,10 @@ } /** - * Returns the Transferable associated with - * this DragSourceContext. + * Returns the {@code Transferable} associated with + * this {@code DragSourceContext}. * - * @return the Transferable + * @return the {@code Transferable} */ public Transferable getTransferable() { return transferable; } @@ -478,9 +478,9 @@ * * @param sourceAct the actions supported by the drag source * @param targetAct the drop target action - * @param status one of the fields DEFAULT, - * ENTER, OVER, - * CHANGED + * @param status one of the fields {@code DEFAULT}, + * {@code ENTER}, {@code OVER}, + * {@code CHANGED} */ @SuppressWarnings("fallthrough") protected synchronized void updateCurrentCursor(int sourceAct, int targetAct, int status) { @@ -532,21 +532,21 @@ } /** - * Serializes this DragSourceContext. This method first + * Serializes this {@code DragSourceContext}. This method first * performs default serialization. Next, this object's - * Transferable is written out if and only if it can be - * serialized. If not, null is written instead. In this case, - * a DragSourceContext created from the resulting deserialized - * stream will contain a dummy Transferable which supports no - * DataFlavors. Finally, this object's - * DragSourceListener is written out if and only if it can be - * serialized. If not, null is written instead. + * {@code Transferable} is written out if and only if it can be + * serialized. If not, {@code null} is written instead. In this case, + * a {@code DragSourceContext} created from the resulting deserialized + * stream will contain a dummy {@code Transferable} which supports no + * {@code DataFlavor}s. Finally, this object's + * {@code DragSourceListener} is written out if and only if it can be + * serialized. If not, {@code null} is written instead. * * @serialData The default serializable fields, in alphabetical order, - * followed by either a Transferable instance, or - * null, followed by either a - * DragSourceListener instance, or - * null. + * followed by either a {@code Transferable} instance, or + * {@code null}, followed by either a + * {@code DragSourceListener} instance, or + * {@code null}. * @since 1.4 */ private void writeObject(ObjectOutputStream s) throws IOException { @@ -559,14 +559,14 @@ } /** - * Deserializes this DragSourceContext. This method first - * performs default deserialization for all non-transient - * fields. This object's Transferable and - * DragSourceListener are then deserialized as well by using + * Deserializes this {@code DragSourceContext}. This method first + * performs default deserialization for all non-{@code transient} + * fields. This object's {@code Transferable} and + * {@code DragSourceListener} are then deserialized as well by using * the next two objects in the stream. If the resulting - * Transferable is null, this object's - * Transferable is set to a dummy Transferable - * which supports no DataFlavors. + * {@code Transferable} is {@code null}, this object's + * {@code Transferable} is set to a dummy {@code Transferable} + * which supports no {@code DataFlavor}s. * * @since 1.4 */ @@ -654,7 +654,7 @@ private transient DragSourceListener listener; /** - * true if the custom drag cursor is used instead of the + * {@code true} if the custom drag cursor is used instead of the * default one. * * @serial @@ -662,9 +662,9 @@ private boolean useCustomCursor; /** - * A bitwise mask of DnDConstants that represents the set of + * A bitwise mask of {@code DnDConstants} that represents the set of * drop actions supported by the drag source for the drag operation associated - * with this DragSourceContext. + * with this {@code DragSourceContext.} * * @serial */ --- old/src/java.desktop/share/classes/java/awt/dnd/DragSourceDragEvent.java 2015-10-04 22:53:16.389272681 +0400 +++ new/src/java.desktop/share/classes/java/awt/dnd/DragSourceDragEvent.java 2015-10-04 22:53:16.201272689 +0400 @@ -28,19 +28,19 @@ import java.awt.event.InputEvent; /** - * The DragSourceDragEvent is - * delivered from the DragSourceContextPeer, - * via the DragSourceContext, to the DragSourceListener - * registered with that DragSourceContext and with its associated - * DragSource. + * The {@code DragSourceDragEvent} is + * delivered from the {@code DragSourceContextPeer}, + * via the {@code DragSourceContext}, to the {@code DragSourceListener} + * registered with that {@code DragSourceContext} and with its associated + * {@code DragSource}. *

      - * The DragSourceDragEvent reports the target drop action + * The {@code DragSourceDragEvent} reports the target drop action * and the user drop action that reflect the current state of * the drag operation. *

      - * Target drop action is one of DnDConstants that represents + * Target drop action is one of {@code DnDConstants} that represents * the drop action selected by the current drop target if this drop action is - * supported by the drag source or DnDConstants.ACTION_NONE if this + * supported by the drag source or {@code DnDConstants.ACTION_NONE} if this * drop action is not supported by the drag source. *

      * User drop action depends on the drop actions supported by the drag @@ -52,18 +52,18 @@ * Shift -> ACTION_MOVE * * If the user selects a drop action, the user drop action is one of - * DnDConstants that represents the selected drop action if this + * {@code DnDConstants} that represents the selected drop action if this * drop action is supported by the drag source or - * DnDConstants.ACTION_NONE if this drop action is not supported + * {@code DnDConstants.ACTION_NONE} if this drop action is not supported * by the drag source. *

      * If the user doesn't select a drop action, the set of - * DnDConstants that represents the set of drop actions supported - * by the drag source is searched for DnDConstants.ACTION_MOVE, - * then for DnDConstants.ACTION_COPY, then for - * DnDConstants.ACTION_LINK and the user drop action is the + * {@code DnDConstants} that represents the set of drop actions supported + * by the drag source is searched for {@code DnDConstants.ACTION_MOVE}, + * then for {@code DnDConstants.ACTION_COPY}, then for + * {@code DnDConstants.ACTION_LINK} and the user drop action is the * first constant found. If no constant is found the user drop action - * is DnDConstants.ACTION_NONE. + * is {@code DnDConstants.ACTION_NONE}. * * @since 1.2 * @@ -74,25 +74,25 @@ private static final long serialVersionUID = 481346297933902471L; /** - * Constructs a DragSourceDragEvent. + * Constructs a {@code DragSourceDragEvent}. * This class is typically - * instantiated by the DragSourceContextPeer + * instantiated by the {@code DragSourceContextPeer} * rather than directly * by client code. - * The coordinates for this DragSourceDragEvent - * are not specified, so getLocation will return - * null for this event. + * The coordinates for this {@code DragSourceDragEvent} + * are not specified, so {@code getLocation} will return + * {@code null} for this event. *

      - * The arguments dropAction and action should - * be one of DnDConstants that represents a single action. - * The argument modifiers should be either a bitwise mask - * of old java.awt.event.InputEvent.*_MASK constants or a - * bitwise mask of extended java.awt.event.InputEvent.*_DOWN_MASK + * The arguments {@code dropAction} and {@code action} should + * be one of {@code DnDConstants} that represents a single action. + * The argument {@code modifiers} should be either a bitwise mask + * of old {@code java.awt.event.InputEvent.*_MASK} constants or a + * bitwise mask of extended {@code java.awt.event.InputEvent.*_DOWN_MASK} * constants. - * This constructor does not throw any exception for invalid dropAction, - * action and modifiers. + * This constructor does not throw any exception for invalid {@code dropAction}, + * {@code action} and {@code modifiers}. * - * @param dsc the DragSourceContext that is to manage + * @param dsc the {@code DragSourceContext} that is to manage * notifications for this event. * @param dropAction the user drop action. * @param action the target drop action. @@ -103,7 +103,7 @@ * in one event. Use of the extended modifiers is * preferred. * - * @throws IllegalArgumentException if dsc is null. + * @throws IllegalArgumentException if {@code dsc} is {@code null}. * * @see java.awt.event.InputEvent * @see DragSourceEvent#getLocation @@ -128,20 +128,20 @@ } /** - * Constructs a DragSourceDragEvent given the specified - * DragSourceContext, user drop action, target drop action, + * Constructs a {@code DragSourceDragEvent} given the specified + * {@code DragSourceContext}, user drop action, target drop action, * modifiers and coordinates. *

      - * The arguments dropAction and action should - * be one of DnDConstants that represents a single action. - * The argument modifiers should be either a bitwise mask - * of old java.awt.event.InputEvent.*_MASK constants or a - * bitwise mask of extended java.awt.event.InputEvent.*_DOWN_MASK + * The arguments {@code dropAction} and {@code action} should + * be one of {@code DnDConstants} that represents a single action. + * The argument {@code modifiers} should be either a bitwise mask + * of old {@code java.awt.event.InputEvent.*_MASK} constants or a + * bitwise mask of extended {@code java.awt.event.InputEvent.*_DOWN_MASK} * constants. - * This constructor does not throw any exception for invalid dropAction, - * action and modifiers. + * This constructor does not throw any exception for invalid {@code dropAction}, + * {@code action} and {@code modifiers}. * - * @param dsc the DragSourceContext associated with this + * @param dsc the {@code DragSourceContext} associated with this * event. * @param dropAction the user drop action. * @param action the target drop action. @@ -154,7 +154,7 @@ * @param x the horizontal coordinate for the cursor location * @param y the vertical coordinate for the cursor location * - * @throws IllegalArgumentException if dsc is null. + * @throws IllegalArgumentException if {@code dsc} is {@code null}. * * @see java.awt.event.InputEvent * @since 1.4 @@ -192,12 +192,12 @@ ((InputEvent.ALT_GRAPH_DOWN_MASK << 1) - 1) & ~JDK_1_3_MODIFIERS; /** - * This method returns an int representing + * This method returns an {@code int} representing * the current state of the input device modifiers * associated with the user's gesture. Typically these * would be mouse buttons or keyboard modifiers. *

      - * If the modifiers passed to the constructor + * If the {@code modifiers} passed to the constructor * are invalid, this method returns them unchanged. * * @return the current state of the input device modifiers @@ -208,12 +208,12 @@ } /** - * This method returns an int representing + * This method returns an {@code int} representing * the current state of the input device extended modifiers * associated with the user's gesture. * See {@link InputEvent#getModifiersEx} *

      - * If the modifiers passed to the constructor + * If the {@code modifiers} passed to the constructor * are invalid, this method returns them unchanged. * * @return the current state of the input device extended modifiers @@ -270,7 +270,7 @@ private int gestureModifiers = 0; /** - * Indicates whether the gestureModifiers are invalid. + * Indicates whether the {@code gestureModifiers} are invalid. * * @serial */ --- old/src/java.desktop/share/classes/java/awt/dnd/DragSourceDropEvent.java 2015-10-04 22:53:16.917272657 +0400 +++ new/src/java.desktop/share/classes/java/awt/dnd/DragSourceDropEvent.java 2015-10-04 22:53:16.729272665 +0400 @@ -26,12 +26,12 @@ package java.awt.dnd; /** - * The DragSourceDropEvent is delivered - * from the DragSourceContextPeer, - * via the DragSourceContext, to the dragDropEnd - * method of DragSourceListeners registered with that - * DragSourceContext and with its associated - * DragSource. + * The {@code DragSourceDropEvent} is delivered + * from the {@code DragSourceContextPeer}, + * via the {@code DragSourceContext}, to the {@code dragDropEnd} + * method of {@code DragSourceListener}s registered with that + * {@code DragSourceContext} and with its associated + * {@code DragSource}. * It contains sufficient information for the * originator of the operation * to provide appropriate feedback to the end user @@ -45,24 +45,24 @@ private static final long serialVersionUID = -5571321229470821891L; /** - * Construct a DragSourceDropEvent for a drop, + * Construct a {@code DragSourceDropEvent} for a drop, * given the - * DragSourceContext, the drop action, - * and a boolean indicating if the drop was successful. - * The coordinates for this DragSourceDropEvent - * are not specified, so getLocation will return - * null for this event. + * {@code DragSourceContext}, the drop action, + * and a {@code boolean} indicating if the drop was successful. + * The coordinates for this {@code DragSourceDropEvent} + * are not specified, so {@code getLocation} will return + * {@code null} for this event. *

      - * The argument action should be one of DnDConstants + * The argument {@code action} should be one of {@code DnDConstants} * that represents a single action. - * This constructor does not throw any exception for invalid action. + * This constructor does not throw any exception for invalid {@code action}. * - * @param dsc the DragSourceContext - * associated with this DragSourceDropEvent + * @param dsc the {@code DragSourceContext} + * associated with this {@code DragSourceDropEvent} * @param action the drop action * @param success a boolean indicating if the drop was successful * - * @throws IllegalArgumentException if dsc is null. + * @throws IllegalArgumentException if {@code dsc} is {@code null}. * * @see DragSourceEvent#getLocation */ @@ -75,22 +75,22 @@ } /** - * Construct a DragSourceDropEvent for a drop, given the - * DragSourceContext, the drop action, a boolean + * Construct a {@code DragSourceDropEvent} for a drop, given the + * {@code DragSourceContext}, the drop action, a {@code boolean} * indicating if the drop was successful, and coordinates. *

      - * The argument action should be one of DnDConstants + * The argument {@code action} should be one of {@code DnDConstants} * that represents a single action. - * This constructor does not throw any exception for invalid action. + * This constructor does not throw any exception for invalid {@code action}. * - * @param dsc the DragSourceContext - * associated with this DragSourceDropEvent + * @param dsc the {@code DragSourceContext} + * associated with this {@code DragSourceDropEvent} * @param action the drop action * @param success a boolean indicating if the drop was successful * @param x the horizontal coordinate for the cursor location * @param y the vertical coordinate for the cursor location * - * @throws IllegalArgumentException if dsc is null. + * @throws IllegalArgumentException if {@code dsc} is {@code null}. * * @since 1.4 */ @@ -103,15 +103,15 @@ } /** - * Construct a DragSourceDropEvent + * Construct a {@code DragSourceDropEvent} * for a drag that does not result in a drop. - * The coordinates for this DragSourceDropEvent - * are not specified, so getLocation will return - * null for this event. + * The coordinates for this {@code DragSourceDropEvent} + * are not specified, so {@code getLocation} will return + * {@code null} for this event. * - * @param dsc the DragSourceContext + * @param dsc the {@code DragSourceContext} * - * @throws IllegalArgumentException if dsc is null. + * @throws IllegalArgumentException if {@code dsc} is {@code null}. * * @see DragSourceEvent#getLocation */ @@ -123,12 +123,12 @@ } /** - * This method returns a boolean indicating + * This method returns a {@code boolean} indicating * if the drop was successful. * - * @return true if the drop target accepted the drop and + * @return {@code true} if the drop target accepted the drop and * successfully performed a drop action; - * false if the drop target rejected the drop or + * {@code false} if the drop target rejected the drop or * if the drop target accepted the drop, but failed to perform * a drop action. */ @@ -136,13 +136,13 @@ public boolean getDropSuccess() { return dropSuccess; } /** - * This method returns an int representing + * This method returns an {@code int} representing * the action performed by the target on the subject of the drop. * * @return the action performed by the target on the subject of the drop * if the drop target accepted the drop and the target drop action * is supported by the drag source; otherwise, - * DnDConstants.ACTION_NONE. + * {@code DnDConstants.ACTION_NONE}. */ public int getDropAction() { return dropAction; } @@ -152,7 +152,7 @@ */ /** - * true if the drop was successful. + * {@code true} if the drop was successful. * * @serial */ --- old/src/java.desktop/share/classes/java/awt/dnd/DragSourceEvent.java 2015-10-04 22:53:17.481272632 +0400 +++ new/src/java.desktop/share/classes/java/awt/dnd/DragSourceEvent.java 2015-10-04 22:53:17.289272640 +0400 @@ -31,23 +31,23 @@ /** * This class is the base class for - * DragSourceDragEvent and - * DragSourceDropEvent. + * {@code DragSourceDragEvent} and + * {@code DragSourceDropEvent}. *

      - * DragSourceEvents are generated whenever the drag enters, moves + * {@code DragSourceEvent}s are generated whenever the drag enters, moves * over, or exits a drop site, when the drop action changes, and when the drag - * ends. The location for the generated DragSourceEvent specifies + * ends. The location for the generated {@code DragSourceEvent} specifies * the mouse cursor location in screen coordinates at the moment this event * occurred. *

      * In a multi-screen environment without a virtual device, the cursor location is * specified in the coordinate system of the initiator - * GraphicsConfiguration. The initiator - * GraphicsConfiguration is the GraphicsConfiguration - * of the Component on which the drag gesture for the current drag + * {@code GraphicsConfiguration}. The initiator + * {@code GraphicsConfiguration} is the {@code GraphicsConfiguration} + * of the {@code Component} on which the drag gesture for the current drag * operation was recognized. If the cursor location is outside the bounds of - * the initiator GraphicsConfiguration, the reported coordinates are - * clipped to fit within the bounds of that GraphicsConfiguration. + * the initiator {@code GraphicsConfiguration}, the reported coordinates are + * clipped to fit within the bounds of that {@code GraphicsConfiguration}. *

      * In a multi-screen environment with a virtual device, the location is specified * in the corresponding virtual coordinate system. If the cursor location is @@ -62,7 +62,7 @@ private static final long serialVersionUID = -763287114604032641L; /** - * The boolean indicating whether the cursor location + * The {@code boolean} indicating whether the cursor location * is specified for this event. * * @serial @@ -88,15 +88,15 @@ private final int y; /** - * Construct a DragSourceEvent - * given a specified DragSourceContext. - * The coordinates for this DragSourceEvent - * are not specified, so getLocation will return - * null for this event. + * Construct a {@code DragSourceEvent} + * given a specified {@code DragSourceContext}. + * The coordinates for this {@code DragSourceEvent} + * are not specified, so {@code getLocation} will return + * {@code null} for this event. * - * @param dsc the DragSourceContext + * @param dsc the {@code DragSourceContext} * - * @throws IllegalArgumentException if dsc is null. + * @throws IllegalArgumentException if {@code dsc} is {@code null}. * * @see #getLocation */ @@ -109,15 +109,15 @@ } /** - * Construct a DragSourceEvent given a specified - * DragSourceContext, and coordinates of the cursor + * Construct a {@code DragSourceEvent} given a specified + * {@code DragSourceContext}, and coordinates of the cursor * location. * - * @param dsc the DragSourceContext + * @param dsc the {@code DragSourceContext} * @param x the horizontal coordinate for the cursor location * @param y the vertical coordinate for the cursor location * - * @throws IllegalArgumentException if dsc is null. + * @throws IllegalArgumentException if {@code dsc} is {@code null}. * * @since 1.4 */ @@ -129,10 +129,10 @@ } /** - * This method returns the DragSourceContext that + * This method returns the {@code DragSourceContext} that * originated the event. * - * @return the DragSourceContext that originated the event + * @return the {@code DragSourceContext} that originated the event */ public DragSourceContext getDragSourceContext() { @@ -140,13 +140,13 @@ } /** - * This method returns a Point indicating the cursor + * This method returns a {@code Point} indicating the cursor * location in screen coordinates at the moment this event occurred, or - * null if the cursor location is not specified for this + * {@code null} if the cursor location is not specified for this * event. * - * @return the Point indicating the cursor location - * or null if the cursor location is not specified + * @return the {@code Point} indicating the cursor location + * or {@code null} if the cursor location is not specified * @since 1.4 */ public Point getLocation() { --- old/src/java.desktop/share/classes/java/awt/dnd/DragSourceListener.java 2015-10-04 22:53:18.005272608 +0400 +++ new/src/java.desktop/share/classes/java/awt/dnd/DragSourceListener.java 2015-10-04 22:53:17.817272616 +0400 @@ -28,19 +28,19 @@ import java.util.EventListener; /** - * The DragSourceListener defines the + * The {@code DragSourceListener} defines the * event interface for originators of * Drag and Drop operations to track the state of the user's gesture, and to * provide appropriate "drag over" * feedback to the user throughout the * Drag and Drop operation. *

      - * The drop site is associated with the previous dragEnter() - * invocation if the latest invocation of dragEnter() on this + * The drop site is associated with the previous {@code dragEnter()} + * invocation if the latest invocation of {@code dragEnter()} on this * listener: *

        *
      • corresponds to that drop site and - *
      • is not followed by a dragExit() invocation on this listener. + *
      • is not followed by a {@code dragExit()} invocation on this listener. *
      * * @since 1.2 @@ -58,7 +58,7 @@ *
    4. The drop site accepts the drag. * * - * @param dsde the DragSourceDragEvent + * @param dsde the {@code DragSourceDragEvent} */ void dragEnter(DragSourceDragEvent dsde); @@ -73,7 +73,7 @@ *
    5. The drop site accepts the drag. * * - * @param dsde the DragSourceDragEvent + * @param dsde the {@code DragSourceDragEvent} */ void dragOver(DragSourceDragEvent dsde); @@ -84,7 +84,7 @@ * Such devices are typically the mouse buttons or keyboard * modifiers that the user is interacting with. * - * @param dsde the DragSourceDragEvent + * @param dsde the {@code DragSourceDragEvent} */ void dropActionChanged(DragSourceDragEvent dsde); @@ -106,21 +106,21 @@ * has rejected the drag. * * - * @param dse the DragSourceEvent + * @param dse the {@code DragSourceEvent} */ void dragExit(DragSourceEvent dse); /** * This method is invoked to signify that the Drag and Drop * operation is complete. The getDropSuccess() method of - * the DragSourceDropEvent can be used to + * the {@code DragSourceDropEvent} can be used to * determine the termination state. The getDropAction() method * returns the operation that the drop site selected * to apply to the Drop operation. Once this method is complete, the - * current DragSourceContext and + * current {@code DragSourceContext} and * associated resources become invalid. * - * @param dsde the DragSourceDropEvent + * @param dsde the {@code DragSourceDropEvent} */ void dragDropEnd(DragSourceDropEvent dsde); } --- old/src/java.desktop/share/classes/java/awt/dnd/DragSourceMotionListener.java 2015-10-04 22:53:18.529272585 +0400 +++ new/src/java.desktop/share/classes/java/awt/dnd/DragSourceMotionListener.java 2015-10-04 22:53:18.341272593 +0400 @@ -33,14 +33,14 @@ *

      * The class that is interested in processing mouse motion events during * a drag operation either implements this interface or extends the abstract - * DragSourceAdapter class (overriding only the methods of + * {@code DragSourceAdapter} class (overriding only the methods of * interest). *

      * Create a listener object using that class and then register it with - * a DragSource. Whenever the mouse moves during a drag - * operation initiated with this DragSource, that object's - * dragMouseMoved method is invoked, and the - * DragSourceDragEvent is passed to it. + * a {@code DragSource}. Whenever the mouse moves during a drag + * operation initiated with this {@code DragSource}, that object's + * {@code dragMouseMoved} method is invoked, and the + * {@code DragSourceDragEvent} is passed to it. * * @see DragSourceDragEvent * @see DragSource @@ -55,7 +55,7 @@ /** * Called whenever the mouse is moved during a drag operation. * - * @param dsde the DragSourceDragEvent + * @param dsde the {@code DragSourceDragEvent} */ void dragMouseMoved(DragSourceDragEvent dsde); } --- old/src/java.desktop/share/classes/java/awt/dnd/DropTarget.java 2015-10-04 22:53:19.309272549 +0400 +++ new/src/java.desktop/share/classes/java/awt/dnd/DropTarget.java 2015-10-04 22:53:19.121272558 +0400 @@ -54,15 +54,15 @@ /** - * The DropTarget is associated - * with a Component when that Component + * The {@code DropTarget} is associated + * with a {@code Component} when that {@code Component} * wishes * to accept drops during Drag and Drop operations. *

      * Each - * DropTarget is associated with a FlavorMap. - * The default FlavorMap hereafter designates the - * FlavorMap returned by SystemFlavorMap.getDefaultFlavorMap(). + * {@code DropTarget} is associated with a {@code FlavorMap}. + * The default {@code FlavorMap} hereafter designates the + * {@code FlavorMap} returned by {@code SystemFlavorMap.getDefaultFlavorMap()}. * * @since 1.2 */ @@ -72,20 +72,20 @@ private static final long serialVersionUID = -6283860791671019047L; /** - * Creates a new DropTarget given the Component - * to associate itself with, an int representing + * Creates a new DropTarget given the {@code Component} + * to associate itself with, an {@code int} representing * the default acceptable action(s) to - * support, a DropTargetListener - * to handle event processing, a boolean indicating - * if the DropTarget is currently accepting drops, and - * a FlavorMap to use (or null for the default FlavorMap). + * support, a {@code DropTargetListener} + * to handle event processing, a {@code boolean} indicating + * if the {@code DropTarget} is currently accepting drops, and + * a {@code FlavorMap} to use (or null for the default {@code FlavorMap}). *

      * The Component will receive drops only if it is enabled. - * @param c The Component with which this DropTarget is associated - * @param ops The default acceptable actions for this DropTarget - * @param dtl The DropTargetListener for this DropTarget - * @param act Is the DropTarget accepting drops. - * @param fm The FlavorMap to use, or null for the default FlavorMap + * @param c The {@code Component} with which this {@code DropTarget} is associated + * @param ops The default acceptable actions for this {@code DropTarget} + * @param dtl The {@code DropTargetListener} for this {@code DropTarget} + * @param act Is the {@code DropTarget} accepting drops. + * @param fm The {@code FlavorMap} to use, or null for the default {@code FlavorMap} * @exception HeadlessException if GraphicsEnvironment.isHeadless() * returns true * @see java.awt.GraphicsEnvironment#isHeadless @@ -121,18 +121,18 @@ } /** - * Creates a DropTarget given the Component - * to associate itself with, an int representing + * Creates a {@code DropTarget} given the {@code Component} + * to associate itself with, an {@code int} representing * the default acceptable action(s) - * to support, a DropTargetListener - * to handle event processing, and a boolean indicating - * if the DropTarget is currently accepting drops. + * to support, a {@code DropTargetListener} + * to handle event processing, and a {@code boolean} indicating + * if the {@code DropTarget} is currently accepting drops. *

      * The Component will receive drops only if it is enabled. - * @param c The Component with which this DropTarget is associated - * @param ops The default acceptable actions for this DropTarget - * @param dtl The DropTargetListener for this DropTarget - * @param act Is the DropTarget accepting drops. + * @param c The {@code Component} with which this {@code DropTarget} is associated + * @param ops The default acceptable actions for this {@code DropTarget} + * @param dtl The {@code DropTargetListener} for this {@code DropTarget} + * @param act Is the {@code DropTarget} accepting drops. * @exception HeadlessException if GraphicsEnvironment.isHeadless() * returns true * @see java.awt.GraphicsEnvironment#isHeadless @@ -145,7 +145,7 @@ } /** - * Creates a DropTarget. + * Creates a {@code DropTarget}. * @exception HeadlessException if GraphicsEnvironment.isHeadless() * returns true * @see java.awt.GraphicsEnvironment#isHeadless @@ -155,13 +155,13 @@ } /** - * Creates a DropTarget given the Component - * to associate itself with, and the DropTargetListener + * Creates a {@code DropTarget} given the {@code Component} + * to associate itself with, and the {@code DropTargetListener} * to handle event processing. *

      * The Component will receive drops only if it is enabled. - * @param c The Component with which this DropTarget is associated - * @param dtl The DropTargetListener for this DropTarget + * @param c The {@code Component} with which this {@code DropTarget} is associated + * @param dtl The {@code DropTargetListener} for this {@code DropTarget} * @exception HeadlessException if GraphicsEnvironment.isHeadless() * returns true * @see java.awt.GraphicsEnvironment#isHeadless @@ -173,15 +173,15 @@ } /** - * Creates a DropTarget given the Component - * to associate itself with, an int representing + * Creates a {@code DropTarget} given the {@code Component} + * to associate itself with, an {@code int} representing * the default acceptable action(s) to support, and a - * DropTargetListener to handle event processing. + * {@code DropTargetListener} to handle event processing. *

      * The Component will receive drops only if it is enabled. - * @param c The Component with which this DropTarget is associated - * @param ops The default acceptable actions for this DropTarget - * @param dtl The DropTargetListener for this DropTarget + * @param c The {@code Component} with which this {@code DropTarget} is associated + * @param ops The default acceptable actions for this {@code DropTarget} + * @param dtl The {@code DropTargetListener} for this {@code DropTarget} * @exception HeadlessException if GraphicsEnvironment.isHeadless() * returns true * @see java.awt.GraphicsEnvironment#isHeadless @@ -195,11 +195,11 @@ /** * Note: this interface is required to permit the safe association * of a DropTarget with a Component in one of two ways, either: - * component.setDropTarget(droptarget); - * or droptarget.setComponent(component); + * {@code component.setDropTarget(droptarget);} + * or {@code droptarget.setComponent(component);} *

      * The Component will receive drops only if it is enabled. - * @param c The new Component this DropTarget + * @param c The new {@code Component} this {@code DropTarget} * is to be associated with. */ @@ -229,10 +229,10 @@ } /** - * Gets the Component associated - * with this DropTarget. + * Gets the {@code Component} associated + * with this {@code DropTarget}. * - * @return the current Component + * @return the current {@code Component} */ public synchronized Component getComponent() { @@ -240,7 +240,7 @@ } /** - * Sets the default acceptable actions for this DropTarget + * Sets the default acceptable actions for this {@code DropTarget} * * @param ops the default actions * @see java.awt.dnd.DnDConstants @@ -259,8 +259,8 @@ } /** - * Gets an int representing the - * current action(s) supported by this DropTarget. + * Gets an {@code int} representing the + * current action(s) supported by this {@code DropTarget}. * * @return the current default actions */ @@ -270,10 +270,10 @@ } /** - * Sets the DropTarget active if true, - * inactive if false. + * Sets the DropTarget active if {@code true}, + * inactive if {@code false}. * - * @param isActive sets the DropTarget (in)active. + * @param isActive sets the {@code DropTarget} (in)active. */ public synchronized void setActive(boolean isActive) { @@ -286,10 +286,10 @@ /** * Reports whether or not - * this DropTarget + * this {@code DropTarget} * is currently active (ready to accept drops). * - * @return true if active, false if not + * @return {@code true} if active, {@code false} if not */ public boolean isActive() { @@ -297,13 +297,13 @@ } /** - * Adds a new DropTargetListener (UNICAST SOURCE). + * Adds a new {@code DropTargetListener} (UNICAST SOURCE). * - * @param dtl The new DropTargetListener + * @param dtl The new {@code DropTargetListener} * * @throws TooManyListenersException if a - * DropTargetListener is already added to this - * DropTarget. + * {@code DropTargetListener} is already added to this + * {@code DropTarget}. */ public synchronized void addDropTargetListener(DropTargetListener dtl) throws TooManyListenersException { @@ -318,7 +318,7 @@ } /** - * Removes the current DropTargetListener (UNICAST SOURCE). + * Removes the current {@code DropTargetListener} (UNICAST SOURCE). * * @param dtl the DropTargetListener to deregister. */ @@ -333,16 +333,16 @@ } /** - * Calls dragEnter on the registered - * DropTargetListener and passes it - * the specified DropTargetDragEvent. - * Has no effect if this DropTarget + * Calls {@code dragEnter} on the registered + * {@code DropTargetListener} and passes it + * the specified {@code DropTargetDragEvent}. + * Has no effect if this {@code DropTarget} * is not active. * - * @param dtde the DropTargetDragEvent + * @param dtde the {@code DropTargetDragEvent} * - * @throws NullPointerException if this DropTarget - * is active and dtde is null + * @throws NullPointerException if this {@code DropTarget} + * is active and {@code dtde} is {@code null} * * @see #isActive */ @@ -360,16 +360,16 @@ } /** - * Calls dragOver on the registered - * DropTargetListener and passes it - * the specified DropTargetDragEvent. - * Has no effect if this DropTarget + * Calls {@code dragOver} on the registered + * {@code DropTargetListener} and passes it + * the specified {@code DropTargetDragEvent}. + * Has no effect if this {@code DropTarget} * is not active. * - * @param dtde the DropTargetDragEvent + * @param dtde the {@code DropTargetDragEvent} * - * @throws NullPointerException if this DropTarget - * is active and dtde is null + * @throws NullPointerException if this {@code DropTarget} + * is active and {@code dtde} is {@code null} * * @see #isActive */ @@ -382,16 +382,16 @@ } /** - * Calls dropActionChanged on the registered - * DropTargetListener and passes it - * the specified DropTargetDragEvent. - * Has no effect if this DropTarget + * Calls {@code dropActionChanged} on the registered + * {@code DropTargetListener} and passes it + * the specified {@code DropTargetDragEvent}. + * Has no effect if this {@code DropTarget} * is not active. * - * @param dtde the DropTargetDragEvent + * @param dtde the {@code DropTargetDragEvent} * - * @throws NullPointerException if this DropTarget - * is active and dtde is null + * @throws NullPointerException if this {@code DropTarget} + * is active and {@code dtde} is {@code null} * * @see #isActive */ @@ -404,17 +404,17 @@ } /** - * Calls dragExit on the registered - * DropTargetListener and passes it - * the specified DropTargetEvent. - * Has no effect if this DropTarget + * Calls {@code dragExit} on the registered + * {@code DropTargetListener} and passes it + * the specified {@code DropTargetEvent}. + * Has no effect if this {@code DropTarget} * is not active. *

      * This method itself does not throw any exception * for null parameter but for exceptions thrown by * the respective method of the listener. * - * @param dte the DropTargetEvent + * @param dte the {@code DropTargetEvent} * * @see #isActive */ @@ -429,17 +429,17 @@ } /** - * Calls drop on the registered - * DropTargetListener and passes it - * the specified DropTargetDropEvent - * if this DropTarget is active. + * Calls {@code drop} on the registered + * {@code DropTargetListener} and passes it + * the specified {@code DropTargetDropEvent} + * if this {@code DropTarget} is active. * - * @param dtde the DropTargetDropEvent + * @param dtde the {@code DropTargetDropEvent} * - * @throws NullPointerException if dtde is null + * @throws NullPointerException if {@code dtde} is null * and at least one of the following is true: this - * DropTarget is not active, or there is - * no a DropTargetListener registered. + * {@code DropTarget} is not active, or there is + * no a {@code DropTargetListener} registered. * * @see #isActive */ @@ -456,11 +456,11 @@ } /** - * Gets the FlavorMap - * associated with this DropTarget. - * If no FlavorMap has been set for this - * DropTarget, it is associated with the default - * FlavorMap. + * Gets the {@code FlavorMap} + * associated with this {@code DropTarget}. + * If no {@code FlavorMap} has been set for this + * {@code DropTarget}, it is associated with the default + * {@code FlavorMap}. * * @return the FlavorMap for this DropTarget */ @@ -468,10 +468,10 @@ public FlavorMap getFlavorMap() { return flavorMap; } /** - * Sets the FlavorMap associated - * with this DropTarget. + * Sets the {@code FlavorMap} associated + * with this {@code DropTarget}. * - * @param fm the new FlavorMap, or null to + * @param fm the new {@code FlavorMap}, or null to * associate the default FlavorMap with this DropTarget. */ @@ -544,10 +544,10 @@ } /** - * Gets the DropTargetContext associated - * with this DropTarget. + * Gets the {@code DropTargetContext} associated + * with this {@code DropTarget}. * - * @return the DropTargetContext associated with this DropTarget. + * @return the {@code DropTargetContext} associated with this {@code DropTarget}. */ public DropTargetContext getDropTargetContext() { @@ -571,14 +571,14 @@ } /** - * Serializes this DropTarget. Performs default serialization, - * and then writes out this object's DropTargetListener if and - * only if it can be serialized. If not, null is written + * Serializes this {@code DropTarget}. Performs default serialization, + * and then writes out this object's {@code DropTargetListener} if and + * only if it can be serialized. If not, {@code null} is written * instead. * * @serialData The default serializable fields, in alphabetical order, - * followed by either a DropTargetListener - * instance, or null. + * followed by either a {@code DropTargetListener} + * instance, or {@code null}. * @since 1.4 */ private void writeObject(ObjectOutputStream s) throws IOException { @@ -589,13 +589,13 @@ } /** - * Deserializes this DropTarget. This method first performs - * default deserialization for all non-transient fields. An + * Deserializes this {@code DropTarget}. This method first performs + * default deserialization for all non-{@code transient} fields. An * attempt is then made to deserialize this object's - * DropTargetListener as well. This is first attempted by - * deserializing the field dtListener, because, in releases - * prior to 1.4, a non-transient field of this name stored the - * DropTargetListener. If this fails, the next object in the + * {@code DropTargetListener} as well. This is first attempted by + * deserializing the field {@code dtListener}, because, in releases + * prior to 1.4, a non-{@code transient} field of this name stored the + * {@code DropTargetListener}. If this fails, the next object in the * stream is used instead. * * @since 1.4 @@ -639,8 +639,8 @@ /** * construct a DropTargetAutoScroller * - * @param c the Component - * @param p the Point + * @param c the {@code Component} + * @param p the {@code Point} */ protected DropTargetAutoScroller(Component c, Point p) { @@ -709,7 +709,7 @@ /** * cause autoscroll to occur * - * @param newLocn the Point + * @param newLocn the {@code Point} */ protected synchronized void updateLocation(Point newLocn) { @@ -733,7 +733,7 @@ /** * cause autoscroll to occur * - * @param e the ActionEvent + * @param e the {@code ActionEvent} */ public synchronized void actionPerformed(ActionEvent e) { @@ -766,8 +766,8 @@ /** * create an embedded autoscroller * - * @param c the Component - * @param p the Point + * @param c the {@code Component} + * @param p the {@code Point} * @return an embedded autoscroller */ @@ -778,7 +778,7 @@ /** * initialize autoscrolling * - * @param p the Point + * @param p the {@code Point} */ protected void initializeAutoscrolling(Point p) { @@ -790,7 +790,7 @@ /** * update autoscrolling with current cursor location * - * @param dragCursorLocn the Point + * @param dragCursorLocn the {@code Point} */ protected void updateAutoscroll(Point dragCursorLocn) { @@ -843,7 +843,7 @@ int actions = DnDConstants.ACTION_COPY_OR_MOVE; /** - * true if the DropTarget is accepting Drag & Drop operations. + * {@code true} if the DropTarget is accepting Drag & Drop operations. * * @serial */ --- old/src/java.desktop/share/classes/java/awt/dnd/DropTargetAdapter.java 2015-10-04 22:53:19.853272525 +0400 +++ new/src/java.desktop/share/classes/java/awt/dnd/DropTargetAdapter.java 2015-10-04 22:53:19.661272534 +0400 @@ -30,39 +30,39 @@ * this class are empty. This class exists only as a convenience for creating * listener objects. *

      - * Extend this class to create a DropTargetEvent listener + * Extend this class to create a {@code DropTargetEvent} listener * and override the methods for the events of interest. (If you implement the - * DropTargetListener interface, you have to define all of + * {@code DropTargetListener} interface, you have to define all of * the methods in it. This abstract class defines a null implementation for - * every method except drop(DropTargetDropEvent), so you only have + * every method except {@code drop(DropTargetDropEvent)}, so you only have * to define methods for events you care about.) You must provide an - * implementation for at least drop(DropTargetDropEvent). This + * implementation for at least {@code drop(DropTargetDropEvent)}. This * method cannot have a null implementation because its specification requires * that you either accept or reject the drop, and, if accepted, indicate * whether the drop was successful. *

      * Create a listener object using the extended class and then register it with - * a DropTarget. When the drag enters, moves over, or exits - * the operable part of the drop site for that DropTarget, when + * a {@code DropTarget}. When the drag enters, moves over, or exits + * the operable part of the drop site for that {@code DropTarget}, when * the drop action changes, and when the drop occurs, the relevant method in - * the listener object is invoked, and the DropTargetEvent is + * the listener object is invoked, and the {@code DropTargetEvent} is * passed to it. *

      - * The operable part of the drop site for the DropTarget is - * the part of the associated Component's geometry that is not + * The operable part of the drop site for the {@code DropTarget} is + * the part of the associated {@code Component}'s geometry that is not * obscured by an overlapping top-level window or by another - * Component higher in the Z-order that has an associated active - * DropTarget. + * {@code Component} higher in the Z-order that has an associated active + * {@code DropTarget}. *

      * During the drag, the data associated with the current drag operation can be - * retrieved by calling getTransferable() on - * DropTargetDragEvent instances passed to the listener's + * retrieved by calling {@code getTransferable()} on + * {@code DropTargetDragEvent} instances passed to the listener's * methods. *

      - * Note that getTransferable() on the - * DropTargetDragEvent instance should only be called within the + * Note that {@code getTransferable()} on the + * {@code DropTargetDragEvent} instance should only be called within the * respective listener's method and all the necessary data should be retrieved - * from the returned Transferable before that method returns. + * from the returned {@code Transferable} before that method returns. * * @see DropTargetEvent * @see DropTargetListener @@ -74,19 +74,19 @@ /** * Called while a drag operation is ongoing, when the mouse pointer enters - * the operable part of the drop site for the DropTarget + * the operable part of the drop site for the {@code DropTarget} * registered with this listener. * - * @param dtde the DropTargetDragEvent + * @param dtde the {@code DropTargetDragEvent} */ public void dragEnter(DropTargetDragEvent dtde) {} /** * Called when a drag operation is ongoing, while the mouse pointer is still - * over the operable part of the drop site for the DropTarget + * over the operable part of the drop site for the {@code DropTarget} * registered with this listener. * - * @param dtde the DropTargetDragEvent + * @param dtde the {@code DropTargetDragEvent} */ public void dragOver(DropTargetDragEvent dtde) {} @@ -94,16 +94,16 @@ * Called if the user has modified * the current drop gesture. * - * @param dtde the DropTargetDragEvent + * @param dtde the {@code DropTargetDragEvent} */ public void dropActionChanged(DropTargetDragEvent dtde) {} /** * Called while a drag operation is ongoing, when the mouse pointer has * exited the operable part of the drop site for the - * DropTarget registered with this listener. + * {@code DropTarget} registered with this listener. * - * @param dte the DropTargetEvent + * @param dte the {@code DropTargetEvent} */ public void dragExit(DropTargetEvent dte) {} } --- old/src/java.desktop/share/classes/java/awt/dnd/DropTargetDragEvent.java 2015-10-04 22:53:20.373272502 +0400 +++ new/src/java.desktop/share/classes/java/awt/dnd/DropTargetDragEvent.java 2015-10-04 22:53:20.185272510 +0400 @@ -33,15 +33,15 @@ import java.util.List; /** - * The DropTargetDragEvent is delivered to a - * DropTargetListener via its + * The {@code DropTargetDragEvent} is delivered to a + * {@code DropTargetListener} via its * dragEnter() and dragOver() methods. *

      - * The DropTargetDragEvent reports the source drop actions + * The {@code DropTargetDragEvent} reports the source drop actions * and the user drop action that reflect the current state of * the drag operation. *

      - * Source drop actions is a bitwise mask of DnDConstants + * Source drop actions is a bitwise mask of {@code DnDConstants} * that represents the set of drop actions supported by the drag source for * this drag operation. *

      @@ -54,18 +54,18 @@ * Shift -> ACTION_MOVE * * If the user selects a drop action, the user drop action is one of - * DnDConstants that represents the selected drop action if this + * {@code DnDConstants} that represents the selected drop action if this * drop action is supported by the drag source or - * DnDConstants.ACTION_NONE if this drop action is not supported + * {@code DnDConstants.ACTION_NONE} if this drop action is not supported * by the drag source. *

      * If the user doesn't select a drop action, the set of - * DnDConstants that represents the set of drop actions supported - * by the drag source is searched for DnDConstants.ACTION_MOVE, - * then for DnDConstants.ACTION_COPY, then for - * DnDConstants.ACTION_LINK and the user drop action is the + * {@code DnDConstants} that represents the set of drop actions supported + * by the drag source is searched for {@code DnDConstants.ACTION_MOVE}, + * then for {@code DnDConstants.ACTION_COPY}, then for + * {@code DnDConstants.ACTION_LINK} and the user drop action is the * first constant found. If no constant is found the user drop action - * is DnDConstants.ACTION_NONE. + * is {@code DnDConstants.ACTION_NONE}. * * @since 1.2 */ @@ -75,10 +75,10 @@ private static final long serialVersionUID = -8422265619058953682L; /** - * Construct a DropTargetDragEvent given the - * DropTargetContext for this operation, - * the location of the "Drag" Cursor's hotspot - * in the Component's coordinates, the + * Construct a {@code DropTargetDragEvent} given the + * {@code DropTargetContext} for this operation, + * the location of the "Drag" {@code Cursor}'s hotspot + * in the {@code Component}'s coordinates, the * user drop action, and the source drop actions. * * @param dtc The DropTargetContext for this operation @@ -89,10 +89,10 @@ * * @throws NullPointerException if cursorLocn is null * @throws IllegalArgumentException if dropAction is not one of - * DnDConstants. + * {@code DnDConstants}. * @throws IllegalArgumentException if srcActions is not - * a bitwise mask of DnDConstants. - * @throws IllegalArgumentException if dtc is null. + * a bitwise mask of {@code DnDConstants}. + * @throws IllegalArgumentException if dtc is {@code null}. */ public DropTargetDragEvent(DropTargetContext dtc, Point cursorLocn, int dropAction, int srcActions) { @@ -114,13 +114,13 @@ } /** - * This method returns a Point - * indicating the Cursor's current - * location within the Component's + * This method returns a {@code Point} + * indicating the {@code Cursor}'s current + * location within the {@code Component'}s * coordinates. * * @return the current cursor location in - * Component's coords. + * {@code Component}'s coords. */ public Point getLocation() { @@ -129,8 +129,8 @@ /** - * This method returns the current DataFlavors from the - * DropTargetContext. + * This method returns the current {@code DataFlavor}s from the + * {@code DropTargetContext}. * * @return current DataFlavors from the DropTargetContext */ @@ -140,10 +140,10 @@ } /** - * This method returns the current DataFlavors - * as a java.util.List + * This method returns the current {@code DataFlavor}s + * as a {@code java.util.List} * - * @return a java.util.List of the Current DataFlavors + * @return a {@code java.util.List} of the Current {@code DataFlavor}s */ public List getCurrentDataFlavorsAsList() { @@ -151,10 +151,10 @@ } /** - * This method returns a boolean indicating - * if the specified DataFlavor is supported. + * This method returns a {@code boolean} indicating + * if the specified {@code DataFlavor} is supported. * - * @param df the DataFlavor to test + * @param df the {@code DataFlavor} to test * * @return if a particular DataFlavor is supported */ @@ -195,11 +195,11 @@ * Accepts the drag. * * This method should be called from a - * DropTargetListeners dragEnter, - * dragOver, and dropActionChanged + * {@code DropTargetListeners dragEnter}, + * {@code dragOver}, and {@code dropActionChanged} * methods if the implementation wishes to accept an operation * from the srcActions other than the one selected by - * the user as represented by the dropAction. + * the user as represented by the {@code dropAction}. * * @param dragOperation the operation accepted by the target */ @@ -209,7 +209,7 @@ /** * Rejects the drag as a result of examining either the - * dropAction or the available DataFlavor + * {@code dropAction} or the available {@code DataFlavor} * types. */ public void rejectDrag() { --- old/src/java.desktop/share/classes/java/awt/dnd/DropTargetDropEvent.java 2015-10-04 22:53:20.905272478 +0400 +++ new/src/java.desktop/share/classes/java/awt/dnd/DropTargetDropEvent.java 2015-10-04 22:53:20.713272486 +0400 @@ -33,14 +33,14 @@ import java.util.List; /** - * The DropTargetDropEvent is delivered - * via the DropTargetListener drop() method. + * The {@code DropTargetDropEvent} is delivered + * via the {@code DropTargetListener} drop() method. *

      - * The DropTargetDropEvent reports the source drop actions + * The {@code DropTargetDropEvent} reports the source drop actions * and the user drop action that reflect the current state of the * drag-and-drop operation. *

      - * Source drop actions is a bitwise mask of DnDConstants + * Source drop actions is a bitwise mask of {@code DnDConstants} * that represents the set of drop actions supported by the drag source for * this drag-and-drop operation. *

      @@ -53,18 +53,18 @@ * Shift -> ACTION_MOVE * * If the user selects a drop action, the user drop action is one of - * DnDConstants that represents the selected drop action if this + * {@code DnDConstants} that represents the selected drop action if this * drop action is supported by the drag source or - * DnDConstants.ACTION_NONE if this drop action is not supported + * {@code DnDConstants.ACTION_NONE} if this drop action is not supported * by the drag source. *

      * If the user doesn't select a drop action, the set of - * DnDConstants that represents the set of drop actions supported - * by the drag source is searched for DnDConstants.ACTION_MOVE, - * then for DnDConstants.ACTION_COPY, then for - * DnDConstants.ACTION_LINK and the user drop action is the + * {@code DnDConstants} that represents the set of drop actions supported + * by the drag source is searched for {@code DnDConstants.ACTION_MOVE}, + * then for {@code DnDConstants.ACTION_COPY}, then for + * {@code DnDConstants.ACTION_LINK} and the user drop action is the * first constant found. If no constant is found the user drop action - * is DnDConstants.ACTION_NONE. + * is {@code DnDConstants.ACTION_NONE}. * * @since 1.2 */ @@ -74,31 +74,31 @@ private static final long serialVersionUID = -1721911170440459322L; /** - * Construct a DropTargetDropEvent given - * the DropTargetContext for this operation, - * the location of the drag Cursor's - * hotspot in the Component's coordinates, + * Construct a {@code DropTargetDropEvent} given + * the {@code DropTargetContext} for this operation, + * the location of the drag {@code Cursor}'s + * hotspot in the {@code Component}'s coordinates, * the currently * selected user drop action, and the current set of * actions supported by the source. * By default, this constructor * assumes that the target is not in the same virtual machine as * the source; that is, {@link #isLocalTransfer()} will - * return false. + * return {@code false}. * - * @param dtc The DropTargetContext for this operation + * @param dtc The {@code DropTargetContext} for this operation * @param cursorLocn The location of the "Drag" Cursor's - * hotspot in Component coordinates + * hotspot in {@code Component} coordinates * @param dropAction the user drop action. * @param srcActions the source drop actions. * * @throws NullPointerException - * if cursorLocn is null + * if cursorLocn is {@code null} * @throws IllegalArgumentException - * if dropAction is not one of DnDConstants. + * if dropAction is not one of {@code DnDConstants}. * @throws IllegalArgumentException - * if srcActions is not a bitwise mask of DnDConstants. - * @throws IllegalArgumentException if dtc is null. + * if srcActions is not a bitwise mask of {@code DnDConstants}. + * @throws IllegalArgumentException if dtc is {@code null}. */ public DropTargetDropEvent(DropTargetContext dtc, Point cursorLocn, int dropAction, int srcActions) { @@ -120,13 +120,13 @@ } /** - * Construct a DropTargetEvent given the - * DropTargetContext for this operation, - * the location of the drag Cursor's hotspot - * in the Component's + * Construct a {@code DropTargetEvent} given the + * {@code DropTargetContext} for this operation, + * the location of the drag {@code Cursor}'s hotspot + * in the {@code Component}'s * coordinates, the currently selected user drop action, * the current set of actions supported by the source, - * and a boolean indicating if the source is in the same JVM + * and a {@code boolean} indicating if the source is in the same JVM * as the target. * * @param dtc The DropTargetContext for this operation @@ -137,11 +137,11 @@ * @param isLocal True if the source is in the same JVM as the target * * @throws NullPointerException - * if cursorLocn is null + * if cursorLocn is {@code null} * @throws IllegalArgumentException - * if dropAction is not one of DnDConstants. - * @throws IllegalArgumentException if srcActions is not a bitwise mask of DnDConstants. - * @throws IllegalArgumentException if dtc is null. + * if dropAction is not one of {@code DnDConstants}. + * @throws IllegalArgumentException if srcActions is not a bitwise mask of {@code DnDConstants}. + * @throws IllegalArgumentException if dtc is {@code null}. */ public DropTargetDropEvent(DropTargetContext dtc, Point cursorLocn, int dropAction, int srcActions, boolean isLocal) { @@ -151,11 +151,11 @@ } /** - * This method returns a Point - * indicating the Cursor's current - * location in the Component's coordinates. + * This method returns a {@code Point} + * indicating the {@code Cursor}'s current + * location in the {@code Component}'s coordinates. * - * @return the current Cursor location in Component's coords. + * @return the current {@code Cursor} location in Component's coords. */ public Point getLocation() { @@ -175,7 +175,7 @@ /** * This method returns the currently available - * DataFlavors as a java.util.List. + * {@code DataFlavor}s as a {@code java.util.List}. * * @return the currently available DataFlavors as a java.util.List */ @@ -185,11 +185,11 @@ } /** - * This method returns a boolean indicating if the - * specified DataFlavor is available + * This method returns a {@code boolean} indicating if the + * specified {@code DataFlavor} is available * from the source. * - * @param df the DataFlavor to test + * @param df the {@code DataFlavor} to test * * @return if the DataFlavor specified is available from the source */ @@ -213,10 +213,10 @@ public int getDropAction() { return dropAction; } /** - * This method returns the Transferable object + * This method returns the {@code Transferable} object * associated with the drop. * - * @return the Transferable associated with the drop + * @return the {@code Transferable} associated with the drop */ public Transferable getTransferable() { @@ -242,10 +242,10 @@ } /** - * This method notifies the DragSource + * This method notifies the {@code DragSource} * that the drop transfer(s) are completed. * - * @param success a boolean indicating that the drop transfer(s) are completed. + * @param success a {@code boolean} indicating that the drop transfer(s) are completed. */ public void dropComplete(boolean success) { @@ -253,7 +253,7 @@ } /** - * This method returns an int indicating if + * This method returns an {@code int} indicating if * the source is in the same JVM as the target. * * @return if the Source is in the same JVM @@ -291,7 +291,7 @@ private int dropAction = DnDConstants.ACTION_NONE; /** - * true if the source is in the same JVM as the target. + * {@code true} if the source is in the same JVM as the target. * * @serial */ --- old/src/java.desktop/share/classes/java/awt/dnd/DropTargetEvent.java 2015-10-04 22:53:21.433272454 +0400 +++ new/src/java.desktop/share/classes/java/awt/dnd/DropTargetEvent.java 2015-10-04 22:53:21.241272463 +0400 @@ -29,12 +29,12 @@ import java.awt.dnd.DropTargetContext; /** - * The DropTargetEvent is the base - * class for both the DropTargetDragEvent - * and the DropTargetDropEvent. + * The {@code DropTargetEvent} is the base + * class for both the {@code DropTargetDragEvent} + * and the {@code DropTargetDropEvent}. * It encapsulates the current state of the Drag and * Drop operations, in particular the current - * DropTargetContext. + * {@code DropTargetContext}. * * @since 1.2 * @@ -45,10 +45,10 @@ private static final long serialVersionUID = 2821229066521922993L; /** - * Construct a DropTargetEvent object with - * the specified DropTargetContext. + * Construct a {@code DropTargetEvent} object with + * the specified {@code DropTargetContext}. * - * @param dtc The DropTargetContext + * @param dtc The {@code DropTargetContext} * @throws NullPointerException if {@code dtc} equals {@code null}. * @see #getSource() * @see #getDropTargetContext() @@ -61,10 +61,10 @@ } /** - * This method returns the DropTargetContext - * associated with this DropTargetEvent. + * This method returns the {@code DropTargetContext} + * associated with this {@code DropTargetEvent}. * - * @return the DropTargetContext + * @return the {@code DropTargetContext} */ public DropTargetContext getDropTargetContext() { @@ -72,8 +72,8 @@ } /** - * The DropTargetContext associated with this - * DropTargetEvent. + * The {@code DropTargetContext} associated with this + * {@code DropTargetEvent}. * * @serial */ --- old/src/java.desktop/share/classes/java/awt/dnd/DropTargetListener.java 2015-10-04 22:53:21.957272431 +0400 +++ new/src/java.desktop/share/classes/java/awt/dnd/DropTargetListener.java 2015-10-04 22:53:21.769272439 +0400 @@ -31,37 +31,37 @@ import java.awt.dnd.DropTargetDropEvent; /** - * The DropTargetListener interface + * The {@code DropTargetListener} interface * is the callback interface used by the - * DropTarget class to provide + * {@code DropTarget} class to provide * notification of DnD operations that involve - * the subject DropTarget. Methods of + * the subject {@code DropTarget}. Methods of * this interface may be implemented to provide * "drag under" visual feedback to the user throughout * the Drag and Drop operation. *

      * Create a listener object by implementing the interface and then register it - * with a DropTarget. When the drag enters, moves over, or exits - * the operable part of the drop site for that DropTarget, when + * with a {@code DropTarget}. When the drag enters, moves over, or exits + * the operable part of the drop site for that {@code DropTarget}, when * the drop action changes, and when the drop occurs, the relevant method in - * the listener object is invoked, and the DropTargetEvent is + * the listener object is invoked, and the {@code DropTargetEvent} is * passed to it. *

      - * The operable part of the drop site for the DropTarget is - * the part of the associated Component's geometry that is not + * The operable part of the drop site for the {@code DropTarget} is + * the part of the associated {@code Component}'s geometry that is not * obscured by an overlapping top-level window or by another - * Component higher in the Z-order that has an associated active - * DropTarget. + * {@code Component} higher in the Z-order that has an associated active + * {@code DropTarget}. *

      * During the drag, the data associated with the current drag operation can be - * retrieved by calling getTransferable() on - * DropTargetDragEvent instances passed to the listener's + * retrieved by calling {@code getTransferable()} on + * {@code DropTargetDragEvent} instances passed to the listener's * methods. *

      - * Note that getTransferable() on the - * DropTargetDragEvent instance should only be called within the + * Note that {@code getTransferable()} on the + * {@code DropTargetDragEvent} instance should only be called within the * respective listener's method and all the necessary data should be retrieved - * from the returned Transferable before that method returns. + * from the returned {@code Transferable} before that method returns. * * @since 1.2 */ @@ -70,20 +70,20 @@ /** * Called while a drag operation is ongoing, when the mouse pointer enters - * the operable part of the drop site for the DropTarget + * the operable part of the drop site for the {@code DropTarget} * registered with this listener. * - * @param dtde the DropTargetDragEvent + * @param dtde the {@code DropTargetDragEvent} */ void dragEnter(DropTargetDragEvent dtde); /** * Called when a drag operation is ongoing, while the mouse pointer is still - * over the operable part of the drop site for the DropTarget + * over the operable part of the drop site for the {@code DropTarget} * registered with this listener. * - * @param dtde the DropTargetDragEvent + * @param dtde the {@code DropTargetDragEvent} */ void dragOver(DropTargetDragEvent dtde); @@ -92,7 +92,7 @@ * Called if the user has modified * the current drop gesture. * - * @param dtde the DropTargetDragEvent + * @param dtde the {@code DropTargetDragEvent} */ void dropActionChanged(DropTargetDragEvent dtde); @@ -100,52 +100,52 @@ /** * Called while a drag operation is ongoing, when the mouse pointer has * exited the operable part of the drop site for the - * DropTarget registered with this listener. + * {@code DropTarget} registered with this listener. * - * @param dte the DropTargetEvent + * @param dte the {@code DropTargetEvent} */ void dragExit(DropTargetEvent dte); /** * Called when the drag operation has terminated with a drop on - * the operable part of the drop site for the DropTarget + * the operable part of the drop site for the {@code DropTarget} * registered with this listener. *

      * This method is responsible for undertaking * the transfer of the data associated with the - * gesture. The DropTargetDropEvent - * provides a means to obtain a Transferable + * gesture. The {@code DropTargetDropEvent} + * provides a means to obtain a {@code Transferable} * object that represents the data object(s) to * be transferred.

      - * From this method, the DropTargetListener + * From this method, the {@code DropTargetListener} * shall accept or reject the drop via the * acceptDrop(int dropAction) or rejectDrop() methods of the - * DropTargetDropEvent parameter. + * {@code DropTargetDropEvent} parameter. *

      * Subsequent to acceptDrop(), but not before, - * DropTargetDropEvent's getTransferable() + * {@code DropTargetDropEvent}'s getTransferable() * method may be invoked, and data transfer may be - * performed via the returned Transferable's + * performed via the returned {@code Transferable}'s * getTransferData() method. *

      * At the completion of a drop, an implementation * of this method is required to signal the success/failure * of the drop by passing an appropriate - * boolean to the DropTargetDropEvent's + * {@code boolean} to the {@code DropTargetDropEvent}'s * dropComplete(boolean success) method. *

      * Note: The data transfer should be completed before the call to the - * DropTargetDropEvent's dropComplete(boolean success) method. + * {@code DropTargetDropEvent}'s dropComplete(boolean success) method. * After that, a call to the getTransferData() method of the - * Transferable returned by - * DropTargetDropEvent.getTransferable() is guaranteed to + * {@code Transferable} returned by + * {@code DropTargetDropEvent.getTransferable()} is guaranteed to * succeed only if the data transfer is local; that is, only if - * DropTargetDropEvent.isLocalTransfer() returns - * true. Otherwise, the behavior of the call is + * {@code DropTargetDropEvent.isLocalTransfer()} returns + * {@code true}. Otherwise, the behavior of the call is * implementation-dependent. * - * @param dtde the DropTargetDropEvent + * @param dtde the {@code DropTargetDropEvent} */ void drop(DropTargetDropEvent dtde); --- old/src/java.desktop/share/classes/java/awt/dnd/MouseDragGestureRecognizer.java 2015-10-04 22:53:22.485272407 +0400 +++ new/src/java.desktop/share/classes/java/awt/dnd/MouseDragGestureRecognizer.java 2015-10-04 22:53:22.297272415 +0400 @@ -32,8 +32,8 @@ import java.awt.event.MouseMotionListener; /** - * This abstract subclass of DragGestureRecognizer - * defines a DragGestureRecognizer + * This abstract subclass of {@code DragGestureRecognizer} + * defines a {@code DragGestureRecognizer} * for mouse-based gestures. * * Each platform implements its own concrete subclass of this class, @@ -67,12 +67,12 @@ private static final long serialVersionUID = 6220099344182281120L; /** - * Construct a new MouseDragGestureRecognizer - * given the DragSource for the - * Component c, the Component + * Construct a new {@code MouseDragGestureRecognizer} + * given the {@code DragSource} for the + * {@code Component} c, the {@code Component} * to observe, the action(s) * permitted for this drag operation, and - * the DragGestureListener to + * the {@code DragGestureListener} to * notify when a drag gesture is detected. * * @param ds The DragSource for the Component c @@ -87,10 +87,10 @@ } /** - * Construct a new MouseDragGestureRecognizer - * given the DragSource for - * the Component c, - * the Component to observe, and the action(s) + * Construct a new {@code MouseDragGestureRecognizer} + * given the {@code DragSource} for + * the {@code Component} c, + * the {@code Component} to observe, and the action(s) * permitted for this drag operation. * * @param ds The DragSource for the Component c @@ -103,10 +103,10 @@ } /** - * Construct a new MouseDragGestureRecognizer - * given the DragSource for the - * Component c, and the - * Component to observe. + * Construct a new {@code MouseDragGestureRecognizer} + * given the {@code DragSource} for the + * {@code Component} c, and the + * {@code Component} to observe. * * @param ds The DragSource for the Component c * @param c The Component to observe @@ -117,8 +117,8 @@ } /** - * Construct a new MouseDragGestureRecognizer - * given the DragSource for the Component. + * Construct a new {@code MouseDragGestureRecognizer} + * given the {@code DragSource} for the {@code Component}. * * @param ds The DragSource for the Component */ @@ -151,16 +151,16 @@ /** * Invoked when the mouse has been clicked on a component. * - * @param e the MouseEvent + * @param e the {@code MouseEvent} */ public void mouseClicked(MouseEvent e) { } /** * Invoked when a mouse button has been - * pressed on a Component. + * pressed on a {@code Component}. * - * @param e the MouseEvent + * @param e the {@code MouseEvent} */ public void mousePressed(MouseEvent e) { } @@ -168,7 +168,7 @@ /** * Invoked when a mouse button has been released on a component. * - * @param e the MouseEvent + * @param e the {@code MouseEvent} */ public void mouseReleased(MouseEvent e) { } @@ -176,7 +176,7 @@ /** * Invoked when the mouse enters a component. * - * @param e the MouseEvent + * @param e the {@code MouseEvent} */ public void mouseEntered(MouseEvent e) { } @@ -184,7 +184,7 @@ /** * Invoked when the mouse exits a component. * - * @param e the MouseEvent + * @param e the {@code MouseEvent} */ public void mouseExited(MouseEvent e) { } @@ -192,7 +192,7 @@ /** * Invoked when a mouse button is pressed on a component. * - * @param e the MouseEvent + * @param e the {@code MouseEvent} */ public void mouseDragged(MouseEvent e) { } @@ -201,7 +201,7 @@ * Invoked when the mouse button has been moved on a component * (with no buttons no down). * - * @param e the MouseEvent + * @param e the {@code MouseEvent} */ public void mouseMoved(MouseEvent e) { } --- old/src/java.desktop/share/classes/java/awt/event/AWTEventListener.java 2015-10-04 22:53:23.009272383 +0400 +++ new/src/java.desktop/share/classes/java/awt/event/AWTEventListener.java 2015-10-04 22:53:22.821272392 +0400 @@ -41,9 +41,9 @@ * The class that is interested in monitoring AWT events * implements this interface, and the object created with that * class is registered with the Toolkit, using the Toolkit's - * addAWTEventListener method. When an event is + * {@code addAWTEventListener} method. When an event is * dispatched anywhere in the AWT, that object's - * eventDispatched method is invoked. + * {@code eventDispatched} method is invoked. * * @see java.awt.AWTEvent * @see java.awt.Toolkit#addAWTEventListener --- old/src/java.desktop/share/classes/java/awt/event/ActionEvent.java 2015-10-04 22:53:23.533272360 +0400 +++ new/src/java.desktop/share/classes/java/awt/event/ActionEvent.java 2015-10-04 22:53:23.345272368 +0400 @@ -32,17 +32,17 @@ /** * A semantic event which indicates that a component-defined action occurred. * This high-level event is generated by a component (such as a - * Button) when + * {@code Button}) when * the component-specific action occurs (such as being pressed). - * The event is passed to every ActionListener object + * The event is passed to every {@code ActionListener} object * that registered to receive such events using the component's - * addActionListener method. + * {@code addActionListener} method. *

      - * Note: To invoke an ActionEvent on a - * Button using the keyboard, use the Space bar. + * Note: To invoke an {@code ActionEvent} on a + * {@code Button} using the keyboard, use the Space bar. *

      - * The object that implements the ActionListener interface - * gets this ActionEvent when the event occurs. The listener + * The object that implements the {@code ActionListener} interface + * gets this {@code ActionEvent} when the event occurs. The listener * is therefore spared the details of processing individual mouse movements * and mouse clicks, and can instead process a "meaningful" (semantic) * event like "button pressed". @@ -137,12 +137,12 @@ private static final long serialVersionUID = -7671078796273832149L; /** - * Constructs an ActionEvent object. + * Constructs an {@code ActionEvent} object. *

      * This method throws an - * IllegalArgumentException if source - * is null. - * A null command string is legal, + * {@code IllegalArgumentException} if {@code source} + * is {@code null}. + * A {@code null command} string is legal, * but not recommended. * * @param source The object that originated the event @@ -151,7 +151,7 @@ * the class description for {@link ActionEvent} * @param command A string that may specify a command (possibly one * of several) associated with the event - * @throws IllegalArgumentException if source is null + * @throws IllegalArgumentException if {@code source} is null * @see #getSource() * @see #getID() * @see #getActionCommand() @@ -161,12 +161,12 @@ } /** - * Constructs an ActionEvent object with modifier keys. + * Constructs an {@code ActionEvent} object with modifier keys. *

      * This method throws an - * IllegalArgumentException if source - * is null. - * A null command string is legal, + * {@code IllegalArgumentException} if {@code source} + * is {@code null}. + * A {@code null command} string is legal, * but not recommended. * * @param source The object that originated the event @@ -179,7 +179,7 @@ * (shift, ctrl, alt, meta). * Passing negative parameter is not recommended. * Zero value means that no modifiers were passed - * @throws IllegalArgumentException if source is null + * @throws IllegalArgumentException if {@code source} is null * @see #getSource() * @see #getID() * @see #getActionCommand() @@ -190,13 +190,13 @@ } /** - * Constructs an ActionEvent object with the specified + * Constructs an {@code ActionEvent} object with the specified * modifier keys and timestamp. *

      * This method throws an - * IllegalArgumentException if source - * is null. - * A null command string is legal, + * {@code IllegalArgumentException} if {@code source} + * is {@code null}. + * A {@code null command} string is legal, * but not recommended. * * @param source The object that originated the event @@ -212,7 +212,7 @@ * @param when A long that gives the time the event occurred. * Passing negative or zero value * is not recommended - * @throws IllegalArgumentException if source is null + * @throws IllegalArgumentException if {@code source} is null * @see #getSource() * @see #getID() * @see #getActionCommand() @@ -237,9 +237,9 @@ * and the event would be the same in each case, but the command string * would identify the intended action. *

      - * Note that if a null command string was passed - * to the constructor for this ActionEvent, this - * this method returns null. + * Note that if a {@code null} command string was passed + * to the constructor for this {@code ActionEvent}, this + * this method returns {@code null}. * * @return the string identifying the command for this event */ --- old/src/java.desktop/share/classes/java/awt/event/ActionListener.java 2015-10-04 22:53:24.061272336 +0400 +++ new/src/java.desktop/share/classes/java/awt/event/ActionListener.java 2015-10-04 22:53:23.873272345 +0400 @@ -32,8 +32,8 @@ * The class that is interested in processing an action event * implements this interface, and the object created with that * class is registered with a component, using the component's - * addActionListener method. When the action event - * occurs, that object's actionPerformed method is + * {@code addActionListener} method. When the action event + * occurs, that object's {@code actionPerformed} method is * invoked. * * @see ActionEvent --- old/src/java.desktop/share/classes/java/awt/event/AdjustmentEvent.java 2015-10-04 22:53:24.585272313 +0400 +++ new/src/java.desktop/share/classes/java/awt/event/AdjustmentEvent.java 2015-10-04 22:53:24.397272321 +0400 @@ -107,7 +107,7 @@ Adjustable adjustable; /** - * value will contain the new value of the + * {@code value} will contain the new value of the * adjustable object. This value will always be in a * range associated adjustable object. * @@ -117,7 +117,7 @@ int value; /** - * The adjustmentType describes how the adjustable + * The {@code adjustmentType} describes how the adjustable * object value has changed. * This value can be increased/decreased by a block or unit amount * where the block is associated with page increments/decrements, @@ -130,7 +130,7 @@ /** - * The isAdjusting is true if the event is one + * The {@code isAdjusting} is true if the event is one * of the series of multiple adjustment events. * * @since 1.4 @@ -147,14 +147,14 @@ /** - * Constructs an AdjustmentEvent object with the - * specified Adjustable source, event type, + * Constructs an {@code AdjustmentEvent} object with the + * specified {@code Adjustable} source, event type, * adjustment type, and value. *

      This method throws an - * IllegalArgumentException if source - * is null. + * {@code IllegalArgumentException} if {@code source} + * is {@code null}. * - * @param source The Adjustable object where the + * @param source The {@code Adjustable} object where the * event originated * @param id An integer indicating the type of event. * For information on allowable values, see @@ -163,7 +163,7 @@ * For information on allowable values, see * the class description for {@link AdjustmentEvent} * @param value The current value of the adjustment - * @throws IllegalArgumentException if source is null + * @throws IllegalArgumentException if {@code source} is null * @see #getSource() * @see #getID() * @see #getAdjustmentType() @@ -174,13 +174,13 @@ } /** - * Constructs an AdjustmentEvent object with the + * Constructs an {@code AdjustmentEvent} object with the * specified Adjustable source, event type, adjustment type, and value. *

      This method throws an - * IllegalArgumentException if source - * is null. + * {@code IllegalArgumentException} if {@code source} + * is {@code null}. * - * @param source The Adjustable object where the + * @param source The {@code Adjustable} object where the * event originated * @param id An integer indicating the type of event. * For information on allowable values, see @@ -189,10 +189,10 @@ * For information on allowable values, see * the class description for {@link AdjustmentEvent} * @param value The current value of the adjustment - * @param isAdjusting A boolean that equals true if the event is one + * @param isAdjusting A boolean that equals {@code true} if the event is one * of a series of multiple adjusting events, - * otherwise false - * @throws IllegalArgumentException if source is null + * otherwise {@code false} + * @throws IllegalArgumentException if {@code source} is null * @since 1.4 * @see #getSource() * @see #getID() @@ -209,9 +209,9 @@ } /** - * Returns the Adjustable object where this event originated. + * Returns the {@code Adjustable} object where this event originated. * - * @return the Adjustable object where this event originated + * @return the {@code Adjustable} object where this event originated */ public Adjustable getAdjustable() { return adjustable; @@ -243,11 +243,11 @@ } /** - * Returns true if this is one of multiple + * Returns {@code true} if this is one of multiple * adjustment events. * - * @return true if this is one of multiple - * adjustment events, otherwise returns false + * @return {@code true} if this is one of multiple + * adjustment events, otherwise returns {@code false} * @since 1.4 */ public boolean getValueIsAdjusting() { --- old/src/java.desktop/share/classes/java/awt/event/ComponentAdapter.java 2015-10-04 22:53:25.109272289 +0400 +++ new/src/java.desktop/share/classes/java/awt/event/ComponentAdapter.java 2015-10-04 22:53:24.921272297 +0400 @@ -30,17 +30,17 @@ * The methods in this class are empty. This class exists as * convenience for creating listener objects. *

      - * Extend this class to create a ComponentEvent listener + * Extend this class to create a {@code ComponentEvent} listener * and override the methods for the events of interest. (If you implement the - * ComponentListener interface, you have to define all of + * {@code ComponentListener} interface, you have to define all of * the methods in it. This abstract class defines null methods for them * all, so you can only have to define methods for events you care about.) *

      * Create a listener object using your class and then register it with a - * component using the component's addComponentListener + * component using the component's {@code addComponentListener} * method. When the component's size, location, or visibility * changes, the relevant method in the listener object is invoked, - * and the ComponentEvent is passed to it. + * and the {@code ComponentEvent} is passed to it. * * @see ComponentEvent * @see ComponentListener --- old/src/java.desktop/share/classes/java/awt/event/ComponentEvent.java 2015-10-04 22:53:25.629272266 +0400 +++ new/src/java.desktop/share/classes/java/awt/event/ComponentEvent.java 2015-10-04 22:53:25.441272274 +0400 @@ -47,12 +47,12 @@ *

      * This low-level event is generated by a component object (such as a * List) when the component is moved, resized, rendered invisible, or made - * visible again. The event is passed to every ComponentListener - * or ComponentAdapter object which registered to receive such - * events using the component's addComponentListener method. - * (ComponentAdapter objects implement the - * ComponentListener interface.) Each such listener object - * gets this ComponentEvent when the event occurs. + * visible again. The event is passed to every {@code ComponentListener} + * or {@code ComponentAdapter} object which registered to receive such + * events using the component's {@code addComponentListener} method. + * ({@code ComponentAdapter} objects implement the + * {@code ComponentListener} interface.) Each such listener object + * gets this {@code ComponentEvent} when the event occurs. *

      * An unspecified behavior will be caused if the {@code id} parameter * of any particular {@code ComponentEvent} instance is not @@ -103,16 +103,16 @@ private static final long serialVersionUID = 8101406823902992965L; /** - * Constructs a ComponentEvent object. + * Constructs a {@code ComponentEvent} object. *

      This method throws an - * IllegalArgumentException if source - * is null. + * {@code IllegalArgumentException} if {@code source} + * is {@code null}. * - * @param source The Component that originated the event + * @param source The {@code Component} that originated the event * @param id An integer indicating the type of event. * For information on allowable values, see * the class description for {@link ComponentEvent} - * @throws IllegalArgumentException if source is null + * @throws IllegalArgumentException if {@code source} is null * @see #getComponent() * @see #getID() */ @@ -123,9 +123,9 @@ /** * Returns the originator of the event. * - * @return the Component object that originated - * the event, or null if the object is not a - * Component. + * @return the {@code Component} object that originated + * the event, or {@code null} if the object is not a + * {@code Component}. */ public Component getComponent() { return (source instanceof Component) ? (Component)source : null; --- old/src/java.desktop/share/classes/java/awt/event/ComponentListener.java 2015-10-04 22:53:26.157272242 +0400 +++ new/src/java.desktop/share/classes/java/awt/event/ComponentListener.java 2015-10-04 22:53:25.969272250 +0400 @@ -31,18 +31,18 @@ * The listener interface for receiving component events. * The class that is interested in processing a component event * either implements this interface (and all the methods it - * contains) or extends the abstract ComponentAdapter class + * contains) or extends the abstract {@code ComponentAdapter} class * (overriding only the methods of interest). * The listener object created from that class is then registered with a - * component using the component's addComponentListener + * component using the component's {@code addComponentListener} * method. When the component's size, location, or visibility * changes, the relevant method in the listener object is invoked, - * and the ComponentEvent is passed to it. + * and the {@code ComponentEvent} is passed to it. *

      * Component events are provided for notification purposes ONLY; * The AWT will automatically handle component moves and resizes * internally so that GUI layout works properly regardless of - * whether a program registers a ComponentListener or not. + * whether a program registers a {@code ComponentListener} or not. * * @see ComponentAdapter * @see ComponentEvent --- old/src/java.desktop/share/classes/java/awt/event/ContainerAdapter.java 2015-10-04 22:53:26.681272218 +0400 +++ new/src/java.desktop/share/classes/java/awt/event/ContainerAdapter.java 2015-10-04 22:53:26.493272227 +0400 @@ -30,17 +30,17 @@ * The methods in this class are empty. This class exists as * convenience for creating listener objects. *

      - * Extend this class to create a ContainerEvent listener + * Extend this class to create a {@code ContainerEvent} listener * and override the methods for the events of interest. (If you implement the - * ContainerListener interface, you have to define all of + * {@code ContainerListener} interface, you have to define all of * the methods in it. This abstract class defines null methods for them * all, so you can only have to define methods for events you care about.) *

      * Create a listener object using the extended class and then register it with - * a component using the component's addContainerListener + * a component using the component's {@code addContainerListener} * method. When the container's contents change because a component has * been added or removed, the relevant method in the listener object is invoked, - * and the ContainerEvent is passed to it. + * and the {@code ContainerEvent} is passed to it. * * @see ContainerEvent * @see ContainerListener --- old/src/java.desktop/share/classes/java/awt/event/ContainerEvent.java 2015-10-04 22:53:27.205272195 +0400 +++ new/src/java.desktop/share/classes/java/awt/event/ContainerEvent.java 2015-10-04 22:53:27.013272204 +0400 @@ -39,12 +39,12 @@ *

      * This low-level event is generated by a container object (such as a * Panel) when a component is added to it or removed from it. - * The event is passed to every ContainerListener - * or ContainerAdapter object which registered to receive such - * events using the component's addContainerListener method. - * (ContainerAdapter objects implement the - * ContainerListener interface.) Each such listener object - * gets this ContainerEvent when the event occurs. + * The event is passed to every {@code ContainerListener} + * or {@code ContainerAdapter} object which registered to receive such + * events using the component's {@code addContainerListener} method. + * ({@code ContainerAdapter} objects implement the + * {@code ContainerListener} interface.) Each such listener object + * gets this {@code ContainerEvent} when the event occurs. *

      * An unspecified behavior will be caused if the {@code id} parameter * of any particular {@code ContainerEvent} instance is not @@ -95,18 +95,18 @@ private static final long serialVersionUID = -4114942250539772041L; /** - * Constructs a ContainerEvent object. + * Constructs a {@code ContainerEvent} object. *

      This method throws an - * IllegalArgumentException if source - * is null. + * {@code IllegalArgumentException} if {@code source} + * is {@code null}. * - * @param source The Component object (container) + * @param source The {@code Component} object (container) * that originated the event * @param id An integer indicating the type of event. * For information on allowable values, see * the class description for {@link ContainerEvent} * @param child the component that was added or removed - * @throws IllegalArgumentException if source is null + * @throws IllegalArgumentException if {@code source} is null * @see #getContainer() * @see #getID() * @see #getChild() @@ -119,9 +119,9 @@ /** * Returns the originator of the event. * - * @return the Container object that originated - * the event, or null if the object is not a - * Container. + * @return the {@code Container} object that originated + * the event, or {@code null} if the object is not a + * {@code Container}. */ public Container getContainer() { return (source instanceof Container) ? (Container)source : null; --- old/src/java.desktop/share/classes/java/awt/event/ContainerListener.java 2015-10-04 22:53:27.725272172 +0400 +++ new/src/java.desktop/share/classes/java/awt/event/ContainerListener.java 2015-10-04 22:53:27.537272180 +0400 @@ -31,13 +31,13 @@ * The listener interface for receiving container events. * The class that is interested in processing a container event * either implements this interface (and all the methods it - * contains) or extends the abstract ContainerAdapter class + * contains) or extends the abstract {@code ContainerAdapter} class * (overriding only the methods of interest). * The listener object created from that class is then registered with a - * component using the component's addContainerListener + * component using the component's {@code addContainerListener} * method. When the container's contents change because a component * has been added or removed, the relevant method in the listener object - * is invoked, and the ContainerEvent is passed to it. + * is invoked, and the {@code ContainerEvent} is passed to it. *

      * Container events are provided for notification purposes ONLY; * The AWT will automatically handle add and remove operations --- old/src/java.desktop/share/classes/java/awt/event/FocusAdapter.java 2015-10-04 22:53:28.249272148 +0400 +++ new/src/java.desktop/share/classes/java/awt/event/FocusAdapter.java 2015-10-04 22:53:28.061272156 +0400 @@ -30,17 +30,17 @@ * The methods in this class are empty. This class exists as * convenience for creating listener objects. *

      - * Extend this class to create a FocusEvent listener + * Extend this class to create a {@code FocusEvent} listener * and override the methods for the events of interest. (If you implement the - * FocusListener interface, you have to define all of + * {@code FocusListener} interface, you have to define all of * the methods in it. This abstract class defines null methods for them * all, so you can only have to define methods for events you care about.) *

      * Create a listener object using the extended class and then register it with - * a component using the component's addFocusListener + * a component using the component's {@code addFocusListener} * method. When the component gains or loses the keyboard focus, * the relevant method in the listener object is invoked, - * and the FocusEvent is passed to it. + * and the {@code FocusEvent} is passed to it. * * @see FocusEvent * @see FocusListener --- old/src/java.desktop/share/classes/java/awt/event/FocusEvent.java 2015-10-04 22:53:28.773272124 +0400 +++ new/src/java.desktop/share/classes/java/awt/event/FocusEvent.java 2015-10-04 22:53:28.585272133 +0400 @@ -32,11 +32,11 @@ /** * A low-level event which indicates that a Component has gained or lost the * input focus. This low-level event is generated by a Component (such as a - * TextField). The event is passed to every FocusListener or - * FocusAdapter object which registered to receive such events - * using the Component's addFocusListener method. ( - * FocusAdapter objects implement the FocusListener - * interface.) Each such listener object gets this FocusEvent when + * TextField). The event is passed to every {@code FocusListener} or + * {@code FocusAdapter} object which registered to receive such events + * using the Component's {@code addFocusListener} method. + * ({@code FocusAdapter} objects implement the {@code FocusListener} + * interface.) Each such listener object gets this {@code FocusEvent} when * the event occurs. *

      * There are two levels of focus events: permanent and temporary. Permanent @@ -114,30 +114,30 @@ private static final long serialVersionUID = 523753786457416396L; /** - * Constructs a FocusEvent object with the - * specified temporary state and opposite Component. - * The opposite Component is the other - * Component involved in this focus change. - * For a FOCUS_GAINED event, this is the - * Component that lost focus. For a - * FOCUS_LOST event, this is the Component + * Constructs a {@code FocusEvent} object with the + * specified temporary state and opposite {@code Component}. + * The opposite {@code Component} is the other + * {@code Component} involved in this focus change. + * For a {@code FOCUS_GAINED} event, this is the + * {@code Component} that lost focus. For a + * {@code FOCUS_LOST} event, this is the {@code Component} * that gained focus. If this focus change occurs with a native * application, with a Java application in a different VM, - * or with no other Component, then the opposite - * Component is null. + * or with no other {@code Component}, then the opposite + * {@code Component} is {@code null}. *

      This method throws an - * IllegalArgumentException if source - * is null. + * {@code IllegalArgumentException} if {@code source} + * is {@code null}. * - * @param source The Component that originated the event + * @param source The {@code Component} that originated the event * @param id An integer indicating the type of event. * For information on allowable values, see * the class description for {@link FocusEvent} - * @param temporary Equals true if the focus change is temporary; - * false otherwise + * @param temporary Equals {@code true} if the focus change is temporary; + * {@code false} otherwise * @param opposite The other Component involved in the focus change, - * or null - * @throws IllegalArgumentException if source equals {@code null} + * or {@code null} + * @throws IllegalArgumentException if {@code source} equals {@code null} * @see #getSource() * @see #getID() * @see #isTemporary() @@ -152,19 +152,19 @@ } /** - * Constructs a FocusEvent object and identifies + * Constructs a {@code FocusEvent} object and identifies * whether or not the change is temporary. *

      This method throws an - * IllegalArgumentException if source - * is null. + * {@code IllegalArgumentException} if {@code source} + * is {@code null}. * - * @param source The Component that originated the event + * @param source The {@code Component} that originated the event * @param id An integer indicating the type of event. * For information on allowable values, see * the class description for {@link FocusEvent} - * @param temporary Equals true if the focus change is temporary; - * false otherwise - * @throws IllegalArgumentException if source equals {@code null} + * @param temporary Equals {@code true} if the focus change is temporary; + * {@code false} otherwise + * @throws IllegalArgumentException if {@code source} equals {@code null} * @see #getSource() * @see #getID() * @see #isTemporary() @@ -174,17 +174,17 @@ } /** - * Constructs a FocusEvent object and identifies it + * Constructs a {@code FocusEvent} object and identifies it * as a permanent change in focus. *

      This method throws an - * IllegalArgumentException if source - * is null. + * {@code IllegalArgumentException} if {@code source} + * is {@code null}. * - * @param source The Component that originated the event + * @param source The {@code Component} that originated the event * @param id An integer indicating the type of event. * For information on allowable values, see * the class description for {@link FocusEvent} - * @throws IllegalArgumentException if source equals {@code null} + * @throws IllegalArgumentException if {@code source} equals {@code null} * @see #getSource() * @see #getID() */ @@ -195,8 +195,8 @@ /** * Identifies the focus change event as temporary or permanent. * - * @return true if the focus change is temporary; - * false otherwise + * @return {@code true} if the focus change is temporary; + * {@code false} otherwise */ public boolean isTemporary() { return temporary; --- old/src/java.desktop/share/classes/java/awt/event/FocusListener.java 2015-10-04 22:53:29.301272101 +0400 +++ new/src/java.desktop/share/classes/java/awt/event/FocusListener.java 2015-10-04 22:53:29.109272109 +0400 @@ -32,13 +32,13 @@ * a component. * The class that is interested in processing a focus event * either implements this interface (and all the methods it - * contains) or extends the abstract FocusAdapter class + * contains) or extends the abstract {@code FocusAdapter} class * (overriding only the methods of interest). * The listener object created from that class is then registered with a - * component using the component's addFocusListener + * component using the component's {@code addFocusListener} * method. When the component gains or loses the keyboard focus, * the relevant method in the listener object - * is invoked, and the FocusEvent is passed to it. + * is invoked, and the {@code FocusEvent} is passed to it. * * @see FocusAdapter * @see FocusEvent --- old/src/java.desktop/share/classes/java/awt/event/HierarchyBoundsAdapter.java 2015-10-04 22:53:29.821272077 +0400 +++ new/src/java.desktop/share/classes/java/awt/event/HierarchyBoundsAdapter.java 2015-10-04 22:53:29.633272086 +0400 @@ -31,16 +31,16 @@ * convenience for creating listener objects. *

      * Extend this class and override the method for the event of interest. (If - * you implement the HierarchyBoundsListener interface, you have + * you implement the {@code HierarchyBoundsListener} interface, you have * to define both methods in it. This abstract class defines null methods for * them both, so you only have to define the method for the event you care * about.) *

      * Create a listener object using your class and then register it with a - * Component using the Component's addHierarchyBoundsListener + * Component using the Component's {@code addHierarchyBoundsListener} * method. When the hierarchy to which the Component belongs changes by * resize or movement of an ancestor, the relevant method in the listener - * object is invoked, and the HierarchyEvent is passed to it. + * object is invoked, and the {@code HierarchyEvent} is passed to it. * * @author David Mendenhall * @see HierarchyBoundsListener --- old/src/java.desktop/share/classes/java/awt/event/HierarchyBoundsListener.java 2015-10-04 22:53:30.345272054 +0400 +++ new/src/java.desktop/share/classes/java/awt/event/HierarchyBoundsListener.java 2015-10-04 22:53:30.157272062 +0400 @@ -31,18 +31,18 @@ * The listener interface for receiving ancestor moved and resized events. * The class that is interested in processing these events either implements * this interface (and all the methods it contains) or extends the abstract - * HierarchyBoundsAdapter class (overriding only the method of + * {@code HierarchyBoundsAdapter} class (overriding only the method of * interest). * The listener object created from that class is then registered with a - * Component using the Component's addHierarchyBoundsListener + * Component using the Component's {@code addHierarchyBoundsListener} * method. When the hierarchy to which the Component belongs changes by * the resizing or movement of an ancestor, the relevant method in the listener - * object is invoked, and the HierarchyEvent is passed to it. + * object is invoked, and the {@code HierarchyEvent} is passed to it. *

      * Hierarchy events are provided for notification purposes ONLY; * The AWT will automatically handle changes to the hierarchy internally so * that GUI layout works properly regardless of whether a - * program registers an HierarchyBoundsListener or not. + * program registers an {@code HierarchyBoundsListener} or not. * * @author David Mendenhall * @see HierarchyBoundsAdapter --- old/src/java.desktop/share/classes/java/awt/event/HierarchyEvent.java 2015-10-04 22:53:30.869272030 +0400 +++ new/src/java.desktop/share/classes/java/awt/event/HierarchyEvent.java 2015-10-04 22:53:30.677272039 +0400 @@ -30,8 +30,8 @@ import java.awt.Container; /** - * An event which indicates a change to the Component - * hierarchy to which Component belongs. + * An event which indicates a change to the {@code Component} + * hierarchy to which {@code Component} belongs. *

        *
      • Hierarchy Change Events (HierarchyListener) *
          @@ -57,18 +57,18 @@ * This event is generated by a Container object (such as a Panel) when the * Container is added, removed, moved, or resized, and passed down the * hierarchy. It is also generated by a Component object when that object's - * addNotify, removeNotify, show, or - * hide method is called. The {@code ANCESTOR_MOVED} and + * {@code addNotify}, {@code removeNotify}, {@code show}, or + * {@code hide} method is called. The {@code ANCESTOR_MOVED} and * {@code ANCESTOR_RESIZED} - * events are dispatched to every HierarchyBoundsListener or - * HierarchyBoundsAdapter object which registered to receive - * such events using the Component's addHierarchyBoundsListener - * method. (HierarchyBoundsAdapter objects implement the - * HierarchyBoundsListener interface.) The {@code HIERARCHY_CHANGED} events are - * dispatched to every HierarchyListener object which registered - * to receive such events using the Component's addHierarchyListener - * method. Each such listener object gets this HierarchyEvent - * when the event occurs. + * events are dispatched to every {@code HierarchyBoundsListener} or + * {@code HierarchyBoundsAdapter} object which registered to receive + * such events using the Component's {@code addHierarchyBoundsListener} + * method. ({@code HierarchyBoundsAdapter} objects implement the + * {@code HierarchyBoundsListener} interface.) The {@code HIERARCHY_CHANGED} events are + * dispatched to every {@code HierarchyListener} object which registered + * to receive such events using the Component's {@code addHierarchyListener} + * method. Each such listener object gets this {@code HierarchyEvent} + * when the event occurs. *

          * An unspecified behavior will be caused if the {@code id} parameter * of any particular {@code HierarchyEvent} instance is not @@ -122,20 +122,20 @@ public static final int HIERARCHY_LAST = ANCESTOR_RESIZED; /** - * A change flag indicates that the HIERARCHY_CHANGED event + * A change flag indicates that the {@code HIERARCHY_CHANGED} event * was generated by a reparenting operation. */ public static final int PARENT_CHANGED = 0x1; /** - * A change flag indicates that the HIERARCHY_CHANGED event + * A change flag indicates that the {@code HIERARCHY_CHANGED} event * was generated due to the changing of the hierarchy displayability. * To discern the * current displayability of the hierarchy, call the - * Component.isDisplayable method. Displayability changes occur + * {@code Component.isDisplayable} method. Displayability changes occur * in response to explicit or implicit calls of the - * Component.addNotify and - * Component.removeNotify methods. + * {@code Component.addNotify} and + * {@code Component.removeNotify} methods. * * @see java.awt.Component#isDisplayable() * @see java.awt.Component#addNotify() @@ -144,15 +144,15 @@ public static final int DISPLAYABILITY_CHANGED = 0x2; /** - * A change flag indicates that the HIERARCHY_CHANGED event + * A change flag indicates that the {@code HIERARCHY_CHANGED} event * was generated due to the changing of the hierarchy showing state. * To discern the * current showing state of the hierarchy, call the - * Component.isShowing method. Showing state changes occur + * {@code Component.isShowing} method. Showing state changes occur * when either the displayability or visibility of the * hierarchy occurs. Visibility changes occur in response to explicit - * or implicit calls of the Component.show and - * Component.hide methods. + * or implicit calls of the {@code Component.show} and + * {@code Component.hide} methods. * * @see java.awt.Component#isShowing() * @see java.awt.Component#addNotify() @@ -167,24 +167,24 @@ long changeFlags; /** - * Constructs an HierarchyEvent object to identify a - * change in the Component hierarchy. + * Constructs an {@code HierarchyEvent} object to identify a + * change in the {@code Component} hierarchy. *

          This method throws an - * IllegalArgumentException if source - * is null. + * {@code IllegalArgumentException} if {@code source} + * is {@code null}. * - * @param source The Component object that + * @param source The {@code Component} object that * originated the event * @param id An integer indicating the type of event. * For information on allowable values, see * the class description for {@link HierarchyEvent} - * @param changed The Component at the top of + * @param changed The {@code Component} at the top of * the hierarchy which was changed - * @param changedParent The parent of the changed component. + * @param changedParent The parent of the {@code changed} component. * This * may be the parent before or after the * change, depending on the type of change - * @throws IllegalArgumentException if source is {@code null} + * @throws IllegalArgumentException if {@code source} is {@code null} * @see #getSource() * @see #getID() * @see #getChanged() @@ -198,29 +198,29 @@ } /** - * Constructs an HierarchyEvent object to identify - * a change in the Component hierarchy. + * Constructs an {@code HierarchyEvent} object to identify + * a change in the {@code Component} hierarchy. *

          This method throws an - * IllegalArgumentException if source - * is null. + * {@code IllegalArgumentException} if {@code source} + * is {@code null}. * - * @param source The Component object that + * @param source The {@code Component} object that * originated the event * @param id An integer indicating the type of event. * For information on allowable values, see * the class description for {@link HierarchyEvent} - * @param changed The Component at the top + * @param changed The {@code Component} at the top * of the hierarchy which was changed - * @param changedParent The parent of the changed component. + * @param changedParent The parent of the {@code changed} component. * This * may be the parent before or after the * change, depending on the type of change * @param changeFlags A bitmask which indicates the type(s) of - * the HIERARCHY_CHANGED events + * the {@code HIERARCHY_CHANGED} events * represented in this event object. * For information on allowable values, see * the class description for {@link HierarchyEvent} - * @throws IllegalArgumentException if source is null + * @throws IllegalArgumentException if {@code source} is null * @see #getSource() * @see #getID() * @see #getChanged() @@ -238,9 +238,9 @@ /** * Returns the originator of the event. * - * @return the Component object that originated - * the event, or null if the object is not a - * Component. + * @return the {@code Component} object that originated + * the event, or {@code null} if the object is not a + * {@code Component}. */ public Component getComponent() { return (source instanceof Component) ? (Component)source : null; @@ -257,13 +257,13 @@ } /** - * Returns the parent of the Component returned by - * getChanged(). For a HIERARCHY_CHANGED event where the - * change was of type PARENT_CHANGED via a call to - * Container.add, the parent returned is the parent + * Returns the parent of the Component returned by + * {@code getChanged()}. For a HIERARCHY_CHANGED event where the + * change was of type PARENT_CHANGED via a call to + * {@code Container.add}, the parent returned is the parent * after the add operation. For a HIERARCHY_CHANGED event where - * the change was of type PARENT_CHANGED via a call to - * Container.remove, the parent returned is the parent + * the change was of type PARENT_CHANGED via a call to + * {@code Container.remove}, the parent returned is the parent * before the remove operation. For all other events and types, * the parent returned is the parent during the operation. * --- old/src/java.desktop/share/classes/java/awt/event/HierarchyListener.java 2015-10-04 22:53:31.397272007 +0400 +++ new/src/java.desktop/share/classes/java/awt/event/HierarchyListener.java 2015-10-04 22:53:31.209272015 +0400 @@ -32,15 +32,15 @@ * The class that is interested in processing a hierarchy changed event * should implement this interface. * The listener object created from that class is then registered with a - * Component using the Component's addHierarchyListener + * Component using the Component's {@code addHierarchyListener} * method. When the hierarchy to which the Component belongs changes, the - * hierarchyChanged method in the listener object is invoked, - * and the HierarchyEvent is passed to it. + * {@code hierarchyChanged} method in the listener object is invoked, + * and the {@code HierarchyEvent} is passed to it. *

          * Hierarchy events are provided for notification purposes ONLY; * The AWT will automatically handle changes to the hierarchy internally so * that GUI layout, displayability, and visibility work properly regardless - * of whether a program registers a HierarchyListener or not. + * of whether a program registers a {@code HierarchyListener} or not. * * @author David Mendenhall * @see HierarchyEvent @@ -49,7 +49,7 @@ public interface HierarchyListener extends EventListener { /** * Called when the hierarchy has been changed. To discern the actual - * type of change, call HierarchyEvent.getChangeFlags(). + * type of change, call {@code HierarchyEvent.getChangeFlags()}. * * @param e the event to be processed * @see HierarchyEvent#getChangeFlags() --- old/src/java.desktop/share/classes/java/awt/event/InputEvent.java 2015-10-04 22:53:31.921271983 +0400 +++ new/src/java.desktop/share/classes/java/awt/event/InputEvent.java 2015-10-04 22:53:31.729271992 +0400 @@ -315,8 +315,8 @@ * Constructs an InputEvent object with the specified source component, * modifiers, and type. *

          This method throws an - * IllegalArgumentException if source - * is null. + * {@code IllegalArgumentException} if {@code source} + * is {@code null}. * * @param source the object where the event originated * @param id the integer that identifies the event type. @@ -336,7 +336,7 @@ * Passing negative parameter * is not recommended. * Zero value means that no modifiers were passed - * @throws IllegalArgumentException if source is null + * @throws IllegalArgumentException if {@code source} is null * @see #getSource() * @see #getID() * @see #getWhen() @@ -442,16 +442,16 @@ * button 2, and then releases them in the same order, * the following sequence of events is generated: *

          -     *    MOUSE_PRESSED:  BUTTON1_DOWN_MASK
          -     *    MOUSE_PRESSED:  BUTTON1_DOWN_MASK | BUTTON2_DOWN_MASK
          -     *    MOUSE_RELEASED: BUTTON2_DOWN_MASK
          -     *    MOUSE_CLICKED:  BUTTON2_DOWN_MASK
          -     *    MOUSE_RELEASED:
          -     *    MOUSE_CLICKED:
          +     *    {@code MOUSE_PRESSED}:  {@code BUTTON1_DOWN_MASK}
          +     *    {@code MOUSE_PRESSED}:  {@code BUTTON1_DOWN_MASK | BUTTON2_DOWN_MASK}
          +     *    {@code MOUSE_RELEASED}: {@code BUTTON2_DOWN_MASK}
          +     *    {@code MOUSE_CLICKED}:  {@code BUTTON2_DOWN_MASK}
          +     *    {@code MOUSE_RELEASED}:
          +     *    {@code MOUSE_CLICKED}:
                * 
          *

          * It is not recommended to compare the return value of this method - * using == because new modifiers can be added in the future. + * using {@code ==} because new modifiers can be added in the future. * For example, the appropriate way to check that SHIFT and BUTTON1 are * down, but CTRL is up is demonstrated by the following code: *

          @@ -494,7 +494,7 @@
                * Returns a String describing the extended modifier keys and
                * mouse buttons, such as "Shift", "Button1", or "Ctrl+Shift".
                * These strings can be localized by changing the
          -     * awt.properties file.
          +     * {@code awt.properties} file.
                * 

          * Note that passing negative parameter is incorrect, * and will cause the returning an unspecified string. --- old/src/java.desktop/share/classes/java/awt/event/InputMethodEvent.java 2015-10-04 22:53:32.461271959 +0400 +++ new/src/java.desktop/share/classes/java/awt/event/InputMethodEvent.java 2015-10-04 22:53:32.257271968 +0400 @@ -106,45 +106,45 @@ private transient TextHitInfo visiblePosition; /** - * Constructs an InputMethodEvent with the specified + * Constructs an {@code InputMethodEvent} with the specified * source component, type, time, text, caret, and visiblePosition. *

          * The offsets of caret and visiblePosition are relative to the current - * composed text; that is, the composed text within text - * if this is an INPUT_METHOD_TEXT_CHANGED event, - * the composed text within the text of the - * preceding INPUT_METHOD_TEXT_CHANGED event otherwise. - *

          Note that passing in an invalid id results in + * composed text; that is, the composed text within {@code text} + * if this is an {@code INPUT_METHOD_TEXT_CHANGED} event, + * the composed text within the {@code text} of the + * preceding {@code INPUT_METHOD_TEXT_CHANGED} event otherwise. + *

          Note that passing in an invalid {@code id} results in * unspecified behavior. This method throws an - * IllegalArgumentException if source - * is null. + * {@code IllegalArgumentException} if {@code source} + * is {@code null}. * * @param source the object where the event originated * @param id the event type * @param when a long integer that specifies the time the event occurred * @param text the combined committed and composed text, - * committed text first; must be null - * when the event type is CARET_POSITION_CHANGED; - * may be null for - * INPUT_METHOD_TEXT_CHANGED if there's no + * committed text first; must be {@code null} + * when the event type is {@code CARET_POSITION_CHANGED}; + * may be {@code null} for + * {@code INPUT_METHOD_TEXT_CHANGED} if there's no * committed or composed text * @param committedCharacterCount the number of committed * characters in the text * @param caret the caret (a.k.a. insertion point); - * null if there's no caret within current + * {@code null} if there's no caret within current * composed text * @param visiblePosition the position that's most important - * to be visible; null if there's no + * to be visible; {@code null} if there's no * recommendation for a visible position within current * composed text - * @throws IllegalArgumentException if id is not + * @throws IllegalArgumentException if {@code id} is not * in the range - * INPUT_METHOD_FIRST..INPUT_METHOD_LAST; - * or if id is CARET_POSITION_CHANGED and - * text is not null; - * or if committedCharacterCount is not in the range - * 0..(text.getEndIndex() - text.getBeginIndex()) - * @throws IllegalArgumentException if source is null + * {@code INPUT_METHOD_FIRST}..{@code INPUT_METHOD_LAST}; + * or if id is {@code CARET_POSITION_CHANGED} and + * {@code text} is not {@code null}; + * or if {@code committedCharacterCount} is not in the range + * {@code 0}..{@code (text.getEndIndex() - text.getBeginIndex())} + * @throws IllegalArgumentException if {@code source} is null * * @since 1.4 */ @@ -177,46 +177,46 @@ } /** - * Constructs an InputMethodEvent with the specified + * Constructs an {@code InputMethodEvent} with the specified * source component, type, text, caret, and visiblePosition. *

          * The offsets of caret and visiblePosition are relative to the current - * composed text; that is, the composed text within text - * if this is an INPUT_METHOD_TEXT_CHANGED event, - * the composed text within the text of the - * preceding INPUT_METHOD_TEXT_CHANGED event otherwise. + * composed text; that is, the composed text within {@code text} + * if this is an {@code INPUT_METHOD_TEXT_CHANGED} event, + * the composed text within the {@code text} of the + * preceding {@code INPUT_METHOD_TEXT_CHANGED} event otherwise. * The time stamp for this event is initialized by invoking * {@link java.awt.EventQueue#getMostRecentEventTime()}. - *

          Note that passing in an invalid id results in + *

          Note that passing in an invalid {@code id} results in * unspecified behavior. This method throws an - * IllegalArgumentException if source - * is null. + * {@code IllegalArgumentException} if {@code source} + * is {@code null}. * * @param source the object where the event originated * @param id the event type * @param text the combined committed and composed text, - * committed text first; must be null - * when the event type is CARET_POSITION_CHANGED; - * may be null for - * INPUT_METHOD_TEXT_CHANGED if there's no + * committed text first; must be {@code null} + * when the event type is {@code CARET_POSITION_CHANGED}; + * may be {@code null} for + * {@code INPUT_METHOD_TEXT_CHANGED} if there's no * committed or composed text * @param committedCharacterCount the number of committed * characters in the text * @param caret the caret (a.k.a. insertion point); - * null if there's no caret within current + * {@code null} if there's no caret within current * composed text * @param visiblePosition the position that's most important - * to be visible; null if there's no + * to be visible; {@code null} if there's no * recommendation for a visible position within current * composed text - * @throws IllegalArgumentException if id is not + * @throws IllegalArgumentException if {@code id} is not * in the range - * INPUT_METHOD_FIRST..INPUT_METHOD_LAST; - * or if id is CARET_POSITION_CHANGED and - * text is not null; - * or if committedCharacterCount is not in the range - * 0..(text.getEndIndex() - text.getBeginIndex()) - * @throws IllegalArgumentException if source is null + * {@code INPUT_METHOD_FIRST}..{@code INPUT_METHOD_LAST}; + * or if id is {@code CARET_POSITION_CHANGED} and + * {@code text} is not {@code null}; + * or if {@code committedCharacterCount} is not in the range + * {@code 0}..{@code (text.getEndIndex() - text.getBeginIndex())} + * @throws IllegalArgumentException if {@code source} is null */ public InputMethodEvent(Component source, int id, AttributedCharacterIterator text, int committedCharacterCount, @@ -228,39 +228,39 @@ } /** - * Constructs an InputMethodEvent with the + * Constructs an {@code InputMethodEvent} with the * specified source component, type, caret, and visiblePosition. - * The text is set to null, - * committedCharacterCount to 0. + * The text is set to {@code null}, + * {@code committedCharacterCount} to 0. *

          - * The offsets of caret and visiblePosition + * The offsets of {@code caret} and {@code visiblePosition} * are relative to the current composed text; that is, - * the composed text within the text of the - * preceding INPUT_METHOD_TEXT_CHANGED event if the - * event being constructed as a CARET_POSITION_CHANGED event. - * For an INPUT_METHOD_TEXT_CHANGED event without text, - * caret and visiblePosition must be - * null. + * the composed text within the {@code text} of the + * preceding {@code INPUT_METHOD_TEXT_CHANGED} event if the + * event being constructed as a {@code CARET_POSITION_CHANGED} event. + * For an {@code INPUT_METHOD_TEXT_CHANGED} event without text, + * {@code caret} and {@code visiblePosition} must be + * {@code null}. * The time stamp for this event is initialized by invoking * {@link java.awt.EventQueue#getMostRecentEventTime()}. - *

          Note that passing in an invalid id results in + *

          Note that passing in an invalid {@code id} results in * unspecified behavior. This method throws an - * IllegalArgumentException if source - * is null. + * {@code IllegalArgumentException} if {@code source} + * is {@code null}. * * @param source the object where the event originated * @param id the event type * @param caret the caret (a.k.a. insertion point); - * null if there's no caret within current + * {@code null} if there's no caret within current * composed text * @param visiblePosition the position that's most important - * to be visible; null if there's no + * to be visible; {@code null} if there's no * recommendation for a visible position within current * composed text - * @throws IllegalArgumentException if id is not + * @throws IllegalArgumentException if {@code id} is not * in the range - * INPUT_METHOD_FIRST..INPUT_METHOD_LAST - * @throws IllegalArgumentException if source is null + * {@code INPUT_METHOD_FIRST}..{@code INPUT_METHOD_LAST} + * @throws IllegalArgumentException if {@code source} is null */ public InputMethodEvent(Component source, int id, TextHitInfo caret, TextHitInfo visiblePosition) { @@ -271,7 +271,7 @@ /** * Gets the combined committed and composed text. - * Characters from index 0 to index getCommittedCharacterCount() - 1 are committed + * Characters from index 0 to index {@code getCommittedCharacterCount() - 1} are committed * text, the remaining characters are composed text. * * @return the text. @@ -295,9 +295,9 @@ *

          * The offset of the caret is relative to the current * composed text; that is, the composed text within getText() - * if this is an INPUT_METHOD_TEXT_CHANGED event, + * if this is an {@code INPUT_METHOD_TEXT_CHANGED} event, * the composed text within getText() of the - * preceding INPUT_METHOD_TEXT_CHANGED event otherwise. + * preceding {@code INPUT_METHOD_TEXT_CHANGED} event otherwise. * * @return the caret (a.k.a. insertion point). * Null if there's no caret within current composed text. @@ -311,9 +311,9 @@ *

          * The offset of the visible position is relative to the current * composed text; that is, the composed text within getText() - * if this is an INPUT_METHOD_TEXT_CHANGED event, + * if this is an {@code INPUT_METHOD_TEXT_CHANGED} event, * the composed text within getText() of the - * preceding INPUT_METHOD_TEXT_CHANGED event otherwise. + * preceding {@code INPUT_METHOD_TEXT_CHANGED} event otherwise. * * @return the position that's most important to be visible. * Null if there's no recommendation for a visible position within current composed text. @@ -411,7 +411,7 @@ } /** - * Initializes the when field if it is not present in the + * Initializes the {@code when} field if it is not present in the * object input stream. In that case, the field will be initialized by * invoking {@link java.awt.EventQueue#getMostRecentEventTime()}. */ --- old/src/java.desktop/share/classes/java/awt/event/ItemEvent.java 2015-10-04 22:53:32.993271935 +0400 +++ new/src/java.desktop/share/classes/java/awt/event/ItemEvent.java 2015-10-04 22:53:32.801271944 +0400 @@ -32,12 +32,12 @@ * A semantic event which indicates that an item was selected or deselected. * This high-level event is generated by an ItemSelectable object (such as a * List) when an item is selected or deselected by the user. - * The event is passed to every ItemListener object which + * The event is passed to every {@code ItemListener} object which * registered to receive such events using the component's - * addItemListener method. + * {@code addItemListener} method. *

          - * The object that implements the ItemListener interface gets - * this ItemEvent when the event occurs. The listener is + * The object that implements the {@code ItemListener} interface gets + * this {@code ItemEvent} when the event occurs. The listener is * spared the details of processing individual mouse movements and mouse * clicks, and can instead process a "meaningful" (semantic) event like * "item selected" or "item deselected". @@ -98,7 +98,7 @@ Object item; /** - * stateChange indicates whether the item + * {@code stateChange} indicates whether the {@code item} * was selected or deselected. * * @serial @@ -112,12 +112,12 @@ private static final long serialVersionUID = -608708132447206933L; /** - * Constructs an ItemEvent object. + * Constructs an {@code ItemEvent} object. *

          This method throws an - * IllegalArgumentException if source - * is null. + * {@code IllegalArgumentException} if {@code source} + * is {@code null}. * - * @param source The ItemSelectable object + * @param source The {@code ItemSelectable} object * that originated the event * @param id The integer that identifies the event type. * For information on allowable values, see @@ -127,7 +127,7 @@ * selected or deselected. * For information on allowable values, see * the class description for {@link ItemEvent} - * @throws IllegalArgumentException if source is null + * @throws IllegalArgumentException if {@code source} is null * @see #getItemSelectable() * @see #getID() * @see #getStateChange() --- old/src/java.desktop/share/classes/java/awt/event/ItemListener.java 2015-10-04 22:53:33.517271911 +0400 +++ new/src/java.desktop/share/classes/java/awt/event/ItemListener.java 2015-10-04 22:53:33.325271920 +0400 @@ -32,9 +32,9 @@ * The class that is interested in processing an item event * implements this interface. The object created with that * class is then registered with a component using the - * component's addItemListener method. When an + * component's {@code addItemListener} method. When an * item-selection event occurs, the listener object's - * itemStateChanged method is invoked. + * {@code itemStateChanged} method is invoked. * * @author Amy Fowler * --- old/src/java.desktop/share/classes/java/awt/event/KeyAdapter.java 2015-10-04 22:53:34.041271888 +0400 +++ new/src/java.desktop/share/classes/java/awt/event/KeyAdapter.java 2015-10-04 22:53:33.849271897 +0400 @@ -30,17 +30,17 @@ * The methods in this class are empty. This class exists as * convenience for creating listener objects. *

          - * Extend this class to create a KeyEvent listener + * Extend this class to create a {@code KeyEvent} listener * and override the methods for the events of interest. (If you implement the - * KeyListener interface, you have to define all of + * {@code KeyListener} interface, you have to define all of * the methods in it. This abstract class defines null methods for them * all, so you can only have to define methods for events you care about.) *

          * Create a listener object using the extended class and then register it with - * a component using the component's addKeyListener + * a component using the component's {@code addKeyListener} * method. When a key is pressed, released, or typed, * the relevant method in the listener object is invoked, - * and the KeyEvent is passed to it. + * and the {@code KeyEvent} is passed to it. * * @author Carl Quinn * --- old/src/java.desktop/share/classes/java/awt/event/KeyEvent.java 2015-10-04 22:53:34.565271864 +0400 +++ new/src/java.desktop/share/classes/java/awt/event/KeyEvent.java 2015-10-04 22:53:34.373271873 +0400 @@ -37,12 +37,12 @@ *

          * This low-level event is generated by a component object (such as a text * field) when a key is pressed, released, or typed. - * The event is passed to every KeyListener - * or KeyAdapter object which registered to receive such - * events using the component's addKeyListener method. - * (KeyAdapter objects implement the - * KeyListener interface.) Each such listener object - * gets this KeyEvent when the event occurs. + * The event is passed to every {@code KeyListener} + * or {@code KeyAdapter} object which registered to receive such + * events using the component's {@code addKeyListener} method. + * ({@code KeyAdapter} objects implement the + * {@code KeyListener} interface.) Each such listener object + * gets this {@code KeyEvent} when the event occurs. *

          * "Key typed" events are higher-level and generally do not depend on * the platform or keyboard layout. They are generated when a Unicode character @@ -974,7 +974,7 @@ /** * A constant indicating that the keyLocation is indeterminate * or not relevant. - * KEY_TYPED events do not have a keyLocation; this value + * {@code KEY_TYPED} events do not have a keyLocation; this value * is used instead. * @since 1.4 */ @@ -1028,7 +1028,7 @@ int keyCode; /** - * keyChar is a valid unicode character + * {@code keyChar} is a valid unicode character * that is fired by a key or a key combination on * a keyboard. * @@ -1045,9 +1045,9 @@ * right shift keys. Additionally, some keys occur on the numeric * keypad. This variable is used to distinguish such keys. * - * The only legal values are KEY_LOCATION_UNKNOWN, - * KEY_LOCATION_STANDARD, KEY_LOCATION_LEFT, - * KEY_LOCATION_RIGHT, and KEY_LOCATION_NUMPAD. + * The only legal values are {@code KEY_LOCATION_UNKNOWN}, + * {@code KEY_LOCATION_STANDARD}, {@code KEY_LOCATION_LEFT}, + * {@code KEY_LOCATION_RIGHT}, and {@code KEY_LOCATION_NUMPAD}. * * @serial * @see #getKeyLocation() @@ -1115,12 +1115,12 @@ } /** - * Constructs a KeyEvent object. + * Constructs a {@code KeyEvent} object. *

          This method throws an - * IllegalArgumentException if source - * is null. + * {@code IllegalArgumentException} if {@code source} + * is {@code null}. * - * @param source The Component that originated the event + * @param source The {@code Component} that originated the event * @param id An integer indicating the type of event. * For information on allowable values, see * the class description for {@link KeyEvent} @@ -1142,19 +1142,19 @@ * CHAR_UNDEFINED (for key-pressed and key-released * events which do not map to a valid Unicode character) * @param keyLocation Identifies the key location. The only legal - * values are KEY_LOCATION_UNKNOWN, - * KEY_LOCATION_STANDARD, KEY_LOCATION_LEFT, - * KEY_LOCATION_RIGHT, and KEY_LOCATION_NUMPAD. + * values are {@code KEY_LOCATION_UNKNOWN}, + * {@code KEY_LOCATION_STANDARD}, {@code KEY_LOCATION_LEFT}, + * {@code KEY_LOCATION_RIGHT}, and {@code KEY_LOCATION_NUMPAD}. * @throws IllegalArgumentException - * if id is KEY_TYPED and - * keyChar is CHAR_UNDEFINED; - * or if id is KEY_TYPED and - * keyCode is not VK_UNDEFINED; - * or if id is KEY_TYPED and - * keyLocation is not KEY_LOCATION_UNKNOWN; - * or if keyLocation is not one of the legal + * if {@code id} is {@code KEY_TYPED} and + * {@code keyChar} is {@code CHAR_UNDEFINED}; + * or if {@code id} is {@code KEY_TYPED} and + * {@code keyCode} is not {@code VK_UNDEFINED}; + * or if {@code id} is {@code KEY_TYPED} and + * {@code keyLocation} is not {@code KEY_LOCATION_UNKNOWN}; + * or if {@code keyLocation} is not one of the legal * values enumerated above. - * @throws IllegalArgumentException if source is null + * @throws IllegalArgumentException if {@code source} is null * @see #getSource() * @see #getID() * @see #getWhen() @@ -1196,12 +1196,12 @@ } /** - * Constructs a KeyEvent object. + * Constructs a {@code KeyEvent} object. *

          This method throws an - * IllegalArgumentException if source - * is null. + * {@code IllegalArgumentException} if {@code source} + * is {@code null}. * - * @param source The Component that originated the event + * @param source The {@code Component} that originated the event * @param id An integer indicating the type of event. * For information on allowable values, see * the class description for {@link KeyEvent} @@ -1222,12 +1222,12 @@ * @param keyChar The Unicode character generated by this event, or * CHAR_UNDEFINED (for key-pressed and key-released * events which do not map to a valid Unicode character) - * @throws IllegalArgumentException if id is - * KEY_TYPED and keyChar is - * CHAR_UNDEFINED; or if id is - * KEY_TYPED and keyCode is not - * VK_UNDEFINED - * @throws IllegalArgumentException if source is null + * @throws IllegalArgumentException if {@code id} is + * {@code KEY_TYPED} and {@code keyChar} is + * {@code CHAR_UNDEFINED}; or if {@code id} is + * {@code KEY_TYPED} and {@code keyCode} is not + * {@code VK_UNDEFINED} + * @throws IllegalArgumentException if {@code source} is null * @see #getSource() * @see #getID() * @see #getWhen() @@ -1243,7 +1243,7 @@ /** * @deprecated as of JDK1.1; use {@link #KeyEvent(Component, int, long, int, int, char)} instead - * @param source The Component that originated the event + * @param source The {@code Component} that originated the event * @param id An integer indicating the type of event. * For information on allowable values, see * the class description for {@link KeyEvent} @@ -1272,8 +1272,8 @@ * Returns the integer keyCode associated with the key in this event. * * @return the integer code for an actual key on the keyboard. - * (For KEY_TYPED events, the keyCode is - * VK_UNDEFINED.) + * (For {@code KEY_TYPED} events, the keyCode is + * {@code VK_UNDEFINED}.) */ public int getKeyCode() { return keyCode; @@ -1290,17 +1290,17 @@ /** * Returns the character associated with the key in this event. - * For example, the KEY_TYPED event for shift + "a" + * For example, the {@code KEY_TYPED} event for shift + "a" * returns the value for "A". *

          - * KEY_PRESSED and KEY_RELEASED events + * {@code KEY_PRESSED} and {@code KEY_RELEASED} events * are not intended for reporting of character input. Therefore, * the values returned by this method are guaranteed to be - * meaningful only for KEY_TYPED events. + * meaningful only for {@code KEY_TYPED} events. * * @return the Unicode character defined for this key event. * If no valid Unicode character exists for this key event, - * CHAR_UNDEFINED is returned. + * {@code CHAR_UNDEFINED} is returned. */ public char getKeyChar() { return keyChar; @@ -1322,7 +1322,7 @@ *

          * NOTE: use of this method is not recommended, because many AWT * implementations do not recognize modifier changes. This is - * especially true for KEY_TYPED events where the shift + * especially true for {@code KEY_TYPED} events where the shift * modifier is changed. * * @param modifiers an integer combination of the modifier constants. @@ -1347,8 +1347,8 @@ * keypad. This provides a way of distinguishing such keys. * * @return the location of the key that was pressed or released. - * Always returns KEY_LOCATION_UNKNOWN for - * KEY_TYPED events. + * Always returns {@code KEY_LOCATION_UNKNOWN} for + * {@code KEY_TYPED} events. * @since 1.4 */ public int getKeyLocation() { @@ -1541,15 +1541,15 @@ } /** - * Returns a String describing the modifier key(s), + * Returns a {@code String} describing the modifier key(s), * such as "Shift", or "Ctrl+Shift". These strings can be - * localized by changing the awt.properties file. + * localized by changing the {@code awt.properties} file. *

          - * Note that InputEvent.ALT_MASK and - * InputEvent.BUTTON2_MASK have the same value, + * Note that {@code InputEvent.ALT_MASK} and + * {@code InputEvent.BUTTON2_MASK} have the same value, * so the string "Alt" is returned for both modifiers. Likewise, - * InputEvent.META_MASK and - * InputEvent.BUTTON3_MASK have the same value, + * {@code InputEvent.META_MASK} and + * {@code InputEvent.BUTTON3_MASK} have the same value, * so the string "Meta" is returned for both modifiers. * * @param modifiers the modifier mask to be processed @@ -1595,8 +1595,8 @@ * Typically an action key does not fire a unicode character and is * not a modifier key. * - * @return true if the key is an "action" key, - * false otherwise + * @return {@code true} if the key is an "action" key, + * {@code false} otherwise */ public boolean isActionKey() { switch (keyCode) { --- old/src/java.desktop/share/classes/java/awt/event/KeyListener.java 2015-10-04 22:53:35.113271840 +0400 +++ new/src/java.desktop/share/classes/java/awt/event/KeyListener.java 2015-10-04 22:53:34.921271848 +0400 @@ -31,14 +31,14 @@ * The listener interface for receiving keyboard events (keystrokes). * The class that is interested in processing a keyboard event * either implements this interface (and all the methods it - * contains) or extends the abstract KeyAdapter class + * contains) or extends the abstract {@code KeyAdapter} class * (overriding only the methods of interest). *

          * The listener object created from that class is then registered with a - * component using the component's addKeyListener + * component using the component's {@code addKeyListener} * method. A keyboard event is generated when a key is pressed, released, * or typed. The relevant method in the listener - * object is then invoked, and the KeyEvent is passed to it. + * object is then invoked, and the {@code KeyEvent} is passed to it. * * @author Carl Quinn * --- old/src/java.desktop/share/classes/java/awt/event/MouseEvent.java 2015-10-04 22:53:35.729271812 +0400 +++ new/src/java.desktop/share/classes/java/awt/event/MouseEvent.java 2015-10-04 22:53:35.537271821 +0400 @@ -526,11 +526,11 @@ * {@link java.awt.MouseInfo#getNumberOfButtons() MouseInfo.getNumberOfButtons()} * if the mouse has more than three buttons. *

        - * @throws IllegalArgumentException if {@code button} is less then zero + * @throws IllegalArgumentException if {@code button} is less than zero * @throws IllegalArgumentException if {@code source} is null - * @throws IllegalArgumentException if {@code button} is greater then BUTTON3 and the support for extended mouse buttons is + * @throws IllegalArgumentException if {@code button} is greater than BUTTON3 and the support for extended mouse buttons is * {@link Toolkit#areExtraMouseButtonsEnabled() disabled} by Java - * @throws IllegalArgumentException if {@code button} is greater then the + * @throws IllegalArgumentException if {@code button} is greater than the * {@link java.awt.MouseInfo#getNumberOfButtons() current number of buttons} and the support * for extended mouse buttons is {@link Toolkit#areExtraMouseButtonsEnabled() enabled} * by Java @@ -703,9 +703,9 @@ *
      * @throws IllegalArgumentException if {@code button} is less then zero * @throws IllegalArgumentException if {@code source} is null - * @throws IllegalArgumentException if {@code button} is greater then BUTTON3 and the support for extended mouse buttons is + * @throws IllegalArgumentException if {@code button} is greater than BUTTON3 and the support for extended mouse buttons is * {@link Toolkit#areExtraMouseButtonsEnabled() disabled} by Java - * @throws IllegalArgumentException if {@code button} is greater then the + * @throws IllegalArgumentException if {@code button} is greater than the * {@link java.awt.MouseInfo#getNumberOfButtons() current number of buttons} and the support * for extended mouse buttons is {@link Toolkit#areExtraMouseButtonsEnabled() enabled} * by Java @@ -865,7 +865,7 @@ *
    6. 2 ({@code BUTTON2}) *
    7. 3 ({@code BUTTON3}) * - * Button numbers greater then {@code BUTTON3} have no constant identifier. So if a mouse with five buttons is + * Button numbers greater than {@code BUTTON3} have no constant identifier. So if a mouse with five buttons is * installed, this method may return the following values: * *

      * A Java Print Service instance is allowed to support any other doc flavors @@ -390,7 +390,7 @@ *

      * Class DocFlavor in package javax.print.data is similar to class * {@link java.awt.datatransfer.DataFlavor DataFlavor}. Class - * DataFlavor + * {@code DataFlavor} * is not used in the Java Print Service (JPS) API * for three reasons which are all rooted in allowing the JPS API to be * shared by other print services APIs which may need to run on Java profiles @@ -401,13 +401,13 @@ * AWT. * *

    8. - * The implementation of class java.awt.datatransfer.DataFlavor + * The implementation of class {@code java.awt.datatransfer.DataFlavor} * does not guarantee that equivalent data flavors will have the same * serialized representation. DocFlavor does, and can be used in services * which need this. * *
    9. - * The implementation of class java.awt.datatransfer.DataFlavor + * The implementation of class {@code java.awt.datatransfer.DataFlavor} * includes a human presentable name as part of the serialized representation. * This is not appropriate as part of a service matching constraint. * @@ -488,10 +488,10 @@ * @param className Fully-qualified representation class name. * * @exception NullPointerException - * (unchecked exception) Thrown if mimeType is null or - * className is null. + * (unchecked exception) Thrown if {@code mimeType} is null or + * {@code className} is null. * @exception IllegalArgumentException - * (unchecked exception) Thrown if mimeType does not + * (unchecked exception) Thrown if {@code mimeType} does not * obey the syntax for a MIME media type string. */ public DocFlavor(String mimeType, String className) { @@ -528,7 +528,7 @@ } /** - * Returns a String representing a MIME + * Returns a {@code String} representing a MIME * parameter. * Mime types may include parameters which are usually optional. * The charset for text types is a commonly useful example. @@ -555,7 +555,7 @@ } /** - * Converts this DocFlavor to a string. + * Converts this {@code DocFlavor} to a string. * * @return MIME type string based on the canonical form. Each parameter * value is enclosed in quotes. @@ -576,7 +576,7 @@ /** * Determines if this doc flavor object is equal to the given object. * The two are equal if the given object is not null, is an instance - * of DocFlavor, has a MIME type equivalent to this doc + * of {@code DocFlavor}, has a MIME type equivalent to this doc * flavor object's MIME type (that is, the MIME types have the same media * type, media subtype, and parameters), and has the same representation * class name as this doc flavor object. Thus, if two doc flavor objects' @@ -588,7 +588,7 @@ * * @param obj Object to test. * - * @return True if this doc flavor object equals obj, false + * @return True if this doc flavor object equals {@code obj}, false * otherwise. */ public boolean equals(Object obj) { @@ -642,7 +642,7 @@ /** * Class DocFlavor.BYTE_ARRAY provides predefined static constant * DocFlavor objects for example doc flavors using a byte array - * (byte[]) as the print data representation class. + * ({@code byte[]}) as the print data representation class. * * @author Alan Kaminsky */ @@ -652,14 +652,14 @@ /** * Constructs a new doc flavor with the given MIME type and a print - * data representation class name of "[B" (byte array). + * data representation class name of {@code "[B"} (byte array). * * @param mimeType MIME media type string. * * @exception NullPointerException - * (unchecked exception) Thrown if mimeType is null. + * (unchecked exception) Thrown if {@code mimeType} is null. * @exception IllegalArgumentException - * (unchecked exception) Thrown if mimeType does not + * (unchecked exception) Thrown if {@code mimeType} does not * obey the syntax for a MIME media type string. */ public BYTE_ARRAY (String mimeType) { @@ -667,19 +667,19 @@ } /** - * Doc flavor with MIME type = "text/plain", + * Doc flavor with MIME type = {@code "text/plain"}, * encoded in the host platform encoding. * See {@link DocFlavor#hostEncoding hostEncoding} * Print data representation class name = - * "[B" (byte array). + * {@code "[B"} (byte array). */ public static final BYTE_ARRAY TEXT_PLAIN_HOST = new BYTE_ARRAY ("text/plain; charset="+hostEncoding); /** * Doc flavor with MIME type = - * "text/plain; charset=utf-8", - * print data representation class name = "[B" (byte + * {@code "text/plain; charset=utf-8"}, + * print data representation class name = {@code "[B"} (byte * array). */ public static final BYTE_ARRAY TEXT_PLAIN_UTF_8 = @@ -687,8 +687,8 @@ /** * Doc flavor with MIME type = - * "text/plain; charset=utf-16", - * print data representation class name = "[B" (byte + * {@code "text/plain; charset=utf-16"}, + * print data representation class name = {@code "[B"} (byte * array). */ public static final BYTE_ARRAY TEXT_PLAIN_UTF_16 = @@ -697,9 +697,9 @@ /** * Doc flavor with MIME type = - * "text/plain; charset=utf-16be" + * {@code "text/plain; charset=utf-16be"} * (big-endian byte ordering), - * print data representation class name = "[B" (byte + * print data representation class name = {@code "[B"} (byte * array). */ public static final BYTE_ARRAY TEXT_PLAIN_UTF_16BE = @@ -707,9 +707,9 @@ /** * Doc flavor with MIME type = - * "text/plain; charset=utf-16le" + * {@code "text/plain; charset=utf-16le"} * (little-endian byte ordering), - * print data representation class name = "[B" (byte + * print data representation class name = {@code "[B"} (byte * array). */ public static final BYTE_ARRAY TEXT_PLAIN_UTF_16LE = @@ -717,28 +717,28 @@ /** * Doc flavor with MIME type = - * "text/plain; charset=us-ascii", + * {@code "text/plain; charset=us-ascii"}, * print data representation class name = - * "[B" (byte array). + * {@code "[B"} (byte array). */ public static final BYTE_ARRAY TEXT_PLAIN_US_ASCII = new BYTE_ARRAY ("text/plain; charset=us-ascii"); /** - * Doc flavor with MIME type = "text/html", + * Doc flavor with MIME type = {@code "text/html"}, * encoded in the host platform encoding. * See {@link DocFlavor#hostEncoding hostEncoding} * Print data representation class name = - * "[B" (byte array). + * {@code "[B"} (byte array). */ public static final BYTE_ARRAY TEXT_HTML_HOST = new BYTE_ARRAY ("text/html; charset="+hostEncoding); /** * Doc flavor with MIME type = - * "text/html; charset=utf-8", - * print data representation class name = "[B" (byte + * {@code "text/html; charset=utf-8"}, + * print data representation class name = {@code "[B"} (byte * array). */ public static final BYTE_ARRAY TEXT_HTML_UTF_8 = @@ -746,8 +746,8 @@ /** * Doc flavor with MIME type = - * "text/html; charset=utf-16", - * print data representation class name = "[B" (byte + * {@code "text/html; charset=utf-16"}, + * print data representation class name = {@code "[B"} (byte * array). */ public static final BYTE_ARRAY TEXT_HTML_UTF_16 = @@ -755,9 +755,9 @@ /** * Doc flavor with MIME type = - * "text/html; charset=utf-16be" + * {@code "text/html; charset=utf-16be"} * (big-endian byte ordering), - * print data representation class name = "[B" (byte + * print data representation class name = {@code "[B"} (byte * array). */ public static final BYTE_ARRAY TEXT_HTML_UTF_16BE = @@ -765,9 +765,9 @@ /** * Doc flavor with MIME type = - * "text/html; charset=utf-16le" + * {@code "text/html; charset=utf-16le"} * (little-endian byte ordering), - * print data representation class name = "[B" (byte + * print data representation class name = {@code "[B"} (byte * array). */ public static final BYTE_ARRAY TEXT_HTML_UTF_16LE = @@ -775,58 +775,58 @@ /** * Doc flavor with MIME type = - * "text/html; charset=us-ascii", + * {@code "text/html; charset=us-ascii"}, * print data representation class name = - * "[B" (byte array). + * {@code "[B"} (byte array). */ public static final BYTE_ARRAY TEXT_HTML_US_ASCII = new BYTE_ARRAY ("text/html; charset=us-ascii"); /** - * Doc flavor with MIME type = "application/pdf", print - * data representation class name = "[B" (byte array). + * Doc flavor with MIME type = {@code "application/pdf"}, print + * data representation class name = {@code "[B"} (byte array). */ public static final BYTE_ARRAY PDF = new BYTE_ARRAY ("application/pdf"); /** - * Doc flavor with MIME type = "application/postscript", - * print data representation class name = "[B" (byte + * Doc flavor with MIME type = {@code "application/postscript"}, + * print data representation class name = {@code "[B"} (byte * array). */ public static final BYTE_ARRAY POSTSCRIPT = new BYTE_ARRAY ("application/postscript"); /** - * Doc flavor with MIME type = "application/vnd.hp-PCL", - * print data representation class name = "[B" (byte + * Doc flavor with MIME type = {@code "application/vnd.hp-PCL"}, + * print data representation class name = {@code "[B"} (byte * array). */ public static final BYTE_ARRAY PCL = new BYTE_ARRAY ("application/vnd.hp-PCL"); /** - * Doc flavor with MIME type = "image/gif", print data - * representation class name = "[B" (byte array). + * Doc flavor with MIME type = {@code "image/gif"}, print data + * representation class name = {@code "[B"} (byte array). */ public static final BYTE_ARRAY GIF = new BYTE_ARRAY ("image/gif"); /** - * Doc flavor with MIME type = "image/jpeg", print data - * representation class name = "[B" (byte array). + * Doc flavor with MIME type = {@code "image/jpeg"}, print data + * representation class name = {@code "[B"} (byte array). */ public static final BYTE_ARRAY JPEG = new BYTE_ARRAY ("image/jpeg"); /** - * Doc flavor with MIME type = "image/png", print data - * representation class name = "[B" (byte array). + * Doc flavor with MIME type = {@code "image/png"}, print data + * representation class name = {@code "[B"} (byte array). */ public static final BYTE_ARRAY PNG = new BYTE_ARRAY ("image/png"); /** * Doc flavor with MIME type = - * "application/octet-stream", - * print data representation class name = "[B" (byte + * {@code "application/octet-stream"}, + * print data representation class name = {@code "[B"} (byte * array). The client must determine that data described * using this DocFlavor is valid for the printer. */ @@ -850,14 +850,14 @@ /** * Constructs a new doc flavor with the given MIME type and a print * data representation class name of - * "java.io.InputStream" (byte stream). + * {@code "java.io.InputStream"} (byte stream). * * @param mimeType MIME media type string. * * @exception NullPointerException - * (unchecked exception) Thrown if mimeType is null. + * (unchecked exception) Thrown if {@code mimeType} is null. * @exception IllegalArgumentException - * (unchecked exception) Thrown if mimeType does not + * (unchecked exception) Thrown if {@code mimeType} does not * obey the syntax for a MIME media type string. */ public INPUT_STREAM (String mimeType) { @@ -865,169 +865,169 @@ } /** - * Doc flavor with MIME type = "text/plain", + * Doc flavor with MIME type = {@code "text/plain"}, * encoded in the host platform encoding. * See {@link DocFlavor#hostEncoding hostEncoding} * Print data representation class name = - * "java.io.InputStream" (byte stream). + * {@code "java.io.InputStream"} (byte stream). */ public static final INPUT_STREAM TEXT_PLAIN_HOST = new INPUT_STREAM ("text/plain; charset="+hostEncoding); /** * Doc flavor with MIME type = - * "text/plain; charset=utf-8", + * {@code "text/plain; charset=utf-8"}, * print data representation class name = - * "java.io.InputStream" (byte stream). + * {@code "java.io.InputStream"} (byte stream). */ public static final INPUT_STREAM TEXT_PLAIN_UTF_8 = new INPUT_STREAM ("text/plain; charset=utf-8"); /** * Doc flavor with MIME type = - * "text/plain; charset=utf-16", + * {@code "text/plain; charset=utf-16"}, * print data representation class name = - * "java.io.InputStream" (byte stream). + * {@code "java.io.InputStream"} (byte stream). */ public static final INPUT_STREAM TEXT_PLAIN_UTF_16 = new INPUT_STREAM ("text/plain; charset=utf-16"); /** * Doc flavor with MIME type = - * "text/plain; charset=utf-16be" + * {@code "text/plain; charset=utf-16be"} * (big-endian byte ordering), * print data representation class name = - * "java.io.InputStream" (byte stream). + * {@code "java.io.InputStream"} (byte stream). */ public static final INPUT_STREAM TEXT_PLAIN_UTF_16BE = new INPUT_STREAM ("text/plain; charset=utf-16be"); /** * Doc flavor with MIME type = - * "text/plain; charset=utf-16le" + * {@code "text/plain; charset=utf-16le"} * (little-endian byte ordering), * print data representation class name = - * "java.io.InputStream" (byte stream). + * {@code "java.io.InputStream"} (byte stream). */ public static final INPUT_STREAM TEXT_PLAIN_UTF_16LE = new INPUT_STREAM ("text/plain; charset=utf-16le"); /** * Doc flavor with MIME type = - * "text/plain; charset=us-ascii", + * {@code "text/plain; charset=us-ascii"}, * print data representation class name = - * "java.io.InputStream" (byte stream). + * {@code "java.io.InputStream"} (byte stream). */ public static final INPUT_STREAM TEXT_PLAIN_US_ASCII = new INPUT_STREAM ("text/plain; charset=us-ascii"); /** - * Doc flavor with MIME type = "text/html", + * Doc flavor with MIME type = {@code "text/html"}, * encoded in the host platform encoding. * See {@link DocFlavor#hostEncoding hostEncoding} * Print data representation class name = - * "java.io.InputStream" (byte stream). + * {@code "java.io.InputStream"} (byte stream). */ public static final INPUT_STREAM TEXT_HTML_HOST = new INPUT_STREAM ("text/html; charset="+hostEncoding); /** * Doc flavor with MIME type = - * "text/html; charset=utf-8", + * {@code "text/html; charset=utf-8"}, * print data representation class name = - * "java.io.InputStream" (byte stream). + * {@code "java.io.InputStream"} (byte stream). */ public static final INPUT_STREAM TEXT_HTML_UTF_8 = new INPUT_STREAM ("text/html; charset=utf-8"); /** * Doc flavor with MIME type = - * "text/html; charset=utf-16", + * {@code "text/html; charset=utf-16"}, * print data representation class name = - * "java.io.InputStream" (byte stream). + * {@code "java.io.InputStream"} (byte stream). */ public static final INPUT_STREAM TEXT_HTML_UTF_16 = new INPUT_STREAM ("text/html; charset=utf-16"); /** * Doc flavor with MIME type = - * "text/html; charset=utf-16be" + * {@code "text/html; charset=utf-16be"} * (big-endian byte ordering), * print data representation class name = - * "java.io.InputStream" (byte stream). + * {@code "java.io.InputStream"} (byte stream). */ public static final INPUT_STREAM TEXT_HTML_UTF_16BE = new INPUT_STREAM ("text/html; charset=utf-16be"); /** * Doc flavor with MIME type = - * "text/html; charset=utf-16le" + * {@code "text/html; charset=utf-16le"} * (little-endian byte ordering), * print data representation class name = - * "java.io.InputStream" (byte stream). + * {@code "java.io.InputStream"} (byte stream). */ public static final INPUT_STREAM TEXT_HTML_UTF_16LE = new INPUT_STREAM ("text/html; charset=utf-16le"); /** * Doc flavor with MIME type = - * "text/html; charset=us-ascii", + * {@code "text/html; charset=us-ascii"}, * print data representation class name = - * "java.io.InputStream" (byte stream). + * {@code "java.io.InputStream"} (byte stream). */ public static final INPUT_STREAM TEXT_HTML_US_ASCII = new INPUT_STREAM ("text/html; charset=us-ascii"); /** - * Doc flavor with MIME type = "application/pdf", print - * data representation class name = "java.io.InputStream" + * Doc flavor with MIME type = {@code "application/pdf"}, print + * data representation class name = {@code "java.io.InputStream"} * (byte stream). */ public static final INPUT_STREAM PDF = new INPUT_STREAM ("application/pdf"); /** - * Doc flavor with MIME type = "application/postscript", + * Doc flavor with MIME type = {@code "application/postscript"}, * print data representation class name = - * "java.io.InputStream" (byte stream). + * {@code "java.io.InputStream"} (byte stream). */ public static final INPUT_STREAM POSTSCRIPT = new INPUT_STREAM ("application/postscript"); /** - * Doc flavor with MIME type = "application/vnd.hp-PCL", + * Doc flavor with MIME type = {@code "application/vnd.hp-PCL"}, * print data representation class name = - * "java.io.InputStream" (byte stream). + * {@code "java.io.InputStream"} (byte stream). */ public static final INPUT_STREAM PCL = new INPUT_STREAM ("application/vnd.hp-PCL"); /** - * Doc flavor with MIME type = "image/gif", print data + * Doc flavor with MIME type = {@code "image/gif"}, print data * representation class name = - * "java.io.InputStream" (byte stream). + * {@code "java.io.InputStream"} (byte stream). */ public static final INPUT_STREAM GIF = new INPUT_STREAM ("image/gif"); /** - * Doc flavor with MIME type = "image/jpeg", print data + * Doc flavor with MIME type = {@code "image/jpeg"}, print data * representation class name = - * "java.io.InputStream" (byte stream). + * {@code "java.io.InputStream"} (byte stream). */ public static final INPUT_STREAM JPEG = new INPUT_STREAM ("image/jpeg"); /** - * Doc flavor with MIME type = "image/png", print data + * Doc flavor with MIME type = {@code "image/png"}, print data * representation class name = - * "java.io.InputStream" (byte stream). + * {@code "java.io.InputStream"} (byte stream). */ public static final INPUT_STREAM PNG = new INPUT_STREAM ("image/png"); /** * Doc flavor with MIME type = - * "application/octet-stream", + * {@code "application/octet-stream"}, * print data representation class name = - * "java.io.InputStream" (byte stream). + * {@code "java.io.InputStream"} (byte stream). * The client must determine that data described * using this DocFlavor is valid for the printer. */ @@ -1050,14 +1050,14 @@ /** * Constructs a new doc flavor with the given MIME type and a print - * data representation class name of "java.net.URL". + * data representation class name of {@code "java.net.URL"}. * * @param mimeType MIME media type string. * * @exception NullPointerException - * (unchecked exception) Thrown if mimeType is null. + * (unchecked exception) Thrown if {@code mimeType} is null. * @exception IllegalArgumentException - * (unchecked exception) Thrown if mimeType does not + * (unchecked exception) Thrown if {@code mimeType} does not * obey the syntax for a MIME media type string. */ public URL (String mimeType) { @@ -1065,160 +1065,160 @@ } /** - * Doc flavor with MIME type = "text/plain", + * Doc flavor with MIME type = {@code "text/plain"}, * encoded in the host platform encoding. * See {@link DocFlavor#hostEncoding hostEncoding} * Print data representation class name = - * "java.net.URL" (byte stream). + * {@code "java.net.URL"} (byte stream). */ public static final URL TEXT_PLAIN_HOST = new URL ("text/plain; charset="+hostEncoding); /** * Doc flavor with MIME type = - * "text/plain; charset=utf-8", + * {@code "text/plain; charset=utf-8"}, * print data representation class name = - * "java.net.URL" (byte stream). + * {@code "java.net.URL"} (byte stream). */ public static final URL TEXT_PLAIN_UTF_8 = new URL ("text/plain; charset=utf-8"); /** * Doc flavor with MIME type = - * "text/plain; charset=utf-16", + * {@code "text/plain; charset=utf-16"}, * print data representation class name = - * java.net.URL"" (byte stream). + * {@code java.net.URL""} (byte stream). */ public static final URL TEXT_PLAIN_UTF_16 = new URL ("text/plain; charset=utf-16"); /** * Doc flavor with MIME type = - * "text/plain; charset=utf-16be" + * {@code "text/plain; charset=utf-16be"} * (big-endian byte ordering), * print data representation class name = - * "java.net.URL" (byte stream). + * {@code "java.net.URL"} (byte stream). */ public static final URL TEXT_PLAIN_UTF_16BE = new URL ("text/plain; charset=utf-16be"); /** * Doc flavor with MIME type = - * "text/plain; charset=utf-16le" + * {@code "text/plain; charset=utf-16le"} * (little-endian byte ordering), * print data representation class name = - * "java.net.URL" (byte stream). + * {@code "java.net.URL"} (byte stream). */ public static final URL TEXT_PLAIN_UTF_16LE = new URL ("text/plain; charset=utf-16le"); /** * Doc flavor with MIME type = - * "text/plain; charset=us-ascii", + * {@code "text/plain; charset=us-ascii"}, * print data representation class name = - * "java.net.URL" (byte stream). + * {@code "java.net.URL"} (byte stream). */ public static final URL TEXT_PLAIN_US_ASCII = new URL ("text/plain; charset=us-ascii"); /** - * Doc flavor with MIME type = "text/html", + * Doc flavor with MIME type = {@code "text/html"}, * encoded in the host platform encoding. * See {@link DocFlavor#hostEncoding hostEncoding} * Print data representation class name = - * "java.net.URL" (byte stream). + * {@code "java.net.URL"} (byte stream). */ public static final URL TEXT_HTML_HOST = new URL ("text/html; charset="+hostEncoding); /** * Doc flavor with MIME type = - * "text/html; charset=utf-8", + * {@code "text/html; charset=utf-8"}, * print data representation class name = - * "java.net.URL" (byte stream). + * {@code "java.net.URL"} (byte stream). */ public static final URL TEXT_HTML_UTF_8 = new URL ("text/html; charset=utf-8"); /** * Doc flavor with MIME type = - * "text/html; charset=utf-16", + * {@code "text/html; charset=utf-16"}, * print data representation class name = - * "java.net.URL" (byte stream). + * {@code "java.net.URL"} (byte stream). */ public static final URL TEXT_HTML_UTF_16 = new URL ("text/html; charset=utf-16"); /** * Doc flavor with MIME type = - * "text/html; charset=utf-16be" + * {@code "text/html; charset=utf-16be"} * (big-endian byte ordering), * print data representation class name = - * "java.net.URL" (byte stream). + * {@code "java.net.URL"} (byte stream). */ public static final URL TEXT_HTML_UTF_16BE = new URL ("text/html; charset=utf-16be"); /** * Doc flavor with MIME type = - * "text/html; charset=utf-16le" + * {@code "text/html; charset=utf-16le"} * (little-endian byte ordering), * print data representation class name = - * "java.net.URL" (byte stream). + * {@code "java.net.URL"} (byte stream). */ public static final URL TEXT_HTML_UTF_16LE = new URL ("text/html; charset=utf-16le"); /** * Doc flavor with MIME type = - * "text/html; charset=us-ascii", + * {@code "text/html; charset=us-ascii"}, * print data representation class name = - * "java.net.URL" (byte stream). + * {@code "java.net.URL"} (byte stream). */ public static final URL TEXT_HTML_US_ASCII = new URL ("text/html; charset=us-ascii"); /** - * Doc flavor with MIME type = "application/pdf", print - * data representation class name = "java.net.URL". + * Doc flavor with MIME type = {@code "application/pdf"}, print + * data representation class name = {@code "java.net.URL"}. */ public static final URL PDF = new URL ("application/pdf"); /** - * Doc flavor with MIME type = "application/postscript", - * print data representation class name = "java.net.URL". + * Doc flavor with MIME type = {@code "application/postscript"}, + * print data representation class name = {@code "java.net.URL"}. */ public static final URL POSTSCRIPT = new URL ("application/postscript"); /** - * Doc flavor with MIME type = "application/vnd.hp-PCL", - * print data representation class name = "java.net.URL". + * Doc flavor with MIME type = {@code "application/vnd.hp-PCL"}, + * print data representation class name = {@code "java.net.URL"}. */ public static final URL PCL = new URL ("application/vnd.hp-PCL"); /** - * Doc flavor with MIME type = "image/gif", print data - * representation class name = "java.net.URL". + * Doc flavor with MIME type = {@code "image/gif"}, print data + * representation class name = {@code "java.net.URL"}. */ public static final URL GIF = new URL ("image/gif"); /** - * Doc flavor with MIME type = "image/jpeg", print data - * representation class name = "java.net.URL". + * Doc flavor with MIME type = {@code "image/jpeg"}, print data + * representation class name = {@code "java.net.URL"}. */ public static final URL JPEG = new URL ("image/jpeg"); /** - * Doc flavor with MIME type = "image/png", print data - * representation class name = "java.net.URL". + * Doc flavor with MIME type = {@code "image/png"}, print data + * representation class name = {@code "java.net.URL"}. */ public static final URL PNG = new URL ("image/png"); /** * Doc flavor with MIME type = - * "application/octet-stream", - * print data representation class name = "java.net.URL". + * {@code "application/octet-stream"}, + * print data representation class name = {@code "java.net.URL"}. * The client must determine that data described * using this DocFlavor is valid for the printer. */ @@ -1229,7 +1229,7 @@ /** * Class DocFlavor.CHAR_ARRAY provides predefined static constant * DocFlavor objects for example doc flavors using a character array - * (char[]) as the print data representation class. As such, + * ({@code char[]}) as the print data representation class. As such, * the character set is Unicode. * * @author Alan Kaminsky @@ -1241,16 +1241,16 @@ /** * Constructs a new doc flavor with the given MIME type and a print * data representation class name of - * "[C" (character array). + * {@code "[C"} (character array). * * @param mimeType MIME media type string. If it is a text media * type, it is assumed to contain a - * "charset=utf-16" parameter. + * {@code "charset=utf-16"} parameter. * * @exception NullPointerException - * (unchecked exception) Thrown if mimeType is null. + * (unchecked exception) Thrown if {@code mimeType} is null. * @exception IllegalArgumentException - * (unchecked exception) Thrown if mimeType does not + * (unchecked exception) Thrown if {@code mimeType} does not * obey the syntax for a MIME media type string. */ public CHAR_ARRAY (String mimeType) { @@ -1258,17 +1258,17 @@ } /** - * Doc flavor with MIME type = "text/plain; - * charset=utf-16", print data representation class name = - * "[C" (character array). + * Doc flavor with MIME type = {@code "text/plain; charset=utf-16"}, + * print data representation class name = + * {@code "[C"} (character array). */ public static final CHAR_ARRAY TEXT_PLAIN = new CHAR_ARRAY ("text/plain; charset=utf-16"); /** - * Doc flavor with MIME type = "text/html; - * charset=utf-16", print data representation class name = - * "[C" (character array). + * Doc flavor with MIME type = {@code "text/html; charset=utf-16"}, + * print data representation class name = + * {@code "[C"} (character array). */ public static final CHAR_ARRAY TEXT_HTML = new CHAR_ARRAY ("text/html; charset=utf-16"); @@ -1289,16 +1289,16 @@ /** * Constructs a new doc flavor with the given MIME type and a print - * data representation class name of "java.lang.String". + * data representation class name of {@code "java.lang.String"}. * * @param mimeType MIME media type string. If it is a text media * type, it is assumed to contain a - * "charset=utf-16" parameter. + * {@code "charset=utf-16"} parameter. * * @exception NullPointerException - * (unchecked exception) Thrown if mimeType is null. + * (unchecked exception) Thrown if {@code mimeType} is null. * @exception IllegalArgumentException - * (unchecked exception) Thrown if mimeType does not + * (unchecked exception) Thrown if {@code mimeType} does not * obey the syntax for a MIME media type string. */ public STRING (String mimeType) { @@ -1306,17 +1306,17 @@ } /** - * Doc flavor with MIME type = "text/plain; - * charset=utf-16", print data representation class name = - * "java.lang.String". + * Doc flavor with MIME type = {@code "text/plain; charset=utf-16"}, + * print data representation class name = + * {@code "java.lang.String"}. */ public static final STRING TEXT_PLAIN = new STRING ("text/plain; charset=utf-16"); /** - * Doc flavor with MIME type = "text/html; - * charset=utf-16", print data representation class name = - * "java.lang.String". + * Doc flavor with MIME type = {@code "text/html; charset=utf-16"}, + * print data representation class name = + * {@code "java.lang.String"}. */ public static final STRING TEXT_HTML = new STRING ("text/html; charset=utf-16"); @@ -1337,16 +1337,16 @@ /** * Constructs a new doc flavor with the given MIME type and a print * data representation class name of\ - * "java.io.Reader" (character stream). + * {@code "java.io.Reader"} (character stream). * * @param mimeType MIME media type string. If it is a text media * type, it is assumed to contain a - * "charset=utf-16" parameter. + * {@code "charset=utf-16"} parameter. * * @exception NullPointerException - * (unchecked exception) Thrown if mimeType is null. + * (unchecked exception) Thrown if {@code mimeType} is null. * @exception IllegalArgumentException - * (unchecked exception) Thrown if mimeType does not + * (unchecked exception) Thrown if {@code mimeType} does not * obey the syntax for a MIME media type string. */ public READER (String mimeType) { @@ -1354,17 +1354,17 @@ } /** - * Doc flavor with MIME type = "text/plain; - * charset=utf-16", print data representation class name = - * "java.io.Reader" (character stream). + * Doc flavor with MIME type = {@code "text/plain; charset=utf-16"}, + * print data representation class name = + * {@code "java.io.Reader"} (character stream). */ public static final READER TEXT_PLAIN = new READER ("text/plain; charset=utf-16"); /** - * Doc flavor with MIME type = "text/html; - * charset=utf-16", print data representation class name = - * "java.io.Reader" (character stream). + * Doc flavor with MIME type = {@code "text/html; charset=utf-16"}, + * print data representation class name = + * {@code "java.io.Reader"} (character stream). */ public static final READER TEXT_HTML = new READER ("text/html; charset=utf-16"); @@ -1384,14 +1384,14 @@ /** * Constructs a new doc flavor with a MIME type of - * "application/x-java-jvm-local-objectref" indicating + * {@code "application/x-java-jvm-local-objectref"} indicating * service formatted print data and the given print data * representation class name. * * @param className Fully-qualified representation class name. * * @exception NullPointerException - * (unchecked exception) Thrown if className is + * (unchecked exception) Thrown if {@code className} is * null. */ public SERVICE_FORMATTED (String className) { @@ -1401,7 +1401,7 @@ /** * Service formatted print data doc flavor with print data * representation class name = - * "java.awt.image.renderable.RenderableImage" + * {@code "java.awt.image.renderable.RenderableImage"} * (renderable image object). */ public static final SERVICE_FORMATTED RENDERABLE_IMAGE = @@ -1409,7 +1409,7 @@ /** * Service formatted print data doc flavor with print data - * representation class name = "java.awt.print.Printable" + * representation class name = {@code "java.awt.print.Printable"} * (printable object). */ public static final SERVICE_FORMATTED PRINTABLE = @@ -1417,7 +1417,7 @@ /** * Service formatted print data doc flavor with print data - * representation class name = "java.awt.print.Pageable" + * representation class name = {@code "java.awt.print.Pageable"} * (pageable object). */ public static final SERVICE_FORMATTED PAGEABLE = --- old/src/java.desktop/share/classes/javax/print/DocPrintJob.java 2015-10-04 22:55:34.277266488 +0400 +++ new/src/java.desktop/share/classes/javax/print/DocPrintJob.java 2015-10-04 22:55:34.089266497 +0400 @@ -45,7 +45,7 @@ * Determines the {@link PrintService} object to which this print job * object is bound. * - * @return PrintService object. + * @return {@code PrintService} object. * */ public PrintService getPrintService(); @@ -58,7 +58,7 @@ * call; that is, the returned attribute set's object's contents will * not be updated if this Print Job's attribute set's contents change * in the future. To detect changes in attribute values, call - * getAttributes() again and compare the new attribute + * {@code getAttributes()} again and compare the new attribute * set to the previous attribute set; alternatively, register a * listener for print job events. * The returned value may be an empty set but should not be null. @@ -96,7 +96,7 @@ * If listener is null, no exception is thrown and no action is * performed. * To determine the attribute updates that may be reported by this job, - * a client can call getAttributes() and identify the + * a client can call {@code getAttributes()} and identify the * subset that are interesting and likely to be reported to the * listener. Clients expecting to be updated about changes in a * specific job attribute should verify it is in that set, but @@ -152,7 +152,7 @@ * Print service implementors should close any print data streams (ie * Reader or InputStream implementations) that they obtain * from the client doc. Robust clients may still wish to verify this. - * An exception is always generated if a DocFlavor cannot + * An exception is always generated if a {@code DocFlavor} cannot * be printed. * * @param doc The document to be printed. If must be a flavor --- old/src/java.desktop/share/classes/javax/print/MimeType.java 2015-10-04 22:55:34.801266465 +0400 +++ new/src/java.desktop/share/classes/javax/print/MimeType.java 2015-10-04 22:55:34.609266473 +0400 @@ -195,9 +195,9 @@ * @param s MIME media type string. * * @exception NullPointerException - * (unchecked exception) Thrown if s is null. + * (unchecked exception) Thrown if {@code s} is null. * @exception IllegalArgumentException - * (unchecked exception) Thrown if s does not obey the + * (unchecked exception) Thrown if {@code s} does not obey the * syntax for a MIME media type string. */ public MimeType(String s) { @@ -271,7 +271,7 @@ * * @param obj Object to test. * - * @return True if this MIME type object equals obj, false + * @return True if this MIME type object equals {@code obj}, false * otherwise. */ public boolean equals (Object obj) { @@ -525,7 +525,7 @@ /** * Parses the given string into canonical pieces and stores the pieces in - * {@link #myPieces myPieces}. + * {@link #myPieces myPieces}. *

      * Special rules applied: *

        @@ -536,9 +536,9 @@ * @param s MIME media type string. * * @exception NullPointerException - * (unchecked exception) Thrown if s is null. + * (unchecked exception) Thrown if {@code s} is null. * @exception IllegalArgumentException - * (unchecked exception) Thrown if s does not obey the + * (unchecked exception) Thrown if {@code s} does not obey the * syntax for a MIME media type string. */ private void parse(String s) { --- old/src/java.desktop/share/classes/javax/print/PrintService.java 2015-10-04 22:55:35.345266440 +0400 +++ new/src/java.desktop/share/classes/javax/print/PrintService.java 2015-10-04 22:55:35.137266450 +0400 @@ -91,7 +91,7 @@ /** * Removes the print-service listener from this print service. * This means the listener is no longer interested in - * PrintService events. + * {@code PrintService} events. * @param listener a PrintServiceAttributeListener object * @see #addPrintServiceAttributeListener */ @@ -103,10 +103,10 @@ * giving this Print Service's status. The returned attribute set object * is unmodifiable. The returned attribute set object is a "snapshot" of * this Print Service's attribute set at the time of the - * getAttributes() method call: that is, the returned + * {@code getAttributes()} method call: that is, the returned * attribute set's contents will not be updated if this print * service's attribute set's contents change in the future. To detect - * changes in attribute values, call getAttributes() again + * changes in attribute values, call {@code getAttributes()} again * and compare the new attribute set to the previous attribute set; * alternatively, register a listener for print service events. * @@ -126,8 +126,8 @@ * attribute is not supported by this service. * @exception NullPointerException if the category is null. * @exception IllegalArgumentException - * (unchecked exception) if category is not a - * Class that implements interface + * (unchecked exception) if {@code category} is not a + * {@code Class} that implements interface *{@link javax.print.attribute.PrintServiceAttribute PrintServiceAttribute}. */ public @@ -135,13 +135,13 @@ /** * Determines the print data formats a client can specify when setting - * up a job for this PrintService. A print data format is + * up a job for this {@code PrintService}. A print data format is * designated by a "doc * flavor" (class {@link javax.print.DocFlavor DocFlavor}) * consisting of a MIME type plus a print data representation class. *

        * Note that some doc flavors may not be supported in combination - * with all attributes. Use getUnsupportedAttributes(..) + * with all attributes. Use {@code getUnsupportedAttributes(..)} * to validate specific combinations. * * @return Array of supported doc flavors, should have at least @@ -152,19 +152,19 @@ /** * Determines if this print service supports a specific - * DocFlavor. This is a convenience method to determine - * if the DocFlavor would be a member of the result of - * getSupportedDocFlavors(). + * {@code DocFlavor}. This is a convenience method to determine + * if the {@code DocFlavor} would be a member of the result of + * {@code getSupportedDocFlavors()}. *

        * Note that some doc flavors may not be supported in combination - * with all attributes. Use getUnsupportedAttributes(..) + * with all attributes. Use {@code getUnsupportedAttributes(..)} * to validate specific combinations. * - * @param flavor the DocFlavorto query for support. - * @return true if this print service supports the - * specified DocFlavor; false otherwise. + * @param flavor the {@code DocFlavor} to query for support. + * @return {@code true} if this print service supports the + * specified {@code DocFlavor}; {@code false} otherwise. * @exception NullPointerException - * (unchecked exception) Thrown if flavor is null. + * (unchecked exception) Thrown if {@code flavor} is null. */ public boolean isDocFlavorSupported(DocFlavor flavor); @@ -173,7 +173,7 @@ * Determines the printing attribute categories a client can specify * when setting up a job for this print service. * A printing attribute category is - * designated by a Class that implements interface + * designated by a {@code Class} that implements interface * {@link javax.print.attribute.Attribute Attribute}. This method returns * just the attribute categories that are supported; it does not * return the particular attribute values that are supported. @@ -181,10 +181,10 @@ * This method returns all the printing attribute * categories this print service supports for any possible job. * Some categories may not be supported in a particular context (ie - * for a particular DocFlavor). - * Use one of the methods that include a DocFlavor to + * for a particular {@code DocFlavor}). + * Use one of the methods that include a {@code DocFlavor} to * validate the request before submitting it, such as - * getSupportedAttributeValues(..). + * {@code getSupportedAttributeValues(..)}. * * @return Array of printing attribute categories that the client can * specify as a doc-level or job-level attribute in a Print @@ -198,37 +198,37 @@ /** * Determines whether a client can specify the given printing * attribute category when setting up a job for this print service. A - * printing attribute category is designated by a Class + * printing attribute category is designated by a {@code Class} * that implements interface {@link javax.print.attribute.Attribute * Attribute}. This method tells whether the attribute category is * supported; it does not tell whether a particular attribute value * is supported. *

        * Some categories may not be supported in a particular context (ie - * for a particular DocFlavor). - * Use one of the methods which include a DocFlavor to + * for a particular {@code DocFlavor}). + * Use one of the methods which include a {@code DocFlavor} to * validate the request before submitting it, such as - * getSupportedAttributeValues(..). + * {@code getSupportedAttributeValues(..)}. *

        * This is a convenience method to determine if the category * would be a member of the result of - * getSupportedAttributeCategories(). + * {@code getSupportedAttributeCategories()}. * * @param category Printing attribute category to test. It must be a - * Class that implements + * {@code Class} that implements * interface * {@link javax.print.attribute.Attribute Attribute}. * - * @return true if this print service supports + * @return {@code true} if this print service supports * specifying a doc-level or - * job-level attribute in category in a Print - * Request; false if it doesn't. + * job-level attribute in {@code category} in a Print + * Request; {@code false} if it doesn't. * * @exception NullPointerException - * (unchecked exception) Thrown if category is null. + * (unchecked exception) Thrown if {@code category} is null. * @exception IllegalArgumentException - * (unchecked exception) Thrown if category is not a - * Class that implements interface + * (unchecked exception) Thrown if {@code category} is not a + * {@code Class} that implements interface * {@link javax.print.attribute.Attribute Attribute}. */ public boolean @@ -244,16 +244,16 @@ * default attribute value instead. *

        * Some attributes may not be supported in a particular context (ie - * for a particular DocFlavor). - * Use one of the methods that include a DocFlavor to + * for a particular {@code DocFlavor}). + * Use one of the methods that include a {@code DocFlavor} to * validate the request before submitting it, such as - * getSupportedAttributeValues(..). + * {@code getSupportedAttributeValues(..)}. *

        * Not all attributes have a default value. For example the - * service will not have a defaultvalue for RequestingUser + * service will not have a defaultvalue for {@code RequestingUser} * i.e. a null return for a supported category means there is no * service default value for that category. Use the - * isAttributeCategorySupported(Class) method to + * {@code isAttributeCategorySupported(Class)} method to * distinguish these cases. * * @param category Printing attribute category for which the default @@ -262,16 +262,16 @@ * {@link javax.print.attribute.Attribute * Attribute}. * - * @return Default attribute value for category, or null + * @return Default attribute value for {@code category}, or null * if this Print Service does not support specifying a doc-level or - * job-level attribute in category in a Print + * job-level attribute in {@code category} in a Print * Request, or the service does not have a default value * for this attribute. * * @exception NullPointerException - * (unchecked exception) Thrown if category is null. + * (unchecked exception) Thrown if {@code category} is null. * @exception IllegalArgumentException - * (unchecked exception) Thrown if category is not a + * (unchecked exception) Thrown if {@code category} is not a * {@link java.lang.Class Class} that implements interface {@link * javax.print.attribute.Attribute Attribute}. */ @@ -285,10 +285,10 @@ * attribute value is an instance of a class that implements interface * {@link javax.print.attribute.Attribute Attribute}. *

        - * If flavor is null and attributes is null + * If {@code flavor} is null and {@code attributes} is null * or is an empty set, this method returns all the printing attribute * values this Print Service supports for any possible job. If - * flavor is not null or attributes is not + * {@code flavor} is not null or {@code attributes} is not * an empty set, this method returns just the printing attribute values * that are compatible with the given doc flavor and/or set of attributes. * That is, a null return value may indicate that specifying this attribute @@ -296,12 +296,12 @@ * Also if DocFlavor is not null it must be a flavor supported by this * PrintService, else IllegalArgumentException will be thrown. *

        - * If the attributes parameter contains an Attribute whose - * category is the same as the category parameter, the service + * If the {@code attributes} parameter contains an Attribute whose + * category is the same as the {@code category} parameter, the service * must ignore this attribute in the AttributeSet. *

        - * DocAttributes which are to be specified on the - * Doc must be included in this set to accurately + * {@code DocAttribute}s which are to be specified on the + * {@code Doc} must be included in this set to accurately * represent the context. *

        * This method returns an Object because different printing attribute @@ -321,7 +321,7 @@ * containing the legal values -- used, for example, by an attribute with * a list of enumerated values. The type of the array is an array of the * specified attribute category type as returned by its - * getCategory(Class). + * {@code getCategory(Class)}. *

      • * Return a single object (of some class other than the attribute category) * that indicates bounds on the legal values -- used, for example, by an @@ -337,18 +337,18 @@ * (both job-level attributes and document-level * attributes), or null. * - * @return Object indicating supported values for category, + * @return Object indicating supported values for {@code category}, * or null if this Print Service does not support specifying a - * doc-level or job-level attribute in category in + * doc-level or job-level attribute in {@code category} in * a Print Request. * * @exception NullPointerException - * (unchecked exception) Thrown if category is null. + * (unchecked exception) Thrown if {@code category} is null. * @exception IllegalArgumentException - * (unchecked exception) Thrown if category is not a + * (unchecked exception) Thrown if {@code category} is not a * {@link java.lang.Class Class} that implements interface {@link * javax.print.attribute.Attribute Attribute}, or - * DocFlavor is not supported by this service. + * {@code DocFlavor} is not supported by this service. */ public Object getSupportedAttributeValues(Class category, @@ -362,24 +362,24 @@ * attribute value is an instance of a class that implements interface * {@link javax.print.attribute.Attribute Attribute}. *

        - * If flavor is null and attributes is null or + * If {@code flavor} is null and {@code attributes} is null or * is an empty set, this method tells whether this Print Service supports * the given printing attribute value for some possible combination of doc - * flavor and set of attributes. If flavor is not null or - * attributes is not an empty set, this method tells whether + * flavor and set of attributes. If {@code flavor} is not null or + * {@code attributes} is not an empty set, this method tells whether * this Print Service supports the given printing attribute value in * combination with the given doc flavor and/or set of attributes. *

        * Also if DocFlavor is not null it must be a flavor supported by this * PrintService, else IllegalArgumentException will be thrown. *

        - * DocAttributes which are to be specified on the - * Doc must be included in this set to accurately + * {@code DocAttribute}s which are to be specified on the + * {@code Doc} must be included in this set to accurately * represent the context. *

        * This is a convenience method to determine if the value * would be a member of the result of - * getSupportedAttributeValues(...). + * {@code getSupportedAttributeValues(...)}. * * @param attrval Printing attribute value to test. * @param flavor Doc flavor for a supposed job, or null. @@ -388,11 +388,11 @@ * attributes), or null. * * @return True if this Print Service supports specifying - * attrval as a doc-level or job-level attribute in a + * {@code attrval} as a doc-level or job-level attribute in a * Print Request, false if it doesn't. * * @exception NullPointerException - * (unchecked exception) if attrval is null. + * (unchecked exception) if {@code attrval} is null. * @exception IllegalArgumentException if flavor is not supported by * this PrintService. */ @@ -410,8 +410,8 @@ * IllegalArgumentException will be thrown. If the * return value from this method is null, all attributes are supported. *

        - * DocAttributes which are to be specified on the - * Doc must be included in this set to accurately + * {@code DocAttribute}s which are to be specified on the + * {@code Doc} must be included in this set to accurately * represent the context. *

        * If the return value is non-null, all attributes in the returned @@ -428,7 +428,7 @@ * to select the attribute(s) to be identified as the cause of the * conflict. *

        - * Use isDocFlavorSupported() to verify that a DocFlavor + * Use {@code isDocFlavorSupported()} to verify that a DocFlavor * is supported before calling this method. * * @param flavor Doc flavor to test, or null @@ -439,7 +439,7 @@ * @return null if this Print Service supports the print request * specification, else the unsupported attributes. * - * @exception IllegalArgumentException ifflavor is + * @exception IllegalArgumentException if {@code flavor} is * not supported by this PrintService. */ public AttributeSet getUnsupportedAttributes(DocFlavor flavor, @@ -453,7 +453,7 @@ * an environment with no UI support should ensure that the factory * is not initialised unless the application calls this method to * obtain the factory. - * See ServiceUIFactory for more information. + * See {@code ServiceUIFactory} for more information. * @return null or a factory for UI components. */ public ServiceUIFactory getServiceUIFactory(); @@ -480,7 +480,7 @@ /** * This method should be implemented consistently with - * equals(Object). + * {@code equals(Object)}. * @return hash code of this object. */ public int hashCode(); --- old/src/java.desktop/share/classes/javax/print/PrintServiceLookup.java 2015-10-04 22:55:35.877266416 +0400 +++ new/src/java.desktop/share/classes/javax/print/PrintServiceLookup.java 2015-10-04 22:55:35.685266425 +0400 @@ -113,7 +113,7 @@ * @param attributes attributes that the print service must support. * If null this constraint is not used. * - * @return array of matching PrintService objects + * @return array of matching {@code PrintService} objects * representing print services that support the specified flavor * attributes. If no services match, the array is zero-length. */ @@ -129,9 +129,9 @@ * Locates MultiDoc print Services capable of printing MultiDocs * containing all the specified doc flavors. *

        This method is useful to help locate a service that can print - * a MultiDoc in which the elements may be different + * a {@code MultiDoc} in which the elements may be different * flavors. An application could perform this itself by multiple lookups - * on each DocFlavor in turn and collating the results, + * on each {@code DocFlavor} in turn and collating the results, * but the lookup service may be able to do this more efficiently. * * @param flavors the flavors to print. If null or empty this @@ -201,8 +201,8 @@ * the method returns false. * * @param sp an implementation of a lookup service. - * @return true if the new lookup service is newly - * registered; false otherwise. + * @return {@code true} if the new lookup service is newly + * registered; {@code false} otherwise. */ public static boolean registerServiceProvider(PrintServiceLookup sp) { synchronized (PrintServiceLookup.class) { @@ -232,15 +232,15 @@ * values and classes reported by the service. * This may be less efficient than a lookup * service tuned for that service. - * Therefore registering a PrintServiceLookup instance + * Therefore registering a {@code PrintServiceLookup} instance * instead is recommended. * The method returns true if this service is not previously * registered and is now successfully registered. * This method should not be called with StreamPrintService instances. * They will always fail to register and the method will return false. * @param service an implementation of a print service. - * @return true if the service is newly - * registered; false otherwise. + * @return {@code true} if the service is newly + * registered; {@code false} otherwise. */ public static boolean registerService(PrintService service) { --- old/src/java.desktop/share/classes/javax/print/SimpleDoc.java 2015-10-04 22:55:36.405266393 +0400 +++ new/src/java.desktop/share/classes/javax/print/SimpleDoc.java 2015-10-04 22:55:36.213266401 +0400 @@ -35,7 +35,7 @@ import javax.print.attribute.DocAttributeSet; /** - * This class is an implementation of interface Doc that can + * This class is an implementation of interface {@code Doc} that can * be used in many common printing requests. * It can handle all of the presently defined "pre-defined" doc flavors * defined as static variables in the DocFlavor class. @@ -52,7 +52,7 @@ * or need a MultiDoc will not want to use this class. *

        * If the print data is a stream, or a print job requests data as a - * stream, then SimpleDoc does not monitor if the service + * stream, then {@code SimpleDoc} does not monitor if the service * properly closes the stream after data transfer completion or job * termination. * Clients may prefer to use provide their own implementation of doc that @@ -69,18 +69,18 @@ private InputStream inStream; /** - * Constructs a SimpleDoc with the specified + * Constructs a {@code SimpleDoc} with the specified * print data, doc flavor and doc attribute set. * @param printData the print data object - * @param flavor the DocFlavor object - * @param attributes a DocAttributeSet, which can - * be null - * @throws IllegalArgumentException if flavor or - * printData is null, or the - * printData does not correspond + * @param flavor the {@code DocFlavor} object + * @param attributes a {@code DocAttributeSet}, which can + * be {@code null} + * @throws IllegalArgumentException if {@code flavor} or + * {@code printData} is {@code null}, or the + * {@code printData} does not correspond * to the specified doc flavor--for example, the data is * not of the type specified as the representation in the - * DocFlavor. + * {@code DocFlavor}. */ public SimpleDoc(Object printData, DocFlavor flavor, DocAttributeSet attributes) { @@ -144,7 +144,7 @@ * Obtains the print data representation object that contains this doc * object's piece of print data in the format corresponding to the * supported doc flavor. - * The getPrintData() method returns an instance of + * The {@code getPrintData()} method returns an instance of * the representation class whose name is given by * {@link DocFlavor#getRepresentationClassName() getRepresentationClassName}, * and the return value can be cast @@ -161,26 +161,26 @@ /** * Obtains a reader for extracting character print data from this doc. - * The Doc implementation is required to support this - * method if the DocFlavor has one of the following print - * data representation classes, and return null + * The {@code Doc} implementation is required to support this + * method if the {@code DocFlavor} has one of the following print + * data representation classes, and return {@code null} * otherwise: *

          - *
        • char[] - *
        • java.lang.String - *
        • java.io.Reader + *
        • {@code char[]} + *
        • {@code java.lang.String} + *
        • {@code java.io.Reader} *
        * The doc's print data representation object is used to construct and - * return a Reader for reading the print data as a stream + * return a {@code Reader} for reading the print data as a stream * of characters from the print data representation object. * However, if the print data representation object is itself a - * Reader then the print data representation object is + * {@code Reader} then the print data representation object is * simply returned. * - * @return a Reader for reading the print data + * @return a {@code Reader} for reading the print data * characters from this doc. * If a reader cannot be provided because this doc does not meet - * the criteria stated above, null is returned. + * the criteria stated above, {@code null} is returned. * * @exception IOException if there was an I/O error while creating * the reader. @@ -209,13 +209,13 @@ /** * Obtains an input stream for extracting byte print data from * this doc. - * The Doc implementation is required to support this - * method if the DocFlavor has one of the following print + * The {@code Doc} implementation is required to support this + * method if the {@code DocFlavor} has one of the following print * data representation classes; otherwise this method - * returns null: + * returns {@code null}: *
          - *
        • byte[] - *
        • java.io.InputStream + *
        • {@code byte[]} + *
        • {@code java.io.InputStream} *
        * The doc's print data representation object is obtained. Then, an * input stream for reading the print data @@ -225,10 +225,10 @@ * input stream then the print data representation object is simply * returned. * - * @return an InputStream for reading the print data + * @return an {@code InputStream} for reading the print data * bytes from this doc. If an input stream cannot be * provided because this doc does not meet - * the criteria stated above, null is returned. + * the criteria stated above, {@code null} is returned. * * @exception IOException * if there was an I/O error while creating the input stream. --- old/src/java.desktop/share/classes/javax/print/StreamPrintService.java 2015-10-04 22:55:36.929266369 +0400 +++ new/src/java.desktop/share/classes/javax/print/StreamPrintService.java 2015-10-04 22:55:36.741266378 +0400 @@ -37,17 +37,17 @@ * The output format must be declared as a mime type. * This is equivalent to an output document flavor where the * representation class is always "java.io.OutputStream" - * An instance of the StreamPrintService class is + * An instance of the {@code StreamPrintService} class is * obtained from a {@link StreamPrintServiceFactory} instance. *

        - * Note that a StreamPrintService is different from a - * PrintService, which supports a + * Note that a {@code StreamPrintService} is different from a + * {@code PrintService}, which supports a * {@link javax.print.attribute.standard.Destination Destination} - * attribute. A StreamPrintService always requires an output - * stream, whereas a PrintService optionally accepts a - * Destination. A StreamPrintService + * attribute. A {@code StreamPrintService} always requires an output + * stream, whereas a {@code PrintService} optionally accepts a + * {@code Destination}. A {@code StreamPrintService} * has no default destination for its formatted output. - * Additionally a StreamPrintService is expected to generate + * Additionally a {@code StreamPrintService} is expected to generate output in * a format useful in other contexts. * StreamPrintService's are not expected to support the Destination attribute. @@ -88,7 +88,7 @@ public abstract String getOutputFormat(); /** - * Disposes this StreamPrintService. + * Disposes this {@code StreamPrintService}. * If a stream service cannot be re-used, it must be disposed * to indicate this. Typically the client will call this method. * Services which write data which cannot meaningfully be appended to @@ -100,12 +100,12 @@ } /** - * Returns a boolean indicating whether or not - * this StreamPrintService has been disposed. + * Returns a {@code boolean} indicating whether or not + * this {@code StreamPrintService} has been disposed. * If this object has been disposed, will return true. * Used by services and client applications to recognize streams * to which no further data should be written. - * @return if this StreamPrintService has been disposed + * @return if this {@code StreamPrintService} has been disposed */ public boolean isDisposed() { return disposed; --- old/src/java.desktop/share/classes/javax/print/StreamPrintServiceFactory.java 2015-10-04 22:55:37.453266346 +0400 +++ new/src/java.desktop/share/classes/javax/print/StreamPrintServiceFactory.java 2015-10-04 22:55:37.265266354 +0400 @@ -37,7 +37,7 @@ import java.util.ServiceConfigurationError; /** - * A StreamPrintServiceFactory is the factory for + * A {@code StreamPrintServiceFactory} is the factory for * {@link StreamPrintService} instances, * which can print to an output stream in a particular * document format described as a mime type. @@ -51,8 +51,8 @@ * Applications locate instances of this class by calling the * {@link #lookupStreamPrintServiceFactories(DocFlavor, String)} method. *

        - * Applications can use a StreamPrintService obtained from a - * factory in place of a PrintService which represents a + * Applications can use a {@code StreamPrintService} obtained from a + * factory in place of a {@code PrintService} which represents a * physical printer device. */ @@ -127,25 +127,25 @@ public abstract DocFlavor[] getSupportedDocFlavors(); /** - * Returns a StreamPrintService that can print to + * Returns a {@code StreamPrintService} that can print to * the specified output stream. * The output stream is created and managed by the application. * It is the application's responsibility to close the stream and * to ensure that this Printer is not reused. * The application should not close this stream until any print job * created from the printer is complete. Doing so earlier may generate - * a PrinterException and an event indicating that the + * a {@code PrinterException} and an event indicating that the * job failed. *

        - * Whereas a PrintService connected to a physical printer + * Whereas a {@code PrintService} connected to a physical printer * can be reused, - * a StreamPrintService connected to a stream cannot. - * The underlying StreamPrintService may be disposed by + * a {@code StreamPrintService} connected to a stream cannot. + * The underlying {@code StreamPrintService} may be disposed by * the print system with * the {@link StreamPrintService#dispose() dispose} method * before returning from the * {@link DocPrintJob#print(Doc, javax.print.attribute.PrintRequestAttributeSet) print} - * method of DocPrintJob so that the print system knows + * method of {@code DocPrintJob} so that the print system knows * this printer is no longer usable. * This is equivalent to a physical printer going offline - permanently. * Applications may supply a null print stream to create a queryable --- old/src/java.desktop/share/classes/javax/print/attribute/Attribute.java 2015-10-04 22:55:37.977266322 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/Attribute.java 2015-10-04 22:55:37.789266331 +0400 @@ -52,8 +52,8 @@ *

        * Note: This method is intended to provide a default, nonlocalized * string for the attribute's category. If two attribute objects return the - * same category from the getCategory() method, they should - * return the same name from the getName() method. + * same category from the {@code getCategory()} method, they should + * return the same name from the {@code getName()} method. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/AttributeSetUtilities.java 2015-10-04 22:55:38.497266299 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/AttributeSetUtilities.java 2015-10-04 22:55:38.309266307 +0400 @@ -206,10 +206,10 @@ * * @param attributeSet Underlying attribute set. * - * @return Unmodifiable view of attributeSet. + * @return Unmodifiable view of {@code attributeSet}. * * @exception NullPointerException - * Thrown if attributeSet is null. Null is never a + * Thrown if {@code attributeSet} is null. Null is never a */ public static AttributeSet unmodifiableView(AttributeSet attributeSet) { if (attributeSet == null) { @@ -224,10 +224,10 @@ * * @param attributeSet Underlying doc attribute set. * - * @return Unmodifiable view of attributeSet. + * @return Unmodifiable view of {@code attributeSet}. * * @exception NullPointerException - * Thrown if attributeSet is null. + * Thrown if {@code attributeSet} is null. */ public static DocAttributeSet unmodifiableView (DocAttributeSet attributeSet) { @@ -242,10 +242,10 @@ * * @param attributeSet Underlying print request attribute set. * - * @return Unmodifiable view of attributeSet. + * @return Unmodifiable view of {@code attributeSet}. * * @exception NullPointerException - * Thrown if attributeSet is null. + * Thrown if {@code attributeSet} is null. */ public static PrintRequestAttributeSet unmodifiableView(PrintRequestAttributeSet attributeSet) { @@ -260,10 +260,10 @@ * * @param attributeSet Underlying print job attribute set. * - * @return Unmodifiable view of attributeSet. + * @return Unmodifiable view of {@code attributeSet}. * * @exception NullPointerException - * Thrown if attributeSet is null. + * Thrown if {@code attributeSet} is null. */ public static PrintJobAttributeSet unmodifiableView(PrintJobAttributeSet attributeSet) { @@ -278,10 +278,10 @@ * * @param attributeSet Underlying print service attribute set. * - * @return Unmodifiable view of attributeSet. + * @return Unmodifiable view of {@code attributeSet}. * * @exception NullPointerException - * Thrown if attributeSet is null. + * Thrown if {@code attributeSet} is null. */ public static PrintServiceAttributeSet unmodifiableView(PrintServiceAttributeSet attributeSet) { @@ -417,10 +417,10 @@ * * @param attributeSet Underlying attribute set. * - * @return Synchronized view of attributeSet. + * @return Synchronized view of {@code attributeSet}. * * @exception NullPointerException - * Thrown if attributeSet is null. + * Thrown if {@code attributeSet} is null. */ public static AttributeSet synchronizedView (AttributeSet attributeSet) { @@ -435,10 +435,10 @@ * * @param attributeSet Underlying doc attribute set. * - * @return Synchronized view of attributeSet. + * @return Synchronized view of {@code attributeSet}. * * @exception NullPointerException - * Thrown if attributeSet is null. + * Thrown if {@code attributeSet} is null. */ public static DocAttributeSet synchronizedView(DocAttributeSet attributeSet) { @@ -453,10 +453,10 @@ * * @param attributeSet Underlying print request attribute set. * - * @return Synchronized view of attributeSet. + * @return Synchronized view of {@code attributeSet}. * * @exception NullPointerException - * Thrown if attributeSet is null. + * Thrown if {@code attributeSet} is null. */ public static PrintRequestAttributeSet synchronizedView(PrintRequestAttributeSet attributeSet) { @@ -471,10 +471,10 @@ * * @param attributeSet Underlying print job attribute set. * - * @return Synchronized view of attributeSet. + * @return Synchronized view of {@code attributeSet}. * * @exception NullPointerException - * Thrown if attributeSet is null. + * Thrown if {@code attributeSet} is null. */ public static PrintJobAttributeSet synchronizedView(PrintJobAttributeSet attributeSet) { @@ -489,7 +489,7 @@ * * @param attributeSet Underlying print service attribute set. * - * @return Synchronized view of attributeSet. + * @return Synchronized view of {@code attributeSet}. */ public static PrintServiceAttributeSet synchronizedView(PrintServiceAttributeSet attributeSet) { @@ -508,17 +508,17 @@ * @param object Object to test. * @param interfaceName Interface the object must implement. * - * @return If object is a {@link java.lang.Class Class} - * that implements interfaceName, - * object is returned downcast to type {@link + * @return If {@code object} is a {@link java.lang.Class Class} + * that implements {@code interfaceName}, + * {@code object} is returned downcast to type {@link * java.lang.Class Class}; otherwise an exception is thrown. * * @exception NullPointerException - * (unchecked exception) Thrown if object is null. + * (unchecked exception) Thrown if {@code object} is null. * @exception ClassCastException - * (unchecked exception) Thrown if object is not a + * (unchecked exception) Thrown if {@code object} is not a * {@link java.lang.Class Class} that implements - * interfaceName. + * {@code interfaceName}. */ public static Class verifyAttributeCategory(Object object, Class interfaceName) { @@ -540,16 +540,16 @@ * @param object Object to test. * @param interfaceName Interface of which the object must be an instance. * - * @return If object is an instance of - * interfaceName, object is returned + * @return If {@code object} is an instance of + * {@code interfaceName}, {@code object} is returned * downcast to type {@link Attribute Attribute}; otherwise an * exception is thrown. * * @exception NullPointerException - * (unchecked exception) Thrown if object is null. + * (unchecked exception) Thrown if {@code object} is null. * @exception ClassCastException - * (unchecked exception) Thrown if object is not an - * instance of interfaceName. + * (unchecked exception) Thrown if {@code object} is not an + * instance of {@code interfaceName}. */ public static Attribute verifyAttributeValue(Object object, Class interfaceName) { @@ -573,11 +573,11 @@ * @param attribute Attribute value to test. * * @exception NullPointerException - * (unchecked exception) Thrown if the category is - * null or if the attribute is null. + * (unchecked exception) Thrown if the {@code category} is + * null or if the {@code attribute} is null. * @exception IllegalArgumentException - * (unchecked exception) Thrown if the category is not - * equal to the category of the attribute. + * (unchecked exception) Thrown if the {@code category} is not + * equal to the category of the {@code attribute}. */ public static void verifyCategoryForValue(Class category, Attribute attribute) { --- old/src/java.desktop/share/classes/javax/print/attribute/DateTimeSyntax.java 2015-10-04 22:55:39.025266275 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/DateTimeSyntax.java 2015-10-04 22:55:38.837266283 +0400 @@ -34,26 +34,25 @@ * Class DateTimeSyntax is an abstract base class providing the common * implementation of all attributes whose value is a date and time. *

        - * Under the hood, a date-time attribute is stored as a value of class - * java.util.Date. You can get a date-time attribute's Date value by + * Under the hood, a date-time attribute is stored as a value of class + * {@code java.util.Date}. You can get a date-time attribute's Date value by * calling {@link #getValue() getValue()}. A date-time attribute's * Date value is established when it is constructed (see {@link * #DateTimeSyntax(Date) DateTimeSyntax(Date)}). Once * constructed, a date-time attribute's value is immutable. *

        * To construct a date-time attribute from separate values of the year, month, - * day, hour, minute, and so on, use a java.util.Calendar - * object to construct a java.util.Date object, then use the - * java.util.Date object to construct the date-time attribute. + * day, hour, minute, and so on, use a {@code java.util.Calendar} + * object to construct a {@code java.util.Date} object, then use the + * {@code java.util.Date} object to construct the date-time attribute. * To convert * a date-time attribute to separate values of the year, month, day, hour, - * minute, and so on, create a java.util.Calendar object and - * set it to the java.util.Date from the date-time attribute. Class - * DateTimeSyntax stores its value in the form of a java.util.Date - * - * rather than a java.util.Calendar because it typically takes - * less memory to store and less time to compare a java.util.Date - * than a java.util.Calendar. + * minute, and so on, create a {@code java.util.Calendar} object and + * set it to the {@code java.util.Date} from the date-time attribute. Class + * DateTimeSyntax stores its value in the form of a {@code java.util.Date} + * rather than a {@code java.util.Calendar} because it typically takes + * less memory to store and less time to compare a {@code java.util.Date} + * than a {@code java.util.Calendar}. * * @author Alan Kaminsky */ @@ -64,7 +63,7 @@ // Hidden data members. /** - * This date-time attribute'sjava.util.Date value. + * This date-time attribute's {@code java.util.Date} value. * @serial */ private Date value; @@ -73,12 +72,12 @@ /** * Construct a new date-time attribute with the given - * java.util.Date value. + * {@code java.util.Date} value. * - * @param value java.util.Date value. + * @param value {@code java.util.Date} value. * * @exception NullPointerException - * (unchecked exception) Thrown if theValue is null. + * (unchecked exception) Thrown if {@code theValue} is null. */ protected DateTimeSyntax(Date value) { if (value == null) { @@ -90,7 +89,7 @@ // Exported operations. /** - * Returns this date-time attribute's java.util.Date + * Returns this date-time attribute's {@code java.util.Date} * value. * @return the Date. */ @@ -105,17 +104,17 @@ * object. To be equivalent, all of the following conditions must be true: *

          *
        1. - * object is not null. + * {@code object} is not null. *
        2. - * object is an instance of class DateTimeSyntax. + * {@code object} is an instance of class DateTimeSyntax. *
        3. - * This date-time attribute's java.util.Date value and - * object's java.util.Date value are + * This date-time attribute's {@code java.util.Date} value and + * {@code object}'s {@code java.util.Date} value are * equal.
        * * @param object Object to compare to. * - * @return True if object is equivalent to this date-time + * @return True if {@code object} is equivalent to this date-time * attribute, false otherwise. */ public boolean equals(Object object) { @@ -126,7 +125,7 @@ /** * Returns a hash code value for this date-time attribute. The hashcode is - * that of this attribute's java.util.Date value. + * that of this attribute's {@code java.util.Date} value. */ public int hashCode() { return value.hashCode(); @@ -135,7 +134,7 @@ /** * Returns a string value corresponding to this date-time attribute. * The string value is just this attribute's - * java.util.Date value + * {@code java.util.Date} value * converted to a string. */ public String toString() { --- old/src/java.desktop/share/classes/javax/print/attribute/DocAttribute.java 2015-10-04 22:55:39.557266251 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/DocAttribute.java 2015-10-04 22:55:39.361266260 +0400 @@ -30,7 +30,7 @@ * Interface DocAttribute is a tagging interface which a printing attribute * class implements to indicate the attribute denotes a setting for a doc. * ("Doc" is a short, easy-to-pronounce term that means "a piece of print - * data.") The client may include a DocAttribute in a Doc's + * data.") The client may include a DocAttribute in a {@code Doc}'s * attribute set to specify a characteristic of * that doc. If an attribute implements {@link PrintRequestAttribute * PrintRequestAttribute} as well as DocAttribute, the client may include the --- old/src/java.desktop/share/classes/javax/print/attribute/EnumSyntax.java 2015-10-04 22:55:40.077266228 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/EnumSyntax.java 2015-10-04 22:55:39.885266236 +0400 @@ -68,7 +68,7 @@ * } * } * - * You can then write code that uses the == and != + * You can then write code that uses the {@code ==} and {@code !=} * operators to test enumeration values; for example: *
          *     Bach theComposer;
        @@ -77,8 +77,8 @@
          *         System.out.println ("The greatest composer of all time!");
          *     }
          * 
        - * The equals() method for an enumeration class just does a test - * for identical objects (==). + * The {@code equals()} method for an enumeration class just does a test + * for identical objects ({@code ==}). *

        * You can convert an enumeration value to a string by calling {@link * #toString() toString()}. The string is obtained from a table @@ -97,8 +97,8 @@ * You can define a subclass of an enumeration class that extends it with * additional enumeration values. The subclass's enumeration values' integer * values need not be distinct from the superclass's enumeration values' integer - * values; the ==, !=, equals(), and - * toString() methods will still work properly even if the subclass + * values; the {@code ==}, {@code !=}, {@code equals()}, and + * {@code toString()} methods will still work properly even if the subclass * uses some of the same integer values as the superclass. However, the * application in which the enumeration class and subclass are used may need to * have distinct integer values in the superclass and subclass. @@ -182,7 +182,7 @@ * enumeration value table is null. (Note: {@link * java.io.InvalidObjectException InvalidObjectException} is a subclass * of {@link java.io.ObjectStreamException ObjectStreamException}, which - * readResolve() is declared to throw.) + * {@code readResolve()} is declared to throw.) */ protected Object readResolve() throws ObjectStreamException { --- old/src/java.desktop/share/classes/javax/print/attribute/HashDocAttributeSet.java 2015-10-04 22:55:40.605266204 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/HashDocAttributeSet.java 2015-10-04 22:55:40.413266213 +0400 @@ -55,7 +55,7 @@ * @param attribute Attribute value to add to the set. * * @exception NullPointerException - * (unchecked exception) Thrown if attribute is null. + * (unchecked exception) Thrown if {@code attribute} is null. */ public HashDocAttributeSet(DocAttribute attribute) { super (attribute, DocAttribute.class); @@ -65,7 +65,7 @@ * Construct a new hash doc attribute set, * initially populated with the values from the given array. * The new attribute set is populated by - * adding the elements of attributes array to the set in + * adding the elements of {@code attributes} array to the set in * sequence, starting at index 0. Thus, later array elements may replace * earlier array elements if the array contains duplicate attribute * values or attribute categories. @@ -75,7 +75,7 @@ * * @exception NullPointerException * (unchecked exception) - * Thrown if any element of attributes is null. + * Thrown if any element of {@code attributes} is null. */ public HashDocAttributeSet(DocAttribute[] attributes) { super (attributes, DocAttribute.class); @@ -84,15 +84,15 @@ /** * Construct a new attribute set, initially populated with the * values from the given set where the members of the attribute set - * are restricted to the DocAttribute interface. + * are restricted to the {@code DocAttribute} interface. * * @param attributes set of attribute values to initialise the set. If * null, an empty attribute set is constructed. * * @exception ClassCastException * (unchecked exception) Thrown if any element of - * attributes is not an instance of - * DocAttribute. + * {@code attributes} is not an instance of + * {@code DocAttribute}. */ public HashDocAttributeSet(DocAttributeSet attributes) { super(attributes, DocAttribute.class); --- old/src/java.desktop/share/classes/javax/print/attribute/HashPrintJobAttributeSet.java 2015-10-04 22:55:41.125266181 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/HashPrintJobAttributeSet.java 2015-10-04 22:55:40.937266189 +0400 @@ -55,7 +55,7 @@ * @param attribute Attribute value to add to the set. * * @exception NullPointerException - * (unchecked exception) Thrown if attribute is null. + * (unchecked exception) Thrown if {@code attribute} is null. */ public HashPrintJobAttributeSet(PrintJobAttribute attribute) { super(attribute, PrintJobAttribute.class); @@ -65,7 +65,7 @@ * Construct a new hash print job attribute set, * initially populated with the values from the given array. * The new attribute set is populated - * by adding the elements of attributes array to the set in + * by adding the elements of {@code attributes} array to the set in * sequence, starting at index 0. Thus, later array elements may replace * earlier array elements if the array contains duplicate attribute * values or attribute categories. @@ -74,7 +74,7 @@ * If null, an empty attribute set is constructed. * * @exception NullPointerException (unchecked exception) - * Thrown if any element of attributes is null. + * Thrown if any element of {@code attributes} is null. */ public HashPrintJobAttributeSet(PrintJobAttribute[] attributes) { super (attributes, PrintJobAttribute.class); @@ -83,15 +83,15 @@ /** * Construct a new attribute set, initially populated with the * values from the given set where the members of the attribute set - * are restricted to the PrintJobAttribute interface. + * are restricted to the {@code PrintJobAttribute} interface. * * @param attributes set of attribute values to initialise the set. If * null, an empty attribute set is constructed. * * @exception ClassCastException * (unchecked exception) Thrown if any element of - * attributes is not an instance of - * PrintJobAttribute. + * {@code attributes} is not an instance of + * {@code PrintJobAttribute}. */ public HashPrintJobAttributeSet(PrintJobAttributeSet attributes) { super(attributes, PrintJobAttribute.class); --- old/src/java.desktop/share/classes/javax/print/attribute/HashPrintRequestAttributeSet.java 2015-10-04 22:55:41.633266158 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/HashPrintRequestAttributeSet.java 2015-10-04 22:55:41.457266166 +0400 @@ -55,7 +55,7 @@ * @param attribute Attribute value to add to the set. * * @exception NullPointerException - * (unchecked exception) Thrown if attribute is null. + * (unchecked exception) Thrown if {@code attribute} is null. */ public HashPrintRequestAttributeSet(PrintRequestAttribute attribute) { super (attribute, PrintRequestAttribute.class); @@ -64,7 +64,7 @@ /** * Construct a new print request attribute set, initially populated with * the values from the given array. The new attribute set is populated - * by adding the elements of attributes array to the set in + * by adding the elements of {@code attributes} array to the set in * sequence, starting at index 0. Thus, later array elements may replace * earlier array elements if the array contains duplicate attribute * values or attribute categories. @@ -74,7 +74,7 @@ * * @exception NullPointerException * (unchecked exception) - * Thrown if any element of attributes is null. + * Thrown if any element of {@code attributes} is null. */ public HashPrintRequestAttributeSet(PrintRequestAttribute[] attributes) { super (attributes, PrintRequestAttribute.class); @@ -84,15 +84,15 @@ /** * Construct a new attribute set, initially populated with the * values from the given set where the members of the attribute set - * are restricted to the (PrintRequestAttributeSe interface. + * are restricted to the {@code (PrintRequestAttributeSe} interface. * * @param attributes set of attribute values to initialise the set. If * null, an empty attribute set is constructed. * * @exception ClassCastException * (unchecked exception) Thrown if any element of - * attributes is not an instance of - * (PrintRequestAttributeSe. + * {@code attributes} is not an instance of + * {@code (PrintRequestAttributeSe}. */ public HashPrintRequestAttributeSet(PrintRequestAttributeSet attributes) { --- old/src/java.desktop/share/classes/javax/print/attribute/HashPrintServiceAttributeSet.java 2015-10-04 22:55:42.145266135 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/HashPrintServiceAttributeSet.java 2015-10-04 22:55:41.965266143 +0400 @@ -55,7 +55,7 @@ * @param attribute Attribute value to add to the set. * * @exception NullPointerException - * (unchecked exception) Thrown if attribute is null. + * (unchecked exception) Thrown if {@code attribute} is null. */ public HashPrintServiceAttributeSet(PrintServiceAttribute attribute) { super (attribute, PrintServiceAttribute.class); @@ -64,7 +64,7 @@ /** * Construct a new print service attribute set, initially populated with * the values from the given array. The new attribute set is populated - * by adding the elements of attributes array to the set in + * by adding the elements of {@code attributes} array to the set in * sequence, starting at index 0. Thus, later array elements may replace * earlier array elements if the array contains duplicate attribute * values or attribute categories. @@ -74,7 +74,7 @@ * * @exception NullPointerException * (unchecked exception) - * Thrown if any element of attributes is null. + * Thrown if any element of {@code attributes} is null. */ public HashPrintServiceAttributeSet(PrintServiceAttribute[] attributes) { super (attributes, PrintServiceAttribute.class); @@ -84,15 +84,15 @@ /** * Construct a new attribute set, initially populated with the * values from the given set where the members of the attribute set - * are restricted to the PrintServiceAttribute interface. + * are restricted to the {@code PrintServiceAttribute} interface. * * @param attributes set of attribute values to initialise the set. If * null, an empty attribute set is constructed. * * @exception ClassCastException * (unchecked exception) Thrown if any element of - * attributes is not an instance of - * PrintServiceAttribute. + * {@code attributes} is not an instance of + * {@code PrintServiceAttribute}. */ public HashPrintServiceAttributeSet(PrintServiceAttributeSet attributes) { --- old/src/java.desktop/share/classes/javax/print/attribute/IntegerSyntax.java 2015-10-04 22:55:42.665266112 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/IntegerSyntax.java 2015-10-04 22:55:42.477266120 +0400 @@ -69,9 +69,9 @@ * @param upperBound Upper bound. * * @exception IllegalArgumentException - * (Unchecked exception) Thrown if value is less than - * lowerBound or greater than - * upperBound. + * (Unchecked exception) Thrown if {@code value} is less than + * {@code lowerBound} or greater than + * {@code upperBound}. */ protected IntegerSyntax(int value, int lowerBound, int upperBound) { if (lowerBound > value || value > upperBound) { @@ -95,17 +95,17 @@ * object. To be equivalent, all of the following conditions must be true: *

          *
        1. - * object is not null. + * {@code object} is not null. *
        2. - * object is an instance of class IntegerSyntax. + * {@code object} is an instance of class IntegerSyntax. *
        3. - * This integer attribute's value and object's value are + * This integer attribute's value and {@code object}'s value are * equal. *
        * * @param object Object to compare to. * - * @return True if object is equivalent to this integer + * @return True if {@code object} is equivalent to this integer * attribute, false otherwise. */ public boolean equals(Object object) { --- old/src/java.desktop/share/classes/javax/print/attribute/PrintRequestAttribute.java 2015-10-04 22:55:43.189266088 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/PrintRequestAttribute.java 2015-10-04 22:55:43.001266096 +0400 @@ -37,7 +37,7 @@ *

        * If an attribute implements {@link DocAttribute DocAttribute} * as well as PrintRequestAttribute, the client may include the - * attribute in a Doc}'s attribute set to specify + * attribute in a {@code Doc}'s attribute set to specify * a job setting which pertains just to that doc. * * @see DocAttributeSet --- old/src/java.desktop/share/classes/javax/print/attribute/ResolutionSyntax.java 2015-10-04 22:55:43.713266064 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/ResolutionSyntax.java 2015-10-04 22:55:43.521266073 +0400 @@ -150,13 +150,13 @@ * @param dphi * Value (dphi) to convert. * @param units - * Unit conversion factor, e.g. {@link #DPI DPI} or - * {@link #DPCM DPCM}. + * Unit conversion factor, e.g. {@link #DPI DPI} or + * {@link #DPCM DPCM}. * - * @return The value of dphi converted to the desired units. + * @return The value of {@code dphi} converted to the desired units. * * @exception IllegalArgumentException - * (unchecked exception) Thrown if units < 1. + * (unchecked exception) Thrown if {@code units} < 1. */ private static int convertFromDphi(int dphi, int units) { if (units < 1) { @@ -222,7 +222,7 @@ /** * Returns a string version of this resolution attribute in the given units. - * The string takes the form "CxF U", + * The string takes the form "CxF U", * where C is the cross feed direction resolution, F is the * feed direction resolution, and U is the units name. The values are * rounded to the nearest integer. @@ -231,7 +231,7 @@ * Unit conversion factor, e.g. {@link #DPI CODE>DPI} or {@link * #DPCM DPCM}. * @param unitsName - * Units name string, e.g. "dpi" or "dpcm". If + * Units name string, e.g. {@code "dpi"} or {@code "dpcm"}. If * null, no units name is appended to the result. * * @return String version of this resolution attribute. @@ -259,19 +259,19 @@ *

          *
        • * This attribute's cross feed direction resolution is less than or equal to - * the other attribute's cross feed direction resolution. + * the {@code other} attribute's cross feed direction resolution. *
        • * This attribute's feed direction resolution is less than or equal to the - * other attribute's feed direction resolution. + * {@code other} attribute's feed direction resolution. *
        * * @param other Resolution attribute to compare with. * * @return True if this resolution attribute is less than or equal to the - * other resolution attribute, false otherwise. + * {@code other} resolution attribute, false otherwise. * * @exception NullPointerException - * (unchecked exception) Thrown if other is null. + * (unchecked exception) Thrown if {@code other} is null. */ public boolean lessThanOrEquals(ResolutionSyntax other) { return (this.crossFeedResolution <= other.crossFeedResolution && @@ -284,20 +284,20 @@ * object. To be equivalent, all of the following conditions must be true: *
          *
        1. - * object is not null. + * {@code object} is not null. *
        2. - * object is an instance of class ResolutionSyntax. + * {@code object} is an instance of class ResolutionSyntax. *
        3. * This attribute's cross feed direction resolution is equal to - * object's cross feed direction resolution. + * {@code object}'s cross feed direction resolution. *
        4. * This attribute's feed direction resolution is equal to - * object's feed direction resolution. + * {@code object}'s feed direction resolution. *
        * * @param object Object to compare to. * - * @return True if object is equivalent to this resolution + * @return True if {@code object} is equivalent to this resolution * attribute, false otherwise. */ public boolean equals(Object object) { @@ -320,7 +320,7 @@ /** * Returns a string version of this resolution attribute. The string takes - * the form "CxF dphi", where C is the + * the form "CxF dphi", where C is the * cross feed direction resolution and F is the feed direction * resolution. The values are reported in the internal units of dphi. */ --- old/src/java.desktop/share/classes/javax/print/attribute/SetOfIntegerSyntax.java 2015-10-04 22:55:44.237266041 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/SetOfIntegerSyntax.java 2015-10-04 22:55:44.049266049 +0400 @@ -38,19 +38,18 @@ * You can construct an instance of SetOfIntegerSyntax by giving it in "string * form." The string consists of zero or more comma-separated integer groups. * Each integer group consists of either one integer, two integers separated by - * a hyphen (-), or two integers separated by a colon - * (:). Each integer consists of one or more decimal digits - * (0 through 9). Whitespace characters cannot + * a hyphen ({@code -}), or two integers separated by a colon + * ({@code :}). Each integer consists of one or more decimal digits + * ({@code 0} through {@code 9}). Whitespace characters cannot * appear within an integer but are otherwise ignored. For example: - * "", "1", "5-10", "1:2, - * 4". + * {@code ""}, {@code "1"}, {@code "5-10"}, {@code "1:2, 4"}. *

        * You can also construct an instance of SetOfIntegerSyntax by giving it in * "array form." Array form consists of an array of zero or more integer groups * where each integer group is a length-1 or length-2 array of - * ints; for example, int[0][], - * int[][]{{1}}, int[][]{{5,10}}, - * int[][]{{1,2},{4}}. + * {@code int}s; for example, {@code int[0][]}, + * {@code int[][]{{1}}}, {@code int[][]{{5,10}}}, + * {@code int[][]{{1,2},{4}}}. *

        * In both string form and array form, each successive integer group gives a * range of integers to be included in the set. The first integer in each group @@ -68,7 +67,7 @@ * array form." This is the same as array form, except there are no null ranges; * the members of the set are represented in as few ranges as possible (i.e., * overlapping ranges are coalesced); the ranges appear in ascending order; and - * each range is always represented as a length-two array of ints + * each range is always represented as a length-two array of {@code int}s * in the form {lower bound, upper bound}. An empty set is represented as a * zero-length array. *

        @@ -98,7 +97,7 @@ * constructed. * * @exception IllegalArgumentException - * (Unchecked exception) Thrown if members does not + * (Unchecked exception) Thrown if {@code members} does not * obey the proper syntax. */ protected SetOfIntegerSyntax(String members) { @@ -305,11 +304,11 @@ * * @exception NullPointerException * (Unchecked exception) Thrown if any element of - * members is null. + * {@code members} is null. * @exception IllegalArgumentException * (Unchecked exception) Thrown if any element of - * members is not a length-one or length-two array or if - * any non-null range in members has a lower bound less + * {@code members} is not a length-one or length-two array or if + * any non-null range in {@code members} has a lower bound less * than zero. */ protected SetOfIntegerSyntax(int[][] members) { @@ -357,7 +356,7 @@ * @param member Set member. * * @exception IllegalArgumentException - * (Unchecked exception) Thrown if member is less than + * (Unchecked exception) Thrown if {@code member} is less than * zero. */ protected SetOfIntegerSyntax(int member) { @@ -377,7 +376,7 @@ * * @exception IllegalArgumentException * (Unchecked exception) Thrown if the range is non-null and - * lowerBound is less than zero. + * {@code lowerBound} is less than zero. */ protected SetOfIntegerSyntax(int lowerBound, int upperBound) { if (lowerBound <= upperBound && lowerBound < 0) { @@ -411,7 +410,7 @@ * @param x Integer value. * * @return True if this set-of-integer attribute contains the value - * x, false otherwise. + * {@code x}, false otherwise. */ public boolean contains(int x) { // Do a linear search to find the range that contains x, if any. @@ -433,7 +432,7 @@ * @param attribute Integer attribute. * * @return True if this set-of-integer attribute contains - * theAttribute's value, false otherwise. + * {@code theAttribute}'s value, false otherwise. */ public boolean contains(IntegerSyntax attribute) { return contains (attribute.getValue()); @@ -442,10 +441,10 @@ /** * Determine the smallest integer in this set-of-integer attribute that is * greater than the given value. If there are no integers in this - * set-of-integer attribute greater than the given value, -1 is + * set-of-integer attribute greater than the given value, {@code -1} is * returned. (Since a set-of-integer attribute can only contain nonnegative - * values, -1 will never appear in the set.) You can use the - * next() method to iterate through the integer values in a + * values, {@code -1} will never appear in the set.) You can use the + * {@code next()} method to iterate through the integer values in a * set-of-integer attribute in ascending order, like this: *

              *     SetOfIntegerSyntax attribute = . . .;
        @@ -459,8 +458,8 @@
              * @param  x  Integer value.
              *
              * @return  The smallest integer in this set-of-integer attribute that is
        -     *          greater than x, or -1 if no integer in
        -     *          this set-of-integer attribute is greater than x.
        +     *          greater than {@code x}, or {@code -1} if no integer in
        +     *          this set-of-integer attribute is greater than {@code x}.
              */
             public int next(int x) {
                 // Do a linear search to find the range that contains x, if any.
        @@ -481,17 +480,17 @@
              * true:
              * 
          *
        1. - * object is not null. + * {@code object} is not null. *
        2. - * object is an instance of class SetOfIntegerSyntax. + * {@code object} is an instance of class SetOfIntegerSyntax. *
        3. - * This set-of-integer attribute's members and object's + * This set-of-integer attribute's members and {@code object}'s * members are the same. *
        * * @param object Object to compare to. * - * @return True if object is equivalent to this + * @return True if {@code object} is equivalent to this * set-of-integer attribute, false otherwise. */ public boolean equals(Object object) { @@ -534,9 +533,9 @@ * Returns a string value corresponding to this set-of-integer attribute. * The string value is a zero-length string if this set is empty. Otherwise, * the string value is a comma-separated list of the ranges in the canonical - * array form, where each range is represented as "i" if + * array form, where each range is represented as "i" if * the lower bound equals the upper bound or - * "i-j" otherwise. + * "i-j" otherwise. */ public String toString() { StringBuilder result = new StringBuilder(); --- old/src/java.desktop/share/classes/javax/print/attribute/Size2DSyntax.java 2015-10-04 22:55:44.769266017 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/Size2DSyntax.java 2015-10-04 22:55:44.577266026 +0400 @@ -172,13 +172,13 @@ * @param x * Value (micrometers) to convert. * @param units - * Unit conversion factor, e.g. {@link #INCH INCH} or - * {@link #MM MM}. + * Unit conversion factor, e.g. {@link #INCH INCH} or + * {@link #MM MM}. * - * @return The value of x converted to the desired units. + * @return The value of {@code x} converted to the desired units. * * @exception IllegalArgumentException - * (unchecked exception) Thrown if units < 1. + * (unchecked exception) Thrown if {@code units} < 1. */ private static float convertFromMicrometers(int x, int units) { if (units < 1) { @@ -238,8 +238,8 @@ /** * Returns a string version of this two-dimensional size attribute in the - * given units. The string takes the form "XxY - * U", where X is the X dimension, Y is the Y + * given units. The string takes the form "XxY + * U", where X is the X dimension, Y is the Y * dimension, and U is the units name. The values are displayed in * floating point. * @@ -273,20 +273,20 @@ * be true: *
          *
        1. - * object is not null. + * {@code object} is not null. *
        2. - * object is an instance of class Size2DSyntax. + * {@code object} is an instance of class Size2DSyntax. *
        3. - * This attribute's X dimension is equal to object's X + * This attribute's X dimension is equal to {@code object}'s X * dimension. *
        4. - * This attribute's Y dimension is equal to object's Y + * This attribute's Y dimension is equal to {@code object}'s Y * dimension. *
        * * @param object Object to compare to. * - * @return True if object is equivalent to this + * @return True if {@code object} is equivalent to this * two-dimensional size attribute, false otherwise. */ public boolean equals(Object object) { @@ -306,7 +306,7 @@ /** * Returns a string version of this two-dimensional size attribute. The - * string takes the form "XxY um", where + * string takes the form "XxY um", where * X is the X dimension and Y is the Y dimension. * The values are reported in the internal units of micrometers. */ --- old/src/java.desktop/share/classes/javax/print/attribute/TextSyntax.java 2015-10-04 22:55:45.305265993 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/TextSyntax.java 2015-10-04 22:55:45.113266002 +0400 @@ -61,10 +61,10 @@ * @param value Text string. * @param locale Natural language of the text string. null * is interpreted to mean the default locale for as returned - * by Locale.getDefault() + * by {@code Locale.getDefault()} * * @exception NullPointerException - * (unchecked exception) Thrown if value is null. + * (unchecked exception) Thrown if {@code value} is null. */ protected TextSyntax(String value, Locale locale) { this.value = verify (value); @@ -115,20 +115,20 @@ * object. To be equivalent, all of the following conditions must be true: *
          *
        1. - * object is not null. + * {@code object} is not null. *
        2. - * object is an instance of class TextSyntax. + * {@code object} is an instance of class TextSyntax. *
        3. - * This text attribute's underlying string and object's + * This text attribute's underlying string and {@code object}'s * underlying string are equal. *
        4. - * This text attribute's locale and object's locale are + * This text attribute's locale and {@code object}'s locale are * equal. *
        * * @param object Object to compare to. * - * @return True if object is equivalent to this text + * @return True if {@code object} is equivalent to this text * attribute, false otherwise. */ public boolean equals(Object object) { --- old/src/java.desktop/share/classes/javax/print/attribute/URISyntax.java 2015-10-04 22:55:45.829265969 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/URISyntax.java 2015-10-04 22:55:45.641265978 +0400 @@ -52,7 +52,7 @@ * @param uri URI. * * @exception NullPointerException - * (unchecked exception) Thrown if uri is null. + * (unchecked exception) Thrown if {@code uri} is null. */ protected URISyntax(URI uri) { this.uri = verify (uri); @@ -88,17 +88,17 @@ * To be equivalent, all of the following conditions must be true: *
          *
        1. - * object is not null. + * {@code object} is not null. *
        2. - * object is an instance of class URISyntax. + * {@code object} is an instance of class URISyntax. *
        3. - * This URI attribute's underlying URI and object's + * This URI attribute's underlying URI and {@code object}'s * underlying URI are equal. *
        * * @param object Object to compare to. * - * @return True if object is equivalent to this URI + * @return True if {@code object} is equivalent to this URI * attribute, false otherwise. */ public boolean equals(Object object) { --- old/src/java.desktop/share/classes/javax/print/attribute/standard/Chromaticity.java 2015-10-04 22:55:46.353265946 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/Chromaticity.java 2015-10-04 22:55:46.161265955 +0400 @@ -145,7 +145,7 @@ * Get the name of the category of which this attribute value is an * instance. *

        - * For class Chromaticity, the category name is "chromaticity". + * For class Chromaticity, the category name is {@code "chromaticity"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/ColorSupported.java 2015-10-04 22:55:46.893265922 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/ColorSupported.java 2015-10-04 22:55:46.689265931 +0400 @@ -49,8 +49,8 @@ *

        * IPP Compatibility: The IPP boolean value is "true" for SUPPORTED and * "false" for NOT_SUPPORTED. The category name returned by - * getName() is the IPP attribute name. The enumeration's - * integer value is the IPP enum value. The toString() method + * {@code getName()} is the IPP attribute name. The enumeration's + * integer value is the IPP enum value. The {@code toString()} method * returns the IPP string representation of the attribute value. * * @author Alan Kaminsky @@ -118,7 +118,7 @@ * Get the name of the category of which this attribute value is an * instance. *

        - * For class ColorSupported, the category name is "color-supported". + * For class ColorSupported, the category name is {@code "color-supported"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/Compression.java 2015-10-04 22:55:47.441265897 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/Compression.java 2015-10-04 22:55:47.249265906 +0400 @@ -37,8 +37,8 @@ * NONE}). *

        * IPP Compatibility: The category name returned by - * getName() is the IPP attribute name. The enumeration's - * integer value is the IPP enum value. The toString() method + * {@code getName()} is the IPP attribute name. The enumeration's + * integer value is the IPP enum value. The {@code toString()} method * returns the IPP string representation of the attribute value. * * @author Alan Kaminsky @@ -122,7 +122,7 @@ * instance. *

        * For class Compression and any vendor-defined subclasses, the category - * name is "compression". + * name is {@code "compression"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/Copies.java 2015-10-04 22:55:47.989265872 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/Copies.java 2015-10-04 22:55:47.797265881 +0400 @@ -62,7 +62,7 @@ *

      *

      * IPP Compatibility: The integer value gives the IPP integer value. The - * category name returned by getName() gives the IPP attribute + * category name returned by {@code getName()} gives the IPP attribute * name. * * @author David Mendenhall @@ -79,7 +79,7 @@ * @param value Integer value. * * @exception IllegalArgumentException - * (Unchecked exception) Thrown if value is less than 1. + * (Unchecked exception) Thrown if {@code value} is less than 1. */ public Copies(int value) { super (value, 1, Integer.MAX_VALUE); @@ -90,17 +90,17 @@ * object. To be equivalent, all of the following conditions must be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class Copies. + * {@code object} is an instance of class Copies. *
      3. - * This copies attribute's value and object's value are + * This copies attribute's value and {@code object}'s value are * equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this copies + * @return True if {@code object} is equivalent to this copies * attribute, false otherwise. */ public boolean equals(Object object) { @@ -124,7 +124,7 @@ * Get the name of the category of which this attribute value is an * instance. *

      - * For class Copies, the category name is "copies". + * For class Copies, the category name is {@code "copies"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/CopiesSupported.java 2015-10-04 22:55:48.513265849 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/CopiesSupported.java 2015-10-04 22:55:48.325265857 +0400 @@ -39,7 +39,7 @@ * in an IPP "copies-supported" attribute. See class {@link * javax.print.attribute.SetOfIntegerSyntax SetOfIntegerSyntax} for an * explanation of canonical array form. The category name returned by - * getName() gives the IPP attribute name. + * {@code getName()} gives the IPP attribute name. * * @author Alan Kaminsky */ @@ -55,7 +55,7 @@ * @param member Set member. * * @exception IllegalArgumentException - * (Unchecked exception) Thrown if member is less than 1. + * (Unchecked exception) Thrown if {@code member} is less than 1. */ public CopiesSupported(int member) { super (member); @@ -74,7 +74,7 @@ * * @exception IllegalArgumentException * (Unchecked exception) Thrown if a null range is specified or if a - * non-null range is specified with lowerBound less than + * non-null range is specified with {@code lowerBound} less than * 1. */ public CopiesSupported(int lowerBound, int upperBound) { @@ -93,17 +93,17 @@ * be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class CopiesSupported. + * {@code object} is an instance of class CopiesSupported. *
      3. - * This copies supported attribute's members and object's + * This copies supported attribute's members and {@code object}'s * members are the same. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this copies + * @return True if {@code object} is equivalent to this copies * supported attribute, false otherwise. */ public boolean equals(Object object) { @@ -129,7 +129,7 @@ * instance. *

      * For class CopiesSupported, the category - * name is "copies-supported". + * name is {@code "copies-supported"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/DateTimeAtCompleted.java 2015-10-04 22:55:49.029265826 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/DateTimeAtCompleted.java 2015-10-04 22:55:48.849265834 +0400 @@ -45,7 +45,7 @@ *

      * IPP Compatibility: The information needed to construct an IPP * "date-time-at-completed" attribute can be obtained as described above. The - * category name returned by getName() gives the IPP attribute + * category name returned by {@code getName()} gives the IPP attribute * name. * * @author Alan Kaminsky @@ -62,7 +62,7 @@ * @param dateTime {@link java.util.Date Date} value. * * @exception NullPointerException - * (unchecked exception) Thrown if dateTime is null. + * (unchecked exception) Thrown if {@code dateTime} is null. */ public DateTimeAtCompleted(Date dateTime) { super (dateTime); @@ -74,17 +74,17 @@ * must be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class DateTimeAtCompleted. + * {@code object} is an instance of class DateTimeAtCompleted. *
      3. * This date-time at completed attribute's {@link java.util.Date Date} value - * and object's {@link java.util.Date Date} value are equal. + * and {@code object}'s {@link java.util.Date Date} value are equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this date-time + * @return True if {@code object} is equivalent to this date-time * at completed attribute, false otherwise. */ public boolean equals(Object object) { @@ -113,7 +113,7 @@ * instance. *

      * For class DateTimeAtCompleted, the category name is - * "date-time-at-completed". + * {@code "date-time-at-completed"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/DateTimeAtCreation.java 2015-10-04 22:55:49.553265802 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/DateTimeAtCreation.java 2015-10-04 22:55:49.361265811 +0400 @@ -45,7 +45,7 @@ *

      * IPP Compatibility: The information needed to construct an IPP * "date-time-at-creation" attribute can be obtained as described above. The - * category name returned by getName() gives the IPP attribute + * category name returned by {@code getName()} gives the IPP attribute * name. * * @author Alan Kaminsky @@ -62,7 +62,7 @@ * @param dateTime {@link java.util.Date Date} value. * * @exception NullPointerException - * (unchecked exception) Thrown if dateTime is null. + * (unchecked exception) Thrown if {@code dateTime} is null. */ public DateTimeAtCreation(Date dateTime) { super (dateTime); @@ -74,17 +74,17 @@ * must be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class DateTimeAtCreation. + * {@code object} is an instance of class DateTimeAtCreation. *
      3. * This date-time at creation attribute's {@link java.util.Date Date} value - * and object's {@link java.util.Date Date} value are equal. + * and {@code object}'s {@link java.util.Date Date} value are equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this date-time + * @return True if {@code object} is equivalent to this date-time * at creation attribute, false otherwise. */ public boolean equals(Object object) { @@ -111,7 +111,7 @@ * instance. *

      * For class DateTimeAtCreation, the category name is - * "date-time-at-creation". + * {@code "date-time-at-creation"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/DateTimeAtProcessing.java 2015-10-04 22:55:50.065265779 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/DateTimeAtProcessing.java 2015-10-04 22:55:49.889265787 +0400 @@ -45,7 +45,7 @@ *

      * IPP Compatibility: The information needed to construct an IPP * "date-time-at-processing" attribute can be obtained as described above. The - * category name returned by getName() gives the IPP attribute + * category name returned by {@code getName()} gives the IPP attribute * name. * * @author Alan Kaminsky @@ -62,7 +62,7 @@ * @param dateTime {@link java.util.Date Date} value. * * @exception NullPointerException - * (unchecked exception) Thrown if dateTime is null. + * (unchecked exception) Thrown if {@code dateTime} is null. */ public DateTimeAtProcessing(Date dateTime) { super (dateTime); @@ -74,18 +74,18 @@ * must be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class DateTimeAtProcessing. + * {@code object} is an instance of class DateTimeAtProcessing. *
      3. * This date-time at processing attribute's {@link java.util.Date Date} - * value and object's {@link java.util.Date Date} value + * value and {@code object}'s {@link java.util.Date Date} value * are equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this date-time + * @return True if {@code object} is equivalent to this date-time * at processing attribute, false otherwise. */ public boolean equals(Object object) { @@ -112,7 +112,7 @@ * instance. *

      * For class DateTimeAtProcessing, the category name is - * "date-time-at-processing". + * {@code "date-time-at-processing"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/Destination.java 2015-10-04 22:55:50.589265756 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/Destination.java 2015-10-04 22:55:50.401265764 +0400 @@ -40,7 +40,7 @@ * A common use for this attribute will be applications which want * to redirect output to a local disk file : eg."file:out.prn". * Note that proper construction of "file:" scheme URI instances should - * be performed using the toURI() method of class + * be performed using the {@code toURI()} method of class * {@link java.io.File File}. * See the documentation on that class for more information. *

      @@ -64,7 +64,7 @@ * @param uri URI. * * @exception NullPointerException - * (unchecked exception) Thrown if uri is null. + * (unchecked exception) Thrown if {@code uri} is null. */ public Destination(URI uri) { super (uri); @@ -76,17 +76,17 @@ * must be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class Destination. + * {@code object} is an instance of class Destination. *
      3. - * This destination attribute's URI and object's URI + * This destination attribute's URI and {@code object}'s URI * are equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this destination + * @return True if {@code object} is equivalent to this destination * attribute, false otherwise. */ public boolean equals(Object object) { @@ -111,7 +111,7 @@ * Get the name of the category of which this attribute value is an * instance. *

      - * For class Destination, the category name is "spool-data-destination". + * For class Destination, the category name is {@code "spool-data-destination"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/DialogTypeSelection.java 2015-10-04 22:55:51.101265733 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/DialogTypeSelection.java 2015-10-04 22:55:50.921265741 +0400 @@ -120,7 +120,7 @@ * instance. *

      * For class DialogTypeSelection the category name is - * "dialog-type-selection". + * {@code "dialog-type-selection"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/DocumentName.java 2015-10-04 22:55:51.621265709 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/DocumentName.java 2015-10-04 22:55:51.433265718 +0400 @@ -42,7 +42,7 @@ *

      * IPP Compatibility: The string value gives the IPP name value. The * locale gives the IPP natural language. The category name returned by - * getName() gives the IPP attribute name. + * {@code getName()} gives the IPP attribute name. * * @author Alan Kaminsky */ @@ -57,10 +57,10 @@ * @param documentName Document name. * @param locale Natural language of the text string. null * is interpreted to mean the default locale as returned - * by Locale.getDefault() + * by {@code Locale.getDefault()} * * @exception NullPointerException - * (unchecked exception) Thrown if documentName is null. + * (unchecked exception) Thrown if {@code documentName} is null. */ public DocumentName(String documentName, Locale locale) { super (documentName, locale); @@ -72,20 +72,20 @@ * To be equivalent, all of the following conditions must be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class DocumentName. + * {@code object} is an instance of class DocumentName. *
      3. * This document name attribute's underlying string and - * object's underlying string are equal. + * {@code object}'s underlying string are equal. *
      4. - * This document name attribute's locale and object's locale + * This document name attribute's locale and {@code object}'s locale * are equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this document + * @return True if {@code object} is equivalent to this document * name attribute, false otherwise. */ public boolean equals(Object object) { @@ -109,7 +109,7 @@ * Get the name of the category of which this attribute value is an * instance. *

      - * For class DocumentName, the category name is "document-name". + * For class DocumentName, the category name is {@code "document-name"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/Fidelity.java 2015-10-04 22:55:52.145265686 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/Fidelity.java 2015-10-04 22:55:51.953265694 +0400 @@ -41,8 +41,8 @@ *

      * IPP Compatibility: The IPP boolean value is "true" for FIDELITY_TRUE * and "false" for FIDELITY_FALSE. The category name returned by - * getName() is the IPP attribute name. The enumeration's - * integer value is the IPP enum value. The toString() method + * {@code getName()} is the IPP attribute name. The enumeration's + * integer value is the IPP enum value. The {@code toString()} method * returns the IPP string representation of the attribute value. * See RFC 2911 Section 15.1 for * a fuller description of the IPP fidelity attribute. @@ -117,7 +117,7 @@ * instance. *

      * For class Fidelity the category name is - * "ipp-attribute-fidelity". + * {@code "ipp-attribute-fidelity"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/Finishings.java 2015-10-04 22:55:52.665265662 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/Finishings.java 2015-10-04 22:55:52.477265671 +0400 @@ -212,8 +212,8 @@ * IPP Compatibility: Class Finishings encapsulates some of the * IPP enum values that can be included in an IPP "finishings" attribute, which * is a set of enums. The category name returned by - * getName() is the IPP attribute name. The enumeration's - * integer value is the IPP enum value. The toString() method + * {@code getName()} is the IPP attribute name. The enumeration's + * integer value is the IPP enum value. The {@code toString()} method * returns the IPP string representation of the attribute value. * In IPP Finishings is a multi-value attribute, this API currently allows * only one binding to be specified. @@ -466,7 +466,7 @@ * instance. *

      * For class Finishings and any vendor-defined subclasses, the - * category name is "finishings". + * category name is {@code "finishings"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/JobHoldUntil.java 2015-10-04 22:55:53.193265639 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/JobHoldUntil.java 2015-10-04 22:55:53.005265647 +0400 @@ -77,7 +77,7 @@ * converted to one of the standard IPP keywords with some loss of precision; * for example, a JobHoldUntil value with today's date and 9:00pm local time * might be converted to the standard IPP keyword "night". The category name - * returned by getName() gives the IPP attribute name. + * returned by {@code getName()} gives the IPP attribute name. * * @author Alan Kaminsky */ @@ -94,7 +94,7 @@ * @param dateTime {@link java.util.Date Date} value. * * @exception NullPointerException - * (unchecked exception) Thrown if dateTime is null. + * (unchecked exception) Thrown if {@code dateTime} is null. */ public JobHoldUntil(Date dateTime) { super (dateTime); @@ -106,17 +106,17 @@ * must be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class JobHoldUntil. + * {@code object} is an instance of class JobHoldUntil. *
      3. * This job hold until attribute's {@link java.util.Date Date} value and - * object's {@link java.util.Date Date} value are equal. + * {@code object}'s {@link java.util.Date Date} value are equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this job hold + * @return True if {@code object} is equivalent to this job hold * until attribute, false otherwise. */ public boolean equals(Object object) { @@ -141,7 +141,7 @@ * Get the name of the category of which this attribute value is an * instance. *

      - * For class JobHoldUntil, the category name is "job-hold-until". + * For class JobHoldUntil, the category name is {@code "job-hold-until"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/JobImpressions.java 2015-10-04 22:55:53.717265615 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/JobImpressions.java 2015-10-04 22:55:53.529265624 +0400 @@ -63,7 +63,7 @@ * than a measure of the number of impressions to be produced by the job. *

      * IPP Compatibility: The integer value gives the IPP integer value. The - * category name returned by getName() gives the IPP attribute + * category name returned by {@code getName()} gives the IPP attribute * name. * * @see JobImpressionsSupported @@ -85,7 +85,7 @@ * @param value Integer value. * * @exception IllegalArgumentException - * (Unchecked exception) Thrown if value is less than 0. + * (Unchecked exception) Thrown if {@code value} is less than 0. */ public JobImpressions(int value) { super(value, 0, Integer.MAX_VALUE); @@ -97,17 +97,17 @@ * be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class JobImpressions. + * {@code object} is an instance of class JobImpressions. *
      3. - * This job impressions attribute's value and object's value + * This job impressions attribute's value and {@code object}'s value * are equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this job + * @return True if {@code object} is equivalent to this job * impressions attribute, false otherwise. */ public boolean equals(Object object) { @@ -132,7 +132,7 @@ * instance. *

      * For class JobImpressions, the category name is - * "job-impressions". + * {@code "job-impressions"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/JobImpressionsCompleted.java 2015-10-04 22:55:54.233265592 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/JobImpressionsCompleted.java 2015-10-04 22:55:54.053265600 +0400 @@ -45,7 +45,7 @@ * states, the JobImpressionsCompleted value is the final value for the job. *

      * IPP Compatibility: The integer value gives the IPP integer value. The - * category name returned by getName() gives the IPP attribute + * category name returned by {@code getName()} gives the IPP attribute * name. * * @see JobImpressions @@ -67,7 +67,7 @@ * @param value Integer value. * * @exception IllegalArgumentException - * (Unchecked exception) Thrown if value is less than 0. + * (Unchecked exception) Thrown if {@code value} is less than 0. */ public JobImpressionsCompleted(int value) { super (value, 0, Integer.MAX_VALUE); @@ -79,17 +79,17 @@ * conditions must be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class JobImpressionsCompleted. + * {@code object} is an instance of class JobImpressionsCompleted. *
      3. * This job impressions completed attribute's value and - * object's value are equal. + * {@code object}'s value are equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this job + * @return True if {@code object} is equivalent to this job * impressions completed attribute, false otherwise. */ public boolean equals(Object object) { @@ -116,7 +116,7 @@ * instance. *

      * For class JobImpressionsCompleted, the category name is - * "job-impressions-completed". + * {@code "job-impressions-completed"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/JobImpressionsSupported.java 2015-10-04 22:55:54.745265569 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/JobImpressionsSupported.java 2015-10-04 22:55:54.565265577 +0400 @@ -41,7 +41,7 @@ * included in an IPP "job-impressions-supported" attribute. See class {@link * javax.print.attribute.SetOfIntegerSyntax SetOfIntegerSyntax} for an * explanation of canonical array form. The category name returned by - * getName() gives the IPP attribute name. + * {@code getName()} gives the IPP attribute name. * * @author Alan Kaminsky */ @@ -61,7 +61,7 @@ * * @exception IllegalArgumentException * (Unchecked exception) Thrown if a null range is specified or if a - * non-null range is specified with lowerBound less than + * non-null range is specified with {@code lowerBound} less than * 0. */ public JobImpressionsSupported(int lowerBound, int upperBound) { @@ -81,17 +81,17 @@ * conditions must be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class JobImpressionsSupported. + * {@code object} is an instance of class JobImpressionsSupported. *
      3. * This job impressions supported attribute's members and - * object's members are the same. + * {@code object}'s members are the same. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this job + * @return True if {@code object} is equivalent to this job * impressions supported attribute, false otherwise. */ public boolean equals(Object object) { @@ -118,7 +118,7 @@ * instance. *

      * For class JobImpressionsSupported, the category name is - * "job-impressions-supported". + * {@code "job-impressions-supported"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/JobKOctets.java 2015-10-04 22:55:55.269265545 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/JobKOctets.java 2015-10-04 22:55:55.081265554 +0400 @@ -115,7 +115,7 @@ * data, replacing any JobKOctets value the client specified. *

      * IPP Compatibility: The integer value gives the IPP integer value. The - * category name returned by getName() gives the IPP attribute + * category name returned by {@code getName()} gives the IPP attribute * name. * * @see JobKOctetsSupported @@ -136,7 +136,7 @@ * @param value Integer value. * * @exception IllegalArgumentException - * (Unchecked exception) Thrown if value is less than 0. + * (Unchecked exception) Thrown if {@code value} is less than 0. */ public JobKOctets(int value) { super (value, 0, Integer.MAX_VALUE); @@ -148,17 +148,17 @@ * true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class JobKOctets. + * {@code object} is an instance of class JobKOctets. *
      3. - * This job K octets attribute's value and object's value + * This job K octets attribute's value and {@code object}'s value * are equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this job K + * @return True if {@code object} is equivalent to this job K * octets attribute, false otherwise. */ public boolean equals(Object object) { @@ -182,7 +182,7 @@ * Get the name of the category of which this attribute value is an * instance. *

      - * For class JobKOctets, the category name is "job-k-octets". + * For class JobKOctets, the category name is {@code "job-k-octets"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/JobKOctetsProcessed.java 2015-10-04 22:55:55.781265522 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/JobKOctetsProcessed.java 2015-10-04 22:55:55.605265530 +0400 @@ -57,7 +57,7 @@ * JobKOctets} attribute. *

      * IPP Compatibility: The integer value gives the IPP integer value. The - * category name returned by getName() gives the IPP attribute + * category name returned by {@code getName()} gives the IPP attribute * name. * * @see JobKOctets @@ -79,7 +79,7 @@ * @param value Integer value. * * @exception IllegalArgumentException - * (Unchecked exception) Thrown if value is less than 0. + * (Unchecked exception) Thrown if {@code value} is less than 0. */ public JobKOctetsProcessed(int value) { super (value, 0, Integer.MAX_VALUE); @@ -91,17 +91,17 @@ * must be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class JobKOctetsProcessed. + * {@code object} is an instance of class JobKOctetsProcessed. *
      3. * This job K octets processed attribute's value and - * object's value are equal. + * {@code object}'s value are equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this job K + * @return True if {@code object} is equivalent to this job K * octets processed attribute, false otherwise. */ public boolean equals(Object object) { @@ -128,7 +128,7 @@ * instance. *

      * For class JobKOctetsProcessed, the category name is - * "job-k-octets-processed". + * {@code "job-k-octets-processed"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/JobKOctetsSupported.java 2015-10-04 22:55:56.293265500 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/JobKOctetsSupported.java 2015-10-04 22:55:56.117265507 +0400 @@ -41,7 +41,7 @@ * in an IPP "job-k-octets-supported" attribute. See class {@link * javax.print.attribute.SetOfIntegerSyntax SetOfIntegerSyntax} for an * explanation of canonical array form. The category name returned by - * getName() gives the IPP attribute name. + * {@code getName()} gives the IPP attribute name. * * @author Alan Kaminsky */ @@ -60,7 +60,7 @@ * * @exception IllegalArgumentException * (Unchecked exception) Thrown if a null range is specified or if a - * non-null range is specified with lowerBound less than + * non-null range is specified with {@code lowerBound} less than * 0. */ public JobKOctetsSupported(int lowerBound, int upperBound) { @@ -79,17 +79,17 @@ * must be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class JobKOctetsSupported. + * {@code object} is an instance of class JobKOctetsSupported. *
      3. * This job K octets supported attribute's members and - * object's members are the same. + * {@code object}'s members are the same. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this job K + * @return True if {@code object} is equivalent to this job K * octets supported attribute, false otherwise. */ public boolean equals(Object object) { @@ -116,7 +116,7 @@ * instance. *

      * For class JobKOctetsSupported, the category name is - * "job-k-octets-supported". + * {@code "job-k-octets-supported"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/JobMediaSheets.java 2015-10-04 22:55:56.817265476 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/JobMediaSheets.java 2015-10-04 22:55:56.629265484 +0400 @@ -55,7 +55,7 @@ * with {@link JobMediaSheetsSupported JobMediaSheetsSupported}. *

      * IPP Compatibility: The integer value gives the IPP integer value. The - * category name returned by getName() gives the IPP attribute + * category name returned by {@code getName()} gives the IPP attribute * name. * * @see JobMediaSheetsSupported @@ -78,7 +78,7 @@ * @param value Integer value. * * @exception IllegalArgumentException - * (Unchecked exception) Thrown if value is less than 0. + * (Unchecked exception) Thrown if {@code value} is less than 0. */ public JobMediaSheets(int value) { super (value, 0, Integer.MAX_VALUE); @@ -90,17 +90,17 @@ * be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class JobMediaSheets. + * {@code object} is an instance of class JobMediaSheets. *
      3. - * This job media sheets attribute's value and object's + * This job media sheets attribute's value and {@code object}'s * value are equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this job media + * @return True if {@code object} is equivalent to this job media * sheets attribute, false otherwise. */ public boolean equals(Object object) { @@ -126,7 +126,7 @@ * instance. *

      * For class JobMediaSheets and any vendor-defined subclasses, the - * category name is "job-media-sheets". + * category name is {@code "job-media-sheets"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/JobMediaSheetsCompleted.java 2015-10-04 22:55:57.333265453 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/JobMediaSheetsCompleted.java 2015-10-04 22:55:57.153265461 +0400 @@ -45,7 +45,7 @@ * states, the JobMediaSheetsCompleted value is the final value for the job. *

      * IPP Compatibility: The integer value gives the IPP integer value. The - * category name returned by getName() gives the IPP attribute + * category name returned by {@code getName()} gives the IPP attribute * name. * * @see JobMediaSheets @@ -68,7 +68,7 @@ * @param value Integer value. * * @exception IllegalArgumentException - * (Unchecked exception) Thrown if value is less than 0. + * (Unchecked exception) Thrown if {@code value} is less than 0. */ public JobMediaSheetsCompleted(int value) { super (value, 0, Integer.MAX_VALUE); @@ -80,17 +80,17 @@ * conditions must be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class JobMediaSheetsCompleted. + * {@code object} is an instance of class JobMediaSheetsCompleted. *
      3. * This job media sheets completed attribute's value and - * object's value are equal. + * {@code object}'s value are equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this job media + * @return True if {@code object} is equivalent to this job media * sheets completed attribute, false otherwise. */ public boolean equals(Object object) { @@ -117,7 +117,7 @@ * instance. *

      * For class JobMediaSheetsCompleted, the category name is - * "job-media-sheets-completed". + * {@code "job-media-sheets-completed"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/JobMediaSheetsSupported.java 2015-10-04 22:55:57.845265430 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/JobMediaSheetsSupported.java 2015-10-04 22:55:57.665265438 +0400 @@ -41,7 +41,7 @@ * included in an IPP "job-media-sheets-supported" attribute. See class {@link * javax.print.attribute.SetOfIntegerSyntax SetOfIntegerSyntax} for an * explanation of canonical array form. The category name returned by - * getName() gives the IPP attribute name. + * {@code getName()} gives the IPP attribute name. * * @author Alan Kaminsky */ @@ -60,7 +60,7 @@ * * @exception IllegalArgumentException * (Unchecked exception) Thrown if a null range is specified or if a - * non-null range is specified with lowerBound less than + * non-null range is specified with {@code lowerBound} less than * 0. */ public JobMediaSheetsSupported(int lowerBound, int upperBound) { @@ -79,17 +79,17 @@ * conditions must be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class JobMediaSheetsSupported. + * {@code object} is an instance of class JobMediaSheetsSupported. *
      3. * This job media sheets supported attribute's members and - * object's members are the same. + * {@code object}'s members are the same. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this job media + * @return True if {@code object} is equivalent to this job media * sheets supported attribute, false otherwise. */ public boolean equals(Object object) { @@ -116,7 +116,7 @@ * instance. *

      * For class JobMediaSheetsSupported, the - * category name is "job-media-sheets-supported". + * category name is {@code "job-media-sheets-supported"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/JobMessageFromOperator.java 2015-10-04 22:55:58.357265407 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/JobMessageFromOperator.java 2015-10-04 22:55:58.177265415 +0400 @@ -46,7 +46,7 @@ *

      * IPP Compatibility: The string value gives the IPP name value. The * locale gives the IPP natural language. The category name returned by - * getName() gives the IPP attribute name. + * {@code getName()} gives the IPP attribute name. * * @author Alan Kaminsky */ @@ -62,10 +62,10 @@ * @param message Message. * @param locale Natural language of the text string. null * is interpreted to mean the default locale as returned - * by Locale.getDefault() + * by {@code Locale.getDefault()} * * @exception NullPointerException - * (unchecked exception) Thrown if message is null. + * (unchecked exception) Thrown if {@code message} is null. */ public JobMessageFromOperator(String message, Locale locale) { super (message, locale); @@ -77,20 +77,20 @@ * must be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class JobMessageFromOperator. + * {@code object} is an instance of class JobMessageFromOperator. *
      3. * This job message from operator attribute's underlying string and - * object's underlying string are equal. + * {@code object}'s underlying string are equal. *
      4. * This job message from operator attribute's locale and - * object's locale are equal. + * {@code object}'s locale are equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this job + * @return True if {@code object} is equivalent to this job * message from operator attribute, false otherwise. */ public boolean equals(Object object) { @@ -117,7 +117,7 @@ * instance. *

      * For class JobMessageFromOperator, the - * category name is "job-message-from-operator". + * category name is {@code "job-message-from-operator"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/JobName.java 2015-10-04 22:55:58.877265383 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/JobName.java 2015-10-04 22:55:58.689265392 +0400 @@ -47,7 +47,7 @@ *

      * IPP Compatibility: The string value gives the IPP name value. The * locale gives the IPP natural language. The category name returned by - * getName() gives the IPP attribute name. + * {@code getName()} gives the IPP attribute name. * * @author Alan Kaminsky */ @@ -62,10 +62,10 @@ * @param jobName Job name. * @param locale Natural language of the text string. null * is interpreted to mean the default locale as returned - * by Locale.getDefault() + * by {@code Locale.getDefault()} * * @exception NullPointerException - * (unchecked exception) Thrown if jobName is null. + * (unchecked exception) Thrown if {@code jobName} is null. */ public JobName(String jobName, Locale locale) { super (jobName, locale); @@ -76,20 +76,20 @@ * object. To be equivalent, all of the following conditions must be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class JobName. + * {@code object} is an instance of class JobName. *
      3. - * This job name attribute's underlying string and object's + * This job name attribute's underlying string and {@code object}'s * underlying string are equal. *
      4. - * This job name attribute's locale and object's locale are + * This job name attribute's locale and {@code object}'s locale are * equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this job name + * @return True if {@code object} is equivalent to this job name * attribute, false otherwise. */ public boolean equals(Object object) { @@ -113,7 +113,7 @@ * Get the name of the category of which this attribute value is an * instance. *

      - * For class JobName, the category name is "job-name". + * For class JobName, the category name is {@code "job-name"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/JobOriginatingUserName.java 2015-10-04 22:55:59.389265360 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/JobOriginatingUserName.java 2015-10-04 22:55:59.213265368 +0400 @@ -46,7 +46,7 @@ *

      * IPP Compatibility: The string value gives the IPP name value. The * locale gives the IPP natural language. The category name returned by - * getName() gives the IPP attribute name. + * {@code getName()} gives the IPP attribute name. * * @author Alan Kaminsky */ @@ -62,10 +62,10 @@ * @param userName User name. * @param locale Natural language of the text string. null * is interpreted to mean the default locale as returned - * by Locale.getDefault() + * by {@code Locale.getDefault()} * * @exception NullPointerException - * (unchecked exception) Thrown if userName is null. + * (unchecked exception) Thrown if {@code userName} is null. */ public JobOriginatingUserName(String userName, Locale locale) { super (userName, locale); @@ -77,20 +77,20 @@ * must be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class JobOriginatingUserName. + * {@code object} is an instance of class JobOriginatingUserName. *
      3. * This job originating user name attribute's underlying string and - * object's underlying string are equal. + * {@code object}'s underlying string are equal. *
      4. * This job originating user name attribute's locale and - * object's locale are equal. + * {@code object}'s locale are equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this job + * @return True if {@code object} is equivalent to this job * originating user name attribute, false otherwise. */ public boolean equals(Object object) { @@ -117,7 +117,7 @@ * instance. *

      * For class JobOriginatingUserName, the - * category name is "job-originating-user-name". + * category name is {@code "job-originating-user-name"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/JobPriority.java 2015-10-04 22:55:59.917265337 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/JobPriority.java 2015-10-04 22:55:59.725265345 +0400 @@ -52,7 +52,7 @@ * among the available job priority levels. *

      * IPP Compatibility: The integer value gives the IPP integer value. The - * category name returned by getName() gives the IPP attribute + * category name returned by {@code getName()} gives the IPP attribute * name. * * @author Alan Kaminsky @@ -68,7 +68,7 @@ * @param value Integer value. * * @exception IllegalArgumentException - * (Unchecked exception) Thrown if value is less than 1 + * (Unchecked exception) Thrown if {@code value} is less than 1 * or greater than 100. */ public JobPriority(int value) { @@ -81,17 +81,17 @@ * true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class JobPriority. + * {@code object} is an instance of class JobPriority. *
      3. - * This job priority attribute's value and object's value + * This job priority attribute's value and {@code object}'s value * are equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this job + * @return True if {@code object} is equivalent to this job * priority attribute, false otherwise. */ public boolean equals(Object object) { @@ -115,7 +115,7 @@ * Get the name of the category of which this attribute value is an * instance. *

      - * For class JobPriority, the category name is "job-priority". + * For class JobPriority, the category name is {@code "job-priority"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/JobPrioritySupported.java 2015-10-04 22:56:00.433265314 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/JobPrioritySupported.java 2015-10-04 22:56:00.253265322 +0400 @@ -42,7 +42,7 @@ * priority values equally among the available job priority levels. *

      * IPP Compatibility: The integer value gives the IPP integer value. - * The category name returned by getName() gives the IPP + * The category name returned by {@code getName()} gives the IPP * attribute name. * * @author Alan Kaminsky @@ -60,7 +60,7 @@ * @param value Number of different job priority levels supported. * * @exception IllegalArgumentException - * (Unchecked exception) Thrown if value is less than 1 + * (Unchecked exception) Thrown if {@code value} is less than 1 * or greater than 100. */ public JobPrioritySupported(int value) { @@ -73,17 +73,17 @@ * must be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class JobPrioritySupported. + * {@code object} is an instance of class JobPrioritySupported. *
      3. * This job priority supported attribute's value and - * object's value are equal. + * {@code object}'s value are equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this job + * @return True if {@code object} is equivalent to this job * priority supported attribute, false otherwise. */ public boolean equals (Object object) { @@ -112,7 +112,7 @@ * instance. *

      * For class JobPrioritySupported, the - * category name is "job-priority-supported". + * category name is {@code "job-priority-supported"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/JobSheets.java 2015-10-04 22:56:00.953265290 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/JobSheets.java 2015-10-04 22:56:00.765265299 +0400 @@ -44,9 +44,9 @@ * particular JobSheets value. *

      * IPP Compatibility: The category name returned by - * getName() is the IPP attribute name. The + * {@code getName()} is the IPP attribute name. The * enumeration's integer value is the IPP enum value. The - * toString() method returns the IPP string representation of + * {@code toString()} method returns the IPP string representation of * the attribute value. For a subclass, the attribute value must be * localized to give the IPP name and natural language values. * @@ -122,7 +122,7 @@ * instance. *

      * For class JobSheets and any vendor-defined subclasses, the category - * name is "job-sheets". + * name is {@code "job-sheets"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/JobState.java 2015-10-04 22:56:01.497265266 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/JobState.java 2015-10-04 22:56:01.309265274 +0400 @@ -39,8 +39,8 @@ * detailed information about the job in the given job state. *

      * IPP Compatibility: The category name returned by - * getName() is the IPP attribute name. The enumeration's - * integer value is the IPP enum value. The toString() method + * {@code getName()} is the IPP attribute name. The enumeration's + * integer value is the IPP enum value. The {@code toString()} method * returns the IPP string representation of the attribute value. * * @author Alan Kaminsky @@ -225,7 +225,7 @@ * instance. *

      * For class JobState and any vendor-defined subclasses, the category - * name is "job-state". + * name is {@code "job-state"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/JobStateReason.java 2015-10-04 22:56:02.021265242 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/JobStateReason.java 2015-10-04 22:56:01.833265251 +0400 @@ -48,8 +48,8 @@ * JobState} also changed. *

      * IPP Compatibility: The category name returned by - * getName() is the IPP attribute name. The enumeration's - * integer value is the IPP enum value. The toString() method + * {@code getName()} is the IPP attribute name. The enumeration's + * integer value is the IPP enum value. The {@code toString()} method * returns the IPP string representation of the attribute value. * * @author Alan Kaminsky @@ -259,7 +259,7 @@ * The job was aborted by the system because the document data's document * format (doc flavor) is not among those supported by the printer. If the * client specifies a doc flavor with a MIME type of - * "application/octet-stream", the printer may abort the job if + * {@code "application/octet-stream"}, the printer may abort the job if * the printer cannot determine the document data's actual format through * auto-sensing (even if the printer supports the document format if * specified explicitly). This value must be supported, since a doc flavor @@ -449,7 +449,7 @@ * instance. *

      * For class JobStateReason and any vendor-defined subclasses, the - * category name is "job-state-reason". + * category name is {@code "job-state-reason"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/Media.java 2015-10-04 22:56:02.549265219 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/Media.java 2015-10-04 22:56:02.361265227 +0400 @@ -49,8 +49,8 @@ * one of the ways in which the Media attribute can be specified. *

      * IPP Compatibility: The category name returned by - * getName() is the IPP attribute name. The enumeration's - * integer value is the IPP enum value. The toString() method + * {@code getName()} is the IPP attribute name. The enumeration's + * integer value is the IPP enum value. The {@code toString()} method * returns the IPP string representation of the attribute value. * * @author Phil Race @@ -74,16 +74,16 @@ * object. To be equivalent, all of the following conditions must be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is of the same subclass of Media as this object. + * {@code object} is of the same subclass of Media as this object. *
      3. * The values are equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this media + * @return True if {@code object} is equivalent to this media * attribute, false otherwise. */ public boolean equals(Object object) { @@ -111,7 +111,7 @@ * instance. *

      * For class Media and any vendor-defined subclasses, the category name is - * "media". + * {@code "media"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/MediaPrintableArea.java 2015-10-04 22:56:03.061265196 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/MediaPrintableArea.java 2015-10-04 22:56:02.881265204 +0400 @@ -54,7 +54,7 @@ * The hardware's minimum margins is not just a property of the printer, * but may be a function of the media size, orientation, media type, and * any specified finishings. - * PrintService provides the method to query the supported + * {@code PrintService} provides the method to query the supported * values of an attribute in a suitable context : * See {@link javax.print.PrintService#getSupportedAttributeValues(Class,DocFlavor, AttributeSet) PrintService.getSupportedAttributeValues()} *

      @@ -236,16 +236,16 @@ * To be equivalent, all of the following conditions must be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class MediaPrintableArea. + * {@code object} is an instance of class MediaPrintableArea. *
      3. * The origin and dimensions are the same. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this media margins + * @return True if {@code object} is equivalent to this media margins * attribute, false otherwise. */ public boolean equals(Object object) { @@ -278,7 +278,7 @@ * instance. *

      * For class MediaPrintableArea, - * the category name is "media-printable-area". + * the category name is {@code "media-printable-area"}. *

      This is not an IPP V1.1 attribute. * * @return Attribute category name. @@ -295,7 +295,7 @@ * Unit conversion factor, e.g. {@link #INCH INCH} or * {@link #MM MM}. * @param unitsName - * Units name string, e.g. "in" or "mm". If + * Units name string, e.g. {@code "in"} or {@code "mm"}. If * null, no units name is appended to the result. * * @return String version of this two-dimensional size attribute. --- old/src/java.desktop/share/classes/javax/print/attribute/standard/MediaSize.java 2015-10-04 22:56:03.589265172 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/MediaSize.java 2015-10-04 22:56:03.397265180 +0400 @@ -42,7 +42,7 @@ * MediaSize is not yet used to specify media. Its current role is * as a mapping for named media (see {@link MediaSizeName MediaSizeName}). * Clients can use the mapping method - * MediaSize.getMediaSizeForName(MediaSizeName) + * {@code MediaSize.getMediaSizeForName(MediaSizeName)} * to find the physical dimensions of the MediaSizeName instances * enumerated in this API. This is useful for clients which need this * information to format {@literal &} paginate printing. @@ -66,8 +66,8 @@ * @param x X dimension. * @param y Y dimension. * @param units - * Unit conversion factor, e.g. Size2DSyntax.INCH or - * Size2DSyntax.MM. + * Unit conversion factor, e.g. {@code Size2DSyntax.INCH} or + * {@code Size2DSyntax.MM}. * * @exception IllegalArgumentException * (Unchecked exception) Thrown if {@code x < 0} or {@code y < 0} or @@ -87,8 +87,8 @@ * @param x X dimension. * @param y Y dimension. * @param units - * Unit conversion factor, e.g. Size2DSyntax.INCH or - * Size2DSyntax.MM. + * Unit conversion factor, e.g. {@code Size2DSyntax.INCH} or + * {@code Size2DSyntax.MM}. * * @exception IllegalArgumentException * (Unchecked exception) Thrown if {@code x < 0} or {@code y < 0} or @@ -109,8 +109,8 @@ * @param x X dimension. * @param y Y dimension. * @param units - * Unit conversion factor, e.g. Size2DSyntax.INCH or - * Size2DSyntax.MM. + * Unit conversion factor, e.g. {@code Size2DSyntax.INCH} or + * {@code Size2DSyntax.MM}. * @param media a media name to associate with this MediaSize * * @exception IllegalArgumentException @@ -135,8 +135,8 @@ * @param x X dimension. * @param y Y dimension. * @param units - * Unit conversion factor, e.g. Size2DSyntax.INCH or - * Size2DSyntax.MM. + * Unit conversion factor, e.g. {@code Size2DSyntax.INCH} or + * {@code Size2DSyntax.MM}. * @param media a media name to associate with this MediaSize * * @exception IllegalArgumentException @@ -190,8 +190,8 @@ * @param x - X dimension * @param y - Y dimension. * @param units - * Unit conversion factor, e.g. Size2DSyntax.INCH or - * Size2DSyntax.MM + * Unit conversion factor, e.g. {@code Size2DSyntax.INCH} or + * {@code Size2DSyntax.MM} * @return MediaSizeName matching these dimensions, or null. * @exception IllegalArgumentException if {@code x <= 0}, * {@code y <= 0}, or {@code units < 1}. @@ -237,20 +237,20 @@ * To be equivalent, all of the following conditions must be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class MediaSize. + * {@code object} is an instance of class MediaSize. *
      3. * This media size attribute's X dimension is equal to - * object's X dimension. + * {@code object}'s X dimension. *
      4. * This media size attribute's Y dimension is equal to - * object's Y dimension. + * {@code object}'s Y dimension. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this media size + * @return True if {@code object} is equivalent to this media size * attribute, false otherwise. */ public boolean equals(Object object) { @@ -276,7 +276,7 @@ * instance. *

      * For class MediaSize and any vendor-defined subclasses, the category - * name is "media-size". + * name is {@code "media-size"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/MultipleDocumentHandling.java 2015-10-04 22:56:04.113265148 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/MultipleDocumentHandling.java 2015-10-04 22:56:03.933265156 +0400 @@ -62,53 +62,53 @@ * specify two variations of this possibility. * *

      - * In the detailed explanations below, if "a" represents an + * In the detailed explanations below, if "{@code a}" represents an * instance of document data, then the result of processing the data in - * document "a" is a sequence of media sheets represented by - * "a(*)". + * document "{@code a}" is a sequence of media sheets represented by + * "{@code a(*)}". *

      * The standard MultipleDocumentHandling values are: *

        *
      • * {@link #SINGLE_DOCUMENT * SINGLE_DOCUMENT}. If a print job has multiple - * documents -- say, the document data is called a and - * b -- then the result of processing all the document data - * (a and then b) must be treated as a single sequence + * documents -- say, the document data is called {@code a} and + * {@code b} -- then the result of processing all the document data + * ({@code a} and then {@code b}) must be treated as a single sequence * of media sheets for finishing operations; that is, finishing would be - * performed on the concatenation of the sequences a(*),b(*). The + * performed on the concatenation of the sequences {@code a(*),b(*)}. The * printer must not force the data in each document instance to be formatted * onto a new print-stream page, nor to start a new impression on a new media * sheet. If more than one copy is made, the ordering of the sets of media * sheets resulting from processing the document data must be - * a(*),b(*),a(*),b(*),..., and the printer object must force - * each copy (a(*),b(*)) to start on a new media sheet. + * {@code a(*),b(*),a(*),b(*),...}, and the printer object must force + * each copy ({@code a(*),b(*)}) to start on a new media sheet. * *
      • * {@link #SEPARATE_DOCUMENTS_UNCOLLATED_COPIES * SEPARATE_DOCUMENTS_UNCOLLATED_COPIES}. If a print job - * has multiple documents -- say, the document data is called a and - * b -- then the result of processing the data in each document + * has multiple documents -- say, the document data is called {@code a} and + * {@code b} -- then the result of processing the data in each document * instance must be treated as a single sequence of media sheets for finishing - * operations; that is, the sets a(*) and b(*) would + * operations; that is, the sets {@code a(*)} and {@code b(*)} would * each be finished separately. The printer must force each copy of the result * of processing the data in a single document to start on a new media sheet. * If more than one copy is made, the ordering of the sets of media sheets * resulting from processing the document data must be - * a(*),a(*),...,b(*),b(*).... + * {@code a(*),a(*),...,b(*),b(*)...}. * *
      • * {@link #SEPARATE_DOCUMENTS_COLLATED_COPIES * SEPARATE_DOCUMENTS_COLLATED_COPIES}. If a print job - * has multiple documents -- say, the document data is called a and - * b -- then the result of processing the data in each document + * has multiple documents -- say, the document data is called {@code a} and + * {@code b} -- then the result of processing the data in each document * instance must be treated as a single sequence of media sheets for finishing - * operations; that is, the sets a(*) and b(*) would + * operations; that is, the sets {@code a(*)} and {@code b(*)} would * each be finished separately. The printer must force each copy of the result * of processing the data in a single document to start on a new media sheet. * If more than one copy is made, the ordering of the sets of media sheets * resulting from processing the document data must be - * a(*),b(*),a(*),b(*),.... + * {@code a(*),b(*),a(*),b(*),...}. * *
      • * {@link #SINGLE_DOCUMENT_NEW_SHEET @@ -130,18 +130,18 @@ * {@link Finishings#STAPLE STAPLE} is specified, then: *
          *
        • - * With SINGLE_DOCUMENT, documents a and b are + * With SINGLE_DOCUMENT, documents {@code a} and {@code b} are * stapled together as a single document with no regard to new sheets. * *
        • - * With SINGLE_DOCUMENT_NEW_SHEET, documents a and b - * are stapled together as a single document, but document b + * With SINGLE_DOCUMENT_NEW_SHEET, documents {@code a} and {@code b} + * are stapled together as a single document, but document {@code b} * starts on a new sheet. * *
        • * With SEPARATE_DOCUMENTS_UNCOLLATED_COPIES and - * SEPARATE_DOCUMENTS_COLLATED_COPIES, documents a and - * b are stapled separately. + * SEPARATE_DOCUMENTS_COLLATED_COPIES, documents {@code a} and + * {@code b} are stapled separately. *
        *

        * Note: None of these values provide means to produce uncollated @@ -150,8 +150,8 @@ * To specify that, see the {@link SheetCollate SheetCollate} attribute. *

        * IPP Compatibility: The category name returned by - * getName() is the IPP attribute name. The enumeration's - * integer value is the IPP enum value. The toString() method + * {@code getName()} is the IPP attribute name. The enumeration's + * integer value is the IPP enum value. The {@code toString()} method * returns the IPP string representation of the attribute value. * * @see Copies @@ -256,7 +256,7 @@ * instance. *

        * For class MultipleDocumentHandling and any vendor-defined subclasses, - * the category name is "multiple-document-handling". + * the category name is {@code "multiple-document-handling"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/NumberOfDocuments.java 2015-10-04 22:56:04.641265125 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/NumberOfDocuments.java 2015-10-04 22:56:04.453265133 +0400 @@ -35,7 +35,7 @@ * not. *

        * IPP Compatibility: The integer value gives the IPP integer value. The - * category name returned by getName() gives the IPP attribute + * category name returned by {@code getName()} gives the IPP attribute * name. * * @author Alan Kaminsky @@ -53,7 +53,7 @@ * @param value Integer value. * * @exception IllegalArgumentException - * (Unchecked exception) Thrown if value is less than 0. + * (Unchecked exception) Thrown if {@code value} is less than 0. */ public NumberOfDocuments(int value) { super (value, 0, Integer.MAX_VALUE); @@ -65,17 +65,17 @@ * must be true: *

          *
        1. - * object is not null. + * {@code object} is not null. *
        2. - * object is an instance of class NumberOfDocuments. + * {@code object} is an instance of class NumberOfDocuments. *
        3. - * This number of documents attribute's value and object's + * This number of documents attribute's value and {@code object}'s * value are equal. *
        * * @param object Object to compare to. * - * @return True if object is equivalent to this number of + * @return True if {@code object} is equivalent to this number of * documents attribute, false otherwise. */ public boolean equals(Object object) { @@ -102,7 +102,7 @@ * instance. *

        * For class NumberOfDocuments, the - * category name is "number-of-documents". + * category name is {@code "number-of-documents"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/NumberOfInterveningJobs.java 2015-10-04 22:56:05.157265101 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/NumberOfInterveningJobs.java 2015-10-04 22:56:04.977265110 +0400 @@ -35,7 +35,7 @@ * scheduled order). *

        * IPP Compatibility: The integer value gives the IPP integer value. - * The category name returned by getName() gives the IPP + * The category name returned by {@code getName()} gives the IPP * attribute name. * * @author Alan Kaminsky @@ -52,7 +52,7 @@ * @param value Integer value. * * @exception IllegalArgumentException - * (Unchecked exception) Thrown if value is less than 0. + * (Unchecked exception) Thrown if {@code value} is less than 0. */ public NumberOfInterveningJobs(int value) { super(value, 0, Integer.MAX_VALUE); @@ -64,17 +64,17 @@ * conditions must be true: *

          *
        1. - * object is not null. + * {@code object} is not null. *
        2. - * object is an instance of class NumberOfInterveningJobs. + * {@code object} is an instance of class NumberOfInterveningJobs. *
        3. * This number of intervening jobs attribute's value and - * object's value are equal. + * {@code object}'s value are equal. *
        * * @param object Object to compare to. * - * @return True if object is equivalent to this number of + * @return True if {@code object} is equivalent to this number of * intervening jobs attribute, false otherwise. */ public boolean equals(Object object) { @@ -101,7 +101,7 @@ * instance. *

        * For class NumberOfInterveningJobs, the - * category name is "number-of-intervening-jobs". + * category name is {@code "number-of-intervening-jobs"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/NumberUp.java 2015-10-04 22:56:05.677265078 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/NumberUp.java 2015-10-04 22:56:05.489265087 +0400 @@ -118,7 +118,7 @@ *

      * * IPP Compatibility: The integer value gives the IPP integer value. - * The category name returned by getName() gives the IPP + * The category name returned by {@code getName()} gives the IPP * attribute name. * * @author Alan Kaminsky @@ -135,7 +135,7 @@ * @param value Integer value. * * @exception IllegalArgumentException - * (Unchecked exception) Thrown if value is less than 1. + * (Unchecked exception) Thrown if {@code value} is less than 1. */ public NumberUp(int value) { super (value, 1, Integer.MAX_VALUE); @@ -146,17 +146,17 @@ * object. To be equivalent, all of the following conditions must be true: *
        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class NumberUp. + * {@code object} is an instance of class NumberUp. *
      3. - * This number up attribute's value and object's value are + * This number up attribute's value and {@code object}'s value are * equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this number up + * @return True if {@code object} is equivalent to this number up * attribute, false otherwise. */ public boolean equals(Object object) { @@ -180,7 +180,7 @@ * Get the name of the category of which this attribute value is an * instance. *

      - * For class NumberUp, the category name is "number-up". + * For class NumberUp, the category name is {@code "number-up"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/NumberUpSupported.java 2015-10-04 22:56:06.197265055 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/NumberUpSupported.java 2015-10-04 22:56:06.009265063 +0400 @@ -37,7 +37,7 @@ * included in an IPP "number-up-supported" attribute. See class {@link * javax.print.attribute.SetOfIntegerSyntax SetOfIntegerSyntax} for an * explanation of canonical array form. The category name returned by - * getName() gives the IPP attribute name. + * {@code getName()} gives the IPP attribute name. * * @author Alan Kaminsky */ @@ -57,12 +57,12 @@ * @param members Set members in array form. * * @exception NullPointerException - * (unchecked exception) Thrown if members is null or - * any element of members is null. + * (unchecked exception) Thrown if {@code members} is null or + * any element of {@code members} is null. * @exception IllegalArgumentException * (unchecked exception) Thrown if any element of - * members is not a length-one or length-two array. Also - * thrown if members is a zero-length array or if any + * {@code members} is not a length-one or length-two array. Also + * thrown if {@code members} is a zero-length array or if any * member of the set is less than 1. */ public NumberUpSupported(int[][] members) { @@ -91,7 +91,7 @@ * @param member Set member. * * @exception IllegalArgumentException - * (Unchecked exception) Thrown if member is less than + * (Unchecked exception) Thrown if {@code member} is less than * 1. */ public NumberUpSupported(int member) { @@ -111,7 +111,7 @@ * * @exception IllegalArgumentException * (Unchecked exception) Thrown if a null range is specified or if a - * non-null range is specified with lowerBound less than + * non-null range is specified with {@code lowerBound} less than * 1. */ public NumberUpSupported(int lowerBound, int upperBound) { @@ -130,17 +130,17 @@ * must be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class NumberUpSupported. + * {@code object} is an instance of class NumberUpSupported. *
      3. - * This number up supported attribute's members and object's + * This number up supported attribute's members and {@code object}'s * members are the same. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this number up + * @return True if {@code object} is equivalent to this number up * supported attribute, false otherwise. */ public boolean equals(Object object) { @@ -167,7 +167,7 @@ * instance. *

      * For class NumberUpSupported, the - * category name is "number-up-supported". + * category name is {@code "number-up-supported"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/OrientationRequested.java 2015-10-04 22:56:06.709265032 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/OrientationRequested.java 2015-10-04 22:56:06.529265040 +0400 @@ -36,17 +36,17 @@ * does not describe the orientation of the client-supplied print-stream * pages. *

      - * For some document formats (such as "application/postscript"), + * For some document formats (such as {@code "application/postscript"}), * the desired orientation of the print-stream pages is specified within the * document data. This information is generated by a device driver prior to * the submission of the print job. Other document formats (such as - * "text/plain") do not include the notion of desired orientation + * {@code "text/plain"}) do not include the notion of desired orientation * within the document data. In the latter case it is possible for the printer * to bind the desired orientation to the document data after it has been * submitted. It is expected that a printer would only support the * OrientationRequested attribute for some document formats (e.g., - * "text/plain" or "text/html") but not others (e.g. - * "application/postscript"). This is no different from any other + * {@code "text/plain"} or {@code "text/html"}) but not others (e.g. + * {@code "application/postscript"}). This is no different from any other * job template attribute, since a print job can always impose constraints * among the values of different job template attributes. * However, a special mention @@ -55,8 +55,8 @@ * formats. *

      * IPP Compatibility: The category name returned by - * getName() is the IPP attribute name. The enumeration's - * integer value is the IPP enum value. The toString() method + * {@code getName()} is the IPP attribute name. The enumeration's + * integer value is the IPP enum value. The {@code toString()} method * returns the IPP string representation of the attribute value. * * @author Alan Kaminsky @@ -105,7 +105,7 @@ * Finishings Finishings} attribute in cases where the * opposite edge is desired for finishing a portrait document on simple * finishing devices that have only one finishing position. Thus a - * "text/plain" portrait document can be stapled "on the + * {@code "text/plain"} portrait document can be stapled "on the * right" by a simple finishing device as is common use with some * Middle Eastern languages such as Hebrew. */ @@ -176,7 +176,7 @@ * instance. *

      * For class OrientationRequested, the - * category name is "orientation-requested". + * category name is {@code "orientation-requested"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/OutputDeviceAssigned.java 2015-10-04 22:56:07.221265009 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/OutputDeviceAssigned.java 2015-10-04 22:56:07.045265017 +0400 @@ -42,7 +42,7 @@ *

      * IPP Compatibility: The string value gives the IPP name value. The * locale gives the IPP natural language. The category name returned by - * getName() gives the IPP attribute name. + * {@code getName()} gives the IPP attribute name. * * @author Alan Kaminsky */ @@ -58,10 +58,10 @@ * @param deviceName Device name. * @param locale Natural language of the text string. null * is interpreted to mean the default locale as returned - * by Locale.getDefault() + * by {@code Locale.getDefault()} * * @exception NullPointerException - * (unchecked exception) Thrown if deviceName is null. + * (unchecked exception) Thrown if {@code deviceName} is null. */ public OutputDeviceAssigned(String deviceName, Locale locale) { @@ -76,20 +76,20 @@ * must be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class OutputDeviceAssigned. + * {@code object} is an instance of class OutputDeviceAssigned. *
      3. * This output device assigned attribute's underlying string and - * object's underlying string are equal. + * {@code object}'s underlying string are equal. *
      4. * This output device assigned attribute's locale and - * object's locale are equal. + * {@code object}'s locale are equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this output + * @return True if {@code object} is equivalent to this output * device assigned attribute, false otherwise. */ public boolean equals(Object object) { @@ -116,7 +116,7 @@ * instance. *

      * For class OutputDeviceAssigned, the - * category name is "output-device-assigned". + * category name is {@code "output-device-assigned"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/PDLOverrideSupported.java 2015-10-04 22:56:07.733264986 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/PDLOverrideSupported.java 2015-10-04 22:56:07.557264994 +0400 @@ -35,8 +35,8 @@ * specified as attributes outside the print data. *

      * IPP Compatibility: The category name returned by - * getName() is the IPP attribute name. The enumeration's - * integer value is the IPP enum value. The toString() method + * {@code getName()} is the IPP attribute name. The enumeration's + * integer value is the IPP enum value. The {@code toString()} method * returns the IPP string representation of the attribute value. * * @author Alan Kaminsky @@ -116,7 +116,7 @@ * instance. *

      * For class PDLOverrideSupported and any vendor-defined subclasses, the - * category name is "pdl-override-supported". + * category name is {@code "pdl-override-supported"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/PageRanges.java 2015-10-04 22:56:08.261264962 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/PageRanges.java 2015-10-04 22:56:08.073264970 +0400 @@ -44,13 +44,13 @@ * driver and this attribute would not be required. However, when printing an * archived document which has already been formatted, the end user may elect to * print just a subset of the pages contained in the document. In this case, if - * a page range of "n-m" is specified, the first page + * a page range of "n-m" is specified, the first page * to be printed will be page n. All subsequent pages of the document * will be printed through and including page m. *

      * If a PageRanges attribute is not specified for a print job, all pages of * the document will be printed. In other words, the default value for the - * PageRanges attribute is always {{1, Integer.MAX_VALUE}}. + * PageRanges attribute is always {@code {{1, Integer.MAX_VALUE}}}. *

      * The effect of a PageRanges attribute on a multidoc print job (a job with * multiple documents) depends on whether all the docs have the same page ranges @@ -99,7 +99,7 @@ * and IPP "page-ranges" attribute. See class {@link * javax.print.attribute.SetOfIntegerSyntax SetOfIntegerSyntax} for an * explanation of canonical array form. The category name returned by - * getName() gives the IPP attribute name. + * {@code getName()} gives the IPP attribute name. * * @author David Mendenhall * @author Alan Kaminsky @@ -119,12 +119,12 @@ * @param members Set members in array form. * * @exception NullPointerException - * (unchecked exception) Thrown if members is null or - * any element of members is null. + * (unchecked exception) Thrown if {@code members} is null or + * any element of {@code members} is null. * @exception IllegalArgumentException * (unchecked exception) Thrown if any element of - * members is not a length-one or length-two array. Also - * thrown if members is a zero-length array or if any + * {@code members} is not a length-one or length-two array. Also + * thrown if {@code members} is a zero-length array or if any * member of the set is less than 1. */ public PageRanges(int[][] members) { @@ -144,10 +144,10 @@ * @param members Set members in string form. * * @exception NullPointerException - * (unchecked exception) Thrown if members is null or - * any element of members is null. + * (unchecked exception) Thrown if {@code members} is null or + * any element of {@code members} is null. * @exception IllegalArgumentException - * (Unchecked exception) Thrown if members does not + * (Unchecked exception) Thrown if {@code members} does not * obey the proper syntax. Also * thrown if the constructed set-of-integer is a * zero-length array or if any @@ -182,7 +182,7 @@ * @param member Set member. * * @exception IllegalArgumentException - * (Unchecked exception) Thrown if member is less than + * (Unchecked exception) Thrown if {@code member} is less than * 1. */ public PageRanges(int member) { @@ -201,7 +201,7 @@ * * @exception IllegalArgumentException * (Unchecked exception) Thrown if a null range is specified or if a - * non-null range is specified with lowerBound less than + * non-null range is specified with {@code lowerBound} less than * 1. */ public PageRanges(int lowerBound, int upperBound) { @@ -219,17 +219,17 @@ * true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class PageRanges. + * {@code object} is an instance of class PageRanges. *
      3. - * This page ranges attribute's members and object's members + * This page ranges attribute's members and {@code object}'s members * are the same. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this page ranges + * @return True if {@code object} is equivalent to this page ranges * attribute, false otherwise. */ public boolean equals(Object object) { @@ -253,7 +253,7 @@ * Get the name of the category of which this attribute value is an * instance. *

      - * For class PageRanges, the category name is "page-ranges". + * For class PageRanges, the category name is {@code "page-ranges"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/PagesPerMinute.java 2015-10-04 22:56:08.785264939 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/PagesPerMinute.java 2015-10-04 22:56:08.597264947 +0400 @@ -37,7 +37,7 @@ * device that takes more than two minutes to process a page. *

      * IPP Compatibility: The integer value gives the IPP integer value. The - * category name returned by getName() gives the IPP attribute + * category name returned by {@code getName()} gives the IPP attribute * name. * * @author Alan Kaminsky @@ -54,7 +54,7 @@ * @param value Integer value. * * @exception IllegalArgumentException - * (Unchecked exception) Thrown if value is less than 0. + * (Unchecked exception) Thrown if {@code value} is less than 0. */ public PagesPerMinute(int value) { super(value, 0, Integer.MAX_VALUE); @@ -66,17 +66,17 @@ * must be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class PagesPerMinute. + * {@code object} is an instance of class PagesPerMinute. *
      3. - * This pages per minute attribute's value and object's + * This pages per minute attribute's value and {@code object}'s * value are equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this pages per + * @return True if {@code object} is equivalent to this pages per * minute attribute, false otherwise. */ public boolean equals(Object object) { @@ -102,7 +102,7 @@ * instance. *

      * For class PagesPerMinute, the - * category name is "pages-per-minute". + * category name is {@code "pages-per-minute"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/PagesPerMinuteColor.java 2015-10-04 22:56:09.297264916 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/PagesPerMinuteColor.java 2015-10-04 22:56:09.117264924 +0400 @@ -48,7 +48,7 @@ * attribute must also be present and have a value of SUPPORTED. *

      * IPP Compatibility: The integer value gives the IPP integer value. The - * category name returned by getName() gives the IPP attribute + * category name returned by {@code getName()} gives the IPP attribute * name. * * @author Alan Kaminsky @@ -65,7 +65,7 @@ * @param value Integer value. * * @exception IllegalArgumentException - * (Unchecked exception) Thrown if value is less than 0. + * (Unchecked exception) Thrown if {@code value} is less than 0. */ public PagesPerMinuteColor(int value) { super(value, 0, Integer.MAX_VALUE); @@ -77,17 +77,17 @@ * must be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class PagesPerMinuteColor. + * {@code object} is an instance of class PagesPerMinuteColor. *
      3. - * This pages per minute attribute's value and object's + * This pages per minute attribute's value and {@code object}'s * value are equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this pages per + * @return True if {@code object} is equivalent to this pages per * minute color attribute, false otherwise. */ public boolean equals(Object object) { @@ -114,7 +114,7 @@ * instance. *

      * For class PagesPerMinuteColor, the - * category name is "pages-per-minute-color". + * category name is {@code "pages-per-minute-color"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/PresentationDirection.java 2015-10-04 22:56:09.809264893 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/PresentationDirection.java 2015-10-04 22:56:09.633264900 +0400 @@ -42,8 +42,8 @@ * attribute; it is an attribute in the Production Printing Extension * (PDF) * of IPP 1.1. The category name returned by - * getName() is the IPP attribute name. The enumeration's - * integer value is the IPP enum value. The toString() method + * {@code getName()} is the IPP attribute name. The enumeration's + * integer value is the IPP enum value. The {@code toString()} method * returns the IPP string representation of the attribute value. * * @author Phil Race. @@ -174,7 +174,7 @@ * instance. *

      * For class PresentationDirection - * the category name is "presentation-direction". + * the category name is {@code "presentation-direction"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/PrintQuality.java 2015-10-04 22:56:10.333264869 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/PrintQuality.java 2015-10-04 22:56:10.141264878 +0400 @@ -35,8 +35,8 @@ * that specifies the print quality that the printer uses for the job. *

      * IPP Compatibility: The category name returned by - * getName() is the IPP attribute name. The enumeration's - * integer value is the IPP enum value. The toString() method + * {@code getName()} is the IPP attribute name. The enumeration's + * integer value is the IPP enum value. The {@code toString()} method * returns the IPP string representation of the attribute value. * * @author David Mendenhall @@ -123,7 +123,7 @@ * instance. *

      * For class PrintQuality and any vendor-defined subclasses, the category - * name is "print-quality". + * name is {@code "print-quality"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/PrinterInfo.java 2015-10-04 22:56:10.857264845 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/PrinterInfo.java 2015-10-04 22:56:10.665264854 +0400 @@ -33,15 +33,15 @@ /** * Class PrinterInfo is a printing attribute class, a text attribute, that * provides descriptive information about a printer. This could include things - * like: "This printer can be used for printing color transparencies for - * HR presentations", or "Out of courtesy for others, please - * print only small (1-5 page) jobs at this printer", or even \ - * "This printer is going away on July 1, 1997, please find a new - * printer". + * like: {@code "This printer can be used for printing color transparencies for + * HR presentations"}, or {@code "Out of courtesy for others, please + * print only small (1-5 page) jobs at this printer"}, or even + * {@code "This printer is going away on July 1, 1997, please find a new + * printer"}. *

      * IPP Compatibility: The string value gives the IPP name value. The * locale gives the IPP natural language. The category name returned by - * getName() gives the IPP attribute name. + * {@code getName()} gives the IPP attribute name. * * @author Alan Kaminsky */ @@ -57,10 +57,10 @@ * @param info Printer information string. * @param locale Natural language of the text string. null * is interpreted to mean the default locale as returned - * by Locale.getDefault() + * by {@code Locale.getDefault()} * * @exception NullPointerException - * (unchecked exception) Thrown if info is null. + * (unchecked exception) Thrown if {@code info} is null. */ public PrinterInfo(String info, Locale locale) { super (info, locale); @@ -72,20 +72,20 @@ * true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class PrinterInfo. + * {@code object} is an instance of class PrinterInfo. *
      3. * This printer info attribute's underlying string and - * object's underlying string are equal. + * {@code object}'s underlying string are equal. *
      4. - * This printer info attribute's locale and object's + * This printer info attribute's locale and {@code object}'s * locale are equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this printer + * @return True if {@code object} is equivalent to this printer * info attribute, false otherwise. */ public boolean equals(Object object) { @@ -109,7 +109,7 @@ * Get the name of the category of which this attribute value is an * instance. *

      - * For class PrinterInfo, the category name is "printer-info". + * For class PrinterInfo, the category name is {@code "printer-info"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/PrinterIsAcceptingJobs.java 2015-10-04 22:56:11.365264823 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/PrinterIsAcceptingJobs.java 2015-10-04 22:56:11.189264831 +0400 @@ -40,8 +40,8 @@ *

      * IPP Compatibility: The IPP boolean value is "true" for ACCEPTING_JOBS * and "false" for NOT_ACCEPTING_JOBS. The category name returned by - * getName() is the IPP attribute name. The enumeration's - * integer value is the IPP enum value. The toString() method + * {@code getName()} is the IPP attribute name. The enumeration's + * integer value is the IPP enum value. The {@code toString()} method * returns the IPP string representation of the attribute value. * * @author Alan Kaminsky @@ -116,7 +116,7 @@ * instance. *

      * For class PrinterIsAcceptingJobs, the - * category name is "printer-is-accepting-jobs". + * category name is {@code "printer-is-accepting-jobs"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/PrinterLocation.java 2015-10-04 22:56:11.889264799 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/PrinterLocation.java 2015-10-04 22:56:11.697264808 +0400 @@ -33,11 +33,11 @@ /** * Class PrinterLocation is a printing attribute class, a text attribute, that * identifies the location of the device. This could include things like: - * "in Room 123A, second floor of building XYZ". + * {@code "in Room 123A, second floor of building XYZ"}. *

      * IPP Compatibility: The string value gives the IPP name value. The * locale gives the IPP natural language. The category name returned by - * getName() gives the IPP attribute name. + * {@code getName()} gives the IPP attribute name. * * @author Alan Kaminsky */ @@ -53,10 +53,10 @@ * @param location Printer location. * @param locale Natural language of the text string. null * is interpreted to mean the default locale as returned - * by Locale.getDefault() + * by {@code Locale.getDefault()} * * @exception NullPointerException - * (unchecked exception) Thrown if location is null. + * (unchecked exception) Thrown if {@code location} is null. */ public PrinterLocation(String location, Locale locale) { super (location, locale); @@ -68,20 +68,20 @@ * must be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class PrinterLocation. + * {@code object} is an instance of class PrinterLocation. *
      3. * This printer location attribute's underlying string and - * object's underlying string are equal. + * {@code object}'s underlying string are equal. *
      4. - * This printer location attribute's locale and object's + * This printer location attribute's locale and {@code object}'s * locale are equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this printer + * @return True if {@code object} is equivalent to this printer * location attribute, false otherwise. */ public boolean equals(Object object) { @@ -107,7 +107,7 @@ * instance. *

      * For class PrinterLocation, the - * category name is "printer-location". + * category name is {@code "printer-location"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/PrinterMakeAndModel.java 2015-10-04 22:56:12.397264776 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/PrinterMakeAndModel.java 2015-10-04 22:56:12.221264784 +0400 @@ -35,7 +35,7 @@ *

      * IPP Compatibility: The string value gives the IPP name value. The * locale gives the IPP natural language. The category name returned by - * getName() gives the IPP attribute name. + * {@code getName()} gives the IPP attribute name. * * @author Alan Kaminsky */ @@ -51,10 +51,10 @@ * @param makeAndModel Printer make and model string. * @param locale Natural language of the text string. null * is interpreted to mean the default locale as returned - * by Locale.getDefault() + * by {@code Locale.getDefault()} * * @exception NullPointerException - * (unchecked exception) Thrown if makeAndModel is null. + * (unchecked exception) Thrown if {@code makeAndModel} is null. */ public PrinterMakeAndModel(String makeAndModel, Locale locale) { super (makeAndModel, locale); @@ -66,20 +66,20 @@ * must be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class PrinterMakeAndModel. + * {@code object} is an instance of class PrinterMakeAndModel. *
      3. * This printer make and model attribute's underlying string and - * object's underlying string are equal. + * {@code object}'s underlying string are equal. *
      4. * This printer make and model attribute's locale and - * object's locale are equal. + * {@code object}'s locale are equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this printer + * @return True if {@code object} is equivalent to this printer * make and model attribute, false otherwise. */ public boolean equals(Object object) { @@ -106,7 +106,7 @@ * instance. *

      * For class PrinterMakeAndModel, the - * category name is "printer-make-and-model". + * category name is {@code "printer-make-and-model"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/PrinterMessageFromOperator.java 2015-10-04 22:56:12.909264753 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/PrinterMessageFromOperator.java 2015-10-04 22:56:12.733264761 +0400 @@ -50,7 +50,7 @@ *

      * IPP Compatibility: The string value gives the IPP name value. The * locale gives the IPP natural language. The category name returned by - * getName() gives the IPP attribute name. + * {@code getName()} gives the IPP attribute name. * * @author Alan Kaminsky */ @@ -66,10 +66,10 @@ * @param message Message. * @param locale Natural language of the text string. null * is interpreted to mean the default locale as returned - * by Locale.getDefault() + * by {@code Locale.getDefault()} * * @exception NullPointerException - * (unchecked exception) Thrown if message is null. + * (unchecked exception) Thrown if {@code message} is null. */ public PrinterMessageFromOperator(String message, Locale locale) { super (message, locale); @@ -81,21 +81,21 @@ * following conditions must be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class + * {@code object} is an instance of class * PrinterMessageFromOperator. *
      3. * This printer message from operator attribute's underlying string and - * object's underlying string are equal. + * {@code object}'s underlying string are equal. *
      4. * This printer message from operator attribute's locale and - * object's locale are equal. + * {@code object}'s locale are equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this printer + * @return True if {@code object} is equivalent to this printer * message from operator attribute, false otherwise. */ public boolean equals(Object object) { @@ -122,7 +122,7 @@ * instance. *

      * For class PrinterMessageFromOperator, - * the category name is "printer-message-from-operator". + * the category name is {@code "printer-message-from-operator"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/PrinterMoreInfo.java 2015-10-04 22:56:13.433264730 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/PrinterMoreInfo.java 2015-10-04 22:56:13.245264738 +0400 @@ -46,8 +46,8 @@ * about this general kind of printer rather than this specific printer. *

      * IPP Compatibility: The string form returned by - * toString() gives the IPP uri value. - * The category name returned by getName() + * {@code toString()} gives the IPP uri value. + * The category name returned by {@code getName()} * gives the IPP attribute name. * * @author Alan Kaminsky @@ -63,7 +63,7 @@ * @param uri URI. * * @exception NullPointerException - * (unchecked exception) Thrown if uri is null. + * (unchecked exception) Thrown if {@code uri} is null. */ public PrinterMoreInfo(URI uri) { super (uri); @@ -75,17 +75,17 @@ * must be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class PrinterMoreInfo. + * {@code object} is an instance of class PrinterMoreInfo. *
      3. - * This printer more info attribute's URI and object's URI + * This printer more info attribute's URI and {@code object}'s URI * are equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this printer + * @return True if {@code object} is equivalent to this printer * more info attribute, false otherwise. */ public boolean equals(Object object) { @@ -111,7 +111,7 @@ * instance. *

      * For class PrinterMoreInfo, the - * category name is "printer-more-info". + * category name is {@code "printer-more-info"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/PrinterMoreInfoManufacturer.java 2015-10-04 22:56:13.945264707 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/PrinterMoreInfoManufacturer.java 2015-10-04 22:56:13.769264715 +0400 @@ -46,8 +46,8 @@ * general kind of printer. *

      * IPP Compatibility: The string form returned by - * toString() gives the IPP uri value. - * The category name returned by getName() + * {@code toString()} gives the IPP uri value. + * The category name returned by {@code getName()} * gives the IPP attribute name. * * @author Alan Kaminsky @@ -64,7 +64,7 @@ * @param uri URI. * * @exception NullPointerException - * (unchecked exception) Thrown if uri is null. + * (unchecked exception) Thrown if {@code uri} is null. */ public PrinterMoreInfoManufacturer(URI uri) { super (uri); @@ -76,18 +76,18 @@ * following conditions must be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class + * {@code object} is an instance of class * PrinterMoreInfoManufacturer. *
      3. * This printer more info manufacturer attribute's URI and - * object's URI are equal. + * {@code object}'s URI are equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this printer + * @return True if {@code object} is equivalent to this printer * more info manufacturer attribute, false otherwise. */ public boolean equals(Object object) { @@ -114,7 +114,7 @@ * instance. *

      * For class PrinterMoreInfoManufacturer, the category name is - * "printer-more-info-manufacturer". + * {@code "printer-more-info-manufacturer"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/PrinterName.java 2015-10-04 22:56:14.469264683 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/PrinterName.java 2015-10-04 22:56:14.281264692 +0400 @@ -40,7 +40,7 @@ *

      * IPP Compatibility: The string value gives the IPP name value. The * locale gives the IPP natural language. The category name returned by - * getName() gives the IPP attribute name. + * {@code getName()} gives the IPP attribute name. * * @author Alan Kaminsky */ @@ -55,10 +55,10 @@ * @param printerName Printer name. * @param locale Natural language of the text string. null * is interpreted to mean the default locale as returned - * by Locale.getDefault() + * by {@code Locale.getDefault()} * * @exception NullPointerException - * (unchecked exception) Thrown if printerName is null. + * (unchecked exception) Thrown if {@code printerName} is null. */ public PrinterName(String printerName, Locale locale) { super (printerName, locale); @@ -70,20 +70,20 @@ * true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class PrinterName. + * {@code object} is an instance of class PrinterName. *
      3. * This printer name attribute's underlying string and - * object's underlying string are equal. + * {@code object}'s underlying string are equal. *
      4. - * This printer name attribute's locale and object's locale + * This printer name attribute's locale and {@code object}'s locale * are equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this printer + * @return True if {@code object} is equivalent to this printer * name attribute, false otherwise. */ public boolean equals(Object object) { @@ -109,7 +109,7 @@ * instance. *

      * For class PrinterName, the category - * name is "printer-name". + * name is {@code "printer-name"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/PrinterResolution.java 2015-10-04 22:56:15.001264659 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/PrinterResolution.java 2015-10-04 22:56:14.813264668 +0400 @@ -61,9 +61,9 @@ * PrintQuality attribute which often controls resolution. *

      * IPP Compatibility: The information needed to construct an IPP - * "printer-resolution" attribute can be obtained by calling + * {@code "printer-resolution"} attribute can be obtained by calling * methods on the PrinterResolution object. The category name returned by - * getName() gives the IPP attribute name. + * {@code getName()} gives the IPP attribute name. * * @author David Mendenhall * @author Alan Kaminsky @@ -81,8 +81,8 @@ * @param feedResolution * Feed direction resolution. * @param units - * Unit conversion factor, e.g. ResolutionSyntax.DPI - * or ResolutionSyntax.DPCM. + * Unit conversion factor, e.g. {@code ResolutionSyntax.DPI} + * or {@code ResolutionSyntax.DPCM}. * * @exception IllegalArgumentException * (unchecked exception) Thrown if {@code crossFeedResolution < 1} or @@ -99,20 +99,20 @@ * must be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class PrinterResolution. + * {@code object} is an instance of class PrinterResolution. *
      3. * This attribute's cross feed direction resolution is equal to - * object's cross feed direction resolution. + * {@code object}'s cross feed direction resolution. *
      4. * This attribute's feed direction resolution is equal to - * object's feed direction resolution. + * {@code object}'s feed direction resolution. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this printer + * @return True if {@code object} is equivalent to this printer * resolution attribute, false otherwise. */ public boolean equals(Object object) { @@ -138,7 +138,7 @@ * instance. *

      * For class PrinterResolution, the - * category name is "printer-resolution". + * category name is {@code "printer-resolution"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/PrinterState.java 2015-10-04 22:56:15.525264636 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/PrinterState.java 2015-10-04 22:56:15.337264644 +0400 @@ -39,8 +39,8 @@ * in given printer state. *

      * IPP Compatibility: The category name returned by - * getName() is the IPP attribute name. The enumeration's - * integer value is the IPP enum value. The toString() method + * {@code getName()} is the IPP attribute name. The enumeration's + * integer value is the IPP enum value. The {@code toString()} method * returns the IPP string representation of the attribute value. * * @author Alan Kaminsky @@ -130,7 +130,7 @@ * Get the name of the category of which this attribute value is an * instance. *

      - * For class PrinterState, the category name is "printer-state". + * For class PrinterState, the category name is {@code "printer-state"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/PrinterStateReason.java 2015-10-04 22:56:16.037264613 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/PrinterStateReason.java 2015-10-04 22:56:15.861264621 +0400 @@ -56,10 +56,10 @@ *

      * IPP Compatibility: * The string values returned by each individual {@link PrinterStateReason} and - * associated {@link Severity} object's toString() - * methods, concatenated together with a hyphen ("-") in + * associated {@link Severity} object's {@code toString()} + * methods, concatenated together with a hyphen ({@code "-"}) in * between, gives the IPP keyword value for a {@link PrinterStateReasons}. - * The category name returned by getName() gives the IPP + * The category name returned by {@code getName()} gives the IPP * attribute name. * * @author Alan Kaminsky @@ -432,7 +432,7 @@ * instance. *

      * For class PrinterStateReason and any vendor-defined subclasses, the - * category name is "printer-state-reason". + * category name is {@code "printer-state-reason"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/PrinterURI.java 2015-10-04 22:56:16.565264589 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/PrinterURI.java 2015-10-04 22:56:16.373264598 +0400 @@ -38,8 +38,8 @@ *

      * IPP Compatibility: This implements the * IPP printer-uri attribute. The string form returned by - * toString() gives the IPP printer-uri value. - * The category name returned by getName() + * {@code toString()} gives the IPP printer-uri value. + * The category name returned by {@code getName()} * gives the IPP attribute name. * * @author Robert Herriot @@ -56,7 +56,7 @@ * @param uri URI of the printer * * @exception NullPointerException - * (unchecked exception) Thrown if uri is null. + * (unchecked exception) Thrown if {@code uri} is null. */ public PrinterURI(URI uri) { super (uri); @@ -68,17 +68,17 @@ * true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class PrinterURI. + * {@code object} is an instance of class PrinterURI. *
      3. * This PrinterURI attribute's underlying URI and - * object's underlying URI are equal. + * {@code object}'s underlying URI are equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this PrinterURI + * @return True if {@code object} is equivalent to this PrinterURI * attribute, false otherwise. */ public boolean equals(Object object) { @@ -104,7 +104,7 @@ * instance. *

      * For class PrinterURI and any vendor-defined subclasses, the category - * name is "printer-uri". + * name is {@code "printer-uri"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/QueuedJobCount.java 2015-10-04 22:56:17.085264566 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/QueuedJobCount.java 2015-10-04 22:56:16.897264574 +0400 @@ -34,7 +34,7 @@ * PENDING, PENDING_HELD, PROCESSING, or PROCESSING_STOPPED. *

      * IPP Compatibility: The integer value gives the IPP integer value. - * The category name returned by getName() gives the IPP + * The category name returned by {@code getName()} gives the IPP * attribute name. * * @author Alan Kaminsky @@ -51,7 +51,7 @@ * @param value Integer value. * * @exception IllegalArgumentException - * (Unchecked exception) Thrown if value is less than 0. + * (Unchecked exception) Thrown if {@code value} is less than 0. */ public QueuedJobCount(int value) { super (value, 0, Integer.MAX_VALUE); @@ -63,17 +63,17 @@ * mus be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class QueuedJobCount. + * {@code object} is an instance of class QueuedJobCount. *
      3. - * This queued job count attribute's value and object's + * This queued job count attribute's value and {@code object}'s * value are equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this queued job + * @return True if {@code object} is equivalent to this queued job * count attribute, false otherwise. */ public boolean equals(Object object) { @@ -99,7 +99,7 @@ * instance. *

      * For class QueuedJobCount, the - * category name is "queued-job-count". + * category name is {@code "queued-job-count"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/ReferenceUriSchemesSupported.java 2015-10-04 22:56:17.609264542 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/ReferenceUriSchemesSupported.java 2015-10-04 22:56:17.433264550 +0400 @@ -32,13 +32,13 @@ * an enumeration, that indicates a "URI scheme," such as "http:" or "ftp:", * that a printer can use to retrieve print data stored at a URI location. * If a printer supports doc flavors with a print data representation class of - * "java.net.URL", the printer uses instances of class + * {@code "java.net.URL"}, the printer uses instances of class * ReferenceUriSchemesSupported to advertise the URI schemes it can accept. * The acceptable URI schemes are included as service attributes in the * lookup service; this lets clients search the * for printers that can get print data using a certain URI scheme. The * acceptable URI schemes can also be queried using the capability methods in - * interface PrintService. However, + * interface {@code PrintService}. However, * ReferenceUriSchemesSupported attributes are used solely for determining * acceptable URI schemes, they are never included in a doc's, * print request's, print job's, or print service's attribute set. @@ -52,8 +52,8 @@ * can define them in a subclass of class ReferenceUriSchemesSupported. *

      * IPP Compatibility: The category name returned by - * getName() is the IPP attribute name. The enumeration's - * integer value is the IPP enum value. The toString() method + * {@code getName()} is the IPP attribute name. The enumeration's + * integer value is the IPP enum value. The {@code toString()} method * returns the IPP string representation of the attribute value. * * @author Alan Kaminsky @@ -171,7 +171,7 @@ *

      * For class ReferenceUriSchemesSupported and any vendor-defined * subclasses, the category name is - * "reference-uri-schemes-supported". + * {@code "reference-uri-schemes-supported"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/RequestingUserName.java 2015-10-04 22:56:18.125264519 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/RequestingUserName.java 2015-10-04 22:56:17.945264527 +0400 @@ -47,7 +47,7 @@ *

      * IPP Compatibility: The string value gives the IPP name value. The * locale gives the IPP natural language. The category name returned by - * getName() gives the IPP attribute name. + * {@code getName()} gives the IPP attribute name. * * @author Alan Kaminsky */ @@ -63,10 +63,10 @@ * @param userName User name. * @param locale Natural language of the text string. null * is interpreted to mean the default locale as returned - * by Locale.getDefault() + * by {@code Locale.getDefault()} * * @exception NullPointerException - * (unchecked exception) Thrown if userName is null. + * (unchecked exception) Thrown if {@code userName} is null. */ public RequestingUserName(String userName, Locale locale) { super (userName, locale); @@ -78,20 +78,20 @@ * conditions must be true: *

        *
      1. - * object is not null. + * {@code object} is not null. *
      2. - * object is an instance of class RequestingUserName. + * {@code object} is an instance of class RequestingUserName. *
      3. * This requesting user name attribute's underlying string and - * object's underlying string are equal. + * {@code object}'s underlying string are equal. *
      4. * This requesting user name attribute's locale and - * object's locale are equal. + * {@code object}'s locale are equal. *
      * * @param object Object to compare to. * - * @return True if object is equivalent to this requesting + * @return True if {@code object} is equivalent to this requesting * user name attribute, false otherwise. */ public boolean equals(Object object) { @@ -118,7 +118,7 @@ * instance. *

      * For class RequestingUserName, the - * category name is "requesting-user-name". + * category name is {@code "requesting-user-name"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/Severity.java 2015-10-04 22:56:18.665264495 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/Severity.java 2015-10-04 22:56:18.477264503 +0400 @@ -50,13 +50,13 @@ * {@link PrinterState PrinterState} also changed. *

      * IPP Compatibility: - * Severity.toString() returns either "error", "warning", or + * {@code Severity.toString()} returns either "error", "warning", or * "report". The string values returned by * each individual {@link PrinterStateReason} and - * associated {@link Severity} object's toString() - * methods, concatenated together with a hyphen ("-") in + * associated {@link Severity} object's {@code toString()} + * methods, concatenated together with a hyphen ({@code "-"}) in * between, gives the IPP keyword value for a {@link PrinterStateReasons}. - * The category name returned by getName() gives the IPP + * The category name returned by {@code getName()} gives the IPP * attribute name. * * @author Alan Kaminsky @@ -146,7 +146,7 @@ * Get the name of the category of which this attribute value is an * instance. *

      - * For class Severit, the category name is "severity". + * For class Severit, the category name is {@code "severity"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/SheetCollate.java 2015-10-04 22:56:19.189264471 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/SheetCollate.java 2015-10-04 22:56:19.001264480 +0400 @@ -222,7 +222,7 @@ * Get the name of the category of which this attribute value is an * instance. *

      - * For class SheetCollate, the category name is "sheet-collate". + * For class SheetCollate, the category name is {@code "sheet-collate"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/attribute/standard/Sides.java 2015-10-04 22:56:19.741264446 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/Sides.java 2015-10-04 22:56:19.521264456 +0400 @@ -110,8 +110,8 @@ * *

      * IPP Compatibility: The category name returned by - * getName() is the IPP attribute name. The enumeration's - * integer value is the IPP enum value. The toString() method + * {@code getName()} is the IPP attribute name. The enumeration's + * integer value is the IPP enum value. The {@code toString()} method * returns the IPP string representation of the attribute value. * * @author Alan Kaminsky @@ -210,7 +210,7 @@ * Get the name of the category of which this attribute value is an * instance. *

      - * For class Sides, the category name is "sides". + * For class Sides, the category name is {@code "sides"}. * * @return Attribute category name. */ --- old/src/java.desktop/share/classes/javax/print/event/PrintEvent.java 2015-10-04 22:56:20.265264423 +0400 +++ new/src/java.desktop/share/classes/javax/print/event/PrintEvent.java 2015-10-04 22:56:20.077264431 +0400 @@ -37,8 +37,8 @@ /** * Constructs a PrintEvent object. * @param source is the source of the event - * @throws IllegalArgumentException if source is - * null. + * @throws IllegalArgumentException if {@code source} is + * {@code null}. */ public PrintEvent (Object source) { super(source); --- old/src/java.desktop/share/classes/javax/print/event/PrintJobAttributeEvent.java 2015-10-04 22:56:20.785264400 +0400 +++ new/src/java.desktop/share/classes/javax/print/event/PrintJobAttributeEvent.java 2015-10-04 22:56:20.597264408 +0400 @@ -45,8 +45,8 @@ * Constructs a PrintJobAttributeEvent object. * @param source the print job generating this event * @param attributes the attribute changes being reported - * @throws IllegalArgumentException if source is - * null. + * @throws IllegalArgumentException if {@code source} is + * {@code null}. */ public PrintJobAttributeEvent (DocPrintJob source, PrintJobAttributeSet attributes) { --- old/src/java.desktop/share/classes/javax/print/event/PrintJobAttributeListener.java 2015-10-04 22:56:21.305264376 +0400 +++ new/src/java.desktop/share/classes/javax/print/event/PrintJobAttributeListener.java 2015-10-04 22:56:21.117264385 +0400 @@ -38,7 +38,7 @@ * One example of an occurrence triggering this event is if the * {@link javax.print.attribute.standard.JobState JobState} * attribute changed from - * PROCESSING to PROCESSING_STOPPED. + * {@code PROCESSING} to {@code PROCESSING_STOPPED}. * @param pjae the event. */ public void attributeUpdate(PrintJobAttributeEvent pjae) ; --- old/src/java.desktop/share/classes/javax/print/event/PrintJobEvent.java 2015-10-04 22:56:21.825264353 +0400 +++ new/src/java.desktop/share/classes/javax/print/event/PrintJobEvent.java 2015-10-04 22:56:21.637264361 +0400 @@ -29,7 +29,7 @@ /** * - * Class PrintJobEvent encapsulates common events a print job + * Class {@code PrintJobEvent} encapsulates common events a print job * reports to let a listener know of progress in the processing of the * {@link DocPrintJob}. * @@ -86,12 +86,12 @@ public static final int DATA_TRANSFER_COMPLETE = 106; /** - * Constructs a PrintJobEvent object. + * Constructs a {@code PrintJobEvent} object. * - * @param source a DocPrintJob object + * @param source a {@code DocPrintJob} object * @param reason an int specifying the reason. - * @throws IllegalArgumentException if source is - * null. + * @throws IllegalArgumentException if {@code source} is + * {@code null}. */ public PrintJobEvent( DocPrintJob source, int reason) { @@ -109,12 +109,12 @@ } /** - * Determines the DocPrintJob to which this print job + * Determines the {@code DocPrintJob} to which this print job * event pertains. * - * @return the DocPrintJob object that represents the + * @return the {@code DocPrintJob} object that represents the * print job that reports the events encapsulated by this - * PrintJobEvent. + * {@code PrintJobEvent}. * */ public DocPrintJob getPrintJob() { --- old/src/java.desktop/share/classes/javax/print/event/PrintServiceAttributeEvent.java 2015-10-04 22:56:22.349264329 +0400 +++ new/src/java.desktop/share/classes/javax/print/event/PrintServiceAttributeEvent.java 2015-10-04 22:56:22.161264338 +0400 @@ -47,8 +47,8 @@ * * @param source the print job generating this event * @param attributes the attribute changes being reported - * @throws IllegalArgumentException if source is - * null. + * @throws IllegalArgumentException if {@code source} is + * {@code null}. */ public PrintServiceAttributeEvent(PrintService source, PrintServiceAttributeSet attributes) { --- old/src/java.desktop/share/classes/javax/swing/AbstractAction.java 2015-10-04 22:56:22.921264304 +0400 +++ new/src/java.desktop/share/classes/javax/swing/AbstractAction.java 2015-10-04 22:56:22.681264314 +0400 @@ -38,11 +38,11 @@ import sun.security.action.GetPropertyAction; /** - * This class provides default implementations for the JFC Action + * This class provides default implementations for the JFC {@code Action} * interface. Standard behaviors like the get and set methods for - * Action object properties (icon, text, and enabled) are defined + * {@code Action} object properties (icon, text, and enabled) are defined * here. The developer need only subclass this abstract class and - * define the actionPerformed method. + * define the {@code actionPerformed} method. *

      * Warning: * Serialized objects of this class will not be compatible with @@ -50,7 +50,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. * * @author Georges Saab @@ -155,11 +155,11 @@ } /** - * Gets the Object associated with the specified key. + * Gets the {@code Object} associated with the specified key. * - * @param key a string containing the specified key - * @return the binding Object stored with this key; if there - * are no keys, it will return null + * @param key a string containing the specified {@code key} + * @return the binding {@code Object} stored with this key; if there + * are no keys, it will return {@code null} * @see Action#getValue */ public Object getValue(String key) { @@ -173,10 +173,10 @@ } /** - * Sets the Value associated with the specified key. + * Sets the {@code Value} associated with the specified key. * - * @param key the String that identifies the stored object - * @param newValue the Object to store using this key + * @param key the {@code String} that identifies the stored object + * @param newValue the {@code Object} to store using this key * @see Action#putValue */ public void putValue(String key, Object newValue) { @@ -242,10 +242,10 @@ /** - * Returns an array of Objects which are keys for - * which values have been set for this AbstractAction, - * or null if no keys have values set. - * @return an array of key objects, or null if no + * Returns an array of {@code Object}s which are keys for + * which values have been set for this {@code AbstractAction}, + * or {@code null} if no keys have values set. + * @return an array of key objects, or {@code null} if no * keys have values set * @since 1.3 */ @@ -259,16 +259,16 @@ } /** - * If any PropertyChangeListeners have been registered, the - * changeSupport field describes them. + * If any {@code PropertyChangeListeners} have been registered, the + * {@code changeSupport} field describes them. */ protected SwingPropertyChangeSupport changeSupport; /** * Supports reporting bound property changes. This method can be called * when a bound property has changed and it will send the appropriate - * PropertyChangeEvent to any registered - * PropertyChangeListeners. + * {@code PropertyChangeEvent} to any registered + * {@code PropertyChangeListeners}. * * @param propertyName the name of the property that has changed * @param oldValue the old value of the property @@ -284,17 +284,17 @@ /** - * Adds a PropertyChangeListener to the listener list. + * Adds a {@code PropertyChangeListener} to the listener list. * The listener is registered for all properties. *

      - * A PropertyChangeEvent will get fired in response to setting - * a bound property, e.g. setFont, setBackground, - * or setForeground. + * A {@code PropertyChangeEvent} will get fired in response to setting + * a bound property, e.g. {@code setFont}, {@code setBackground}, + * or {@code setForeground}. * Note that if the current component is inheriting its foreground, * background, or font from its container, then no event will be * fired in response to a change in the inherited property. * - * @param listener The PropertyChangeListener to be added + * @param listener The {@code PropertyChangeListener} to be added * * @see Action#addPropertyChangeListener */ @@ -307,11 +307,11 @@ /** - * Removes a PropertyChangeListener from the listener list. - * This removes a PropertyChangeListener that was registered + * Removes a {@code PropertyChangeListener} from the listener list. + * This removes a {@code PropertyChangeListener} that was registered * for all properties. * - * @param listener the PropertyChangeListener to be removed + * @param listener the {@code PropertyChangeListener} to be removed * * @see Action#removePropertyChangeListener */ @@ -324,10 +324,10 @@ /** - * Returns an array of all the PropertyChangeListeners added + * Returns an array of all the {@code PropertyChangeListener}s added * to this AbstractAction with addPropertyChangeListener(). * - * @return all of the PropertyChangeListeners added or an empty + * @return all of the {@code PropertyChangeListener}s added or an empty * array if no listeners have been added * @since 1.4 */ @@ -342,7 +342,7 @@ /** * Clones the abstract action. This gives the clone * its own copy of the key/value list, - * which is not handled for you by Object.clone(). + * which is not handled for you by {@code Object.clone()}. **/ protected Object clone() throws CloneNotSupportedException { --- old/src/java.desktop/share/classes/javax/swing/AbstractButton.java 2015-10-04 22:56:23.449264280 +0400 +++ new/src/java.desktop/share/classes/javax/swing/AbstractButton.java 2015-10-04 22:56:23.261264288 +0400 @@ -49,9 +49,9 @@ *

      * Buttons can be configured, and to some degree controlled, by * Actions. Using an - * Action with a button has many benefits beyond directly + * {@code Action} with a button has many benefits beyond directly * configuring a button. Refer to - * Swing Components Supporting Action for more + * Swing Components Supporting {@code Action} for more * details, and you can find more information in How * to Use Actions, a section in The Java Tutorial. @@ -67,7 +67,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. * * @author Jeff Dinkins @@ -216,20 +216,20 @@ private Handler handler; /** - * The button model's changeListener. + * The button model's {@code changeListener}. */ protected ChangeListener changeListener = null; /** - * The button model's ActionListener. + * The button model's {@code ActionListener}. */ protected ActionListener actionListener = null; /** - * The button model's ItemListener. + * The button model's {@code ItemListener}. */ protected ItemListener itemListener = null; /** - * Only one ChangeEvent is needed per button + * Only one {@code ChangeEvent} is needed per button * instance since the * event's only state is the source property. The source of events * generated is always "this". @@ -239,15 +239,15 @@ private boolean hideActionText = false; /** - * Sets the hideActionText property, which determines - * whether the button displays text from the Action. - * This is useful only if an Action has been + * Sets the {@code hideActionText} property, which determines + * whether the button displays text from the {@code Action}. + * This is useful only if an {@code Action} has been * installed on the button. * - * @param hideActionText true if the button's - * text property should not reflect - * that of the Action; the default is - * false + * @param hideActionText {@code true} if the button's + * {@code text} property should not reflect + * that of the {@code Action}; the default is + * {@code false} * @see Swing Components Supporting * Action * @since 1.6 @@ -255,7 +255,7 @@ * bound: true * expert: true * description: Whether the text of the button should come from - * the Action. + * the {@code Action}. */ public void setHideActionText(boolean hideActionText) { if (hideActionText != this.hideActionText) { @@ -269,14 +269,14 @@ } /** - * Returns the value of the hideActionText property, which + * Returns the value of the {@code hideActionText} property, which * determines whether the button displays text from the - * Action. This is useful only if an Action + * {@code Action}. This is useful only if an {@code Action} * has been installed on the button. * - * @return true if the button's text + * @return {@code true} if the button's {@code text} * property should not reflect that of the - * Action; the default is false + * {@code Action}; the default is {@code false} * @since 1.6 */ public boolean getHideActionText() { @@ -331,8 +331,8 @@ /** * Sets the state of the button. Note that this method does not - * trigger an actionEvent. - * Call doClick to perform a programmatic action change. + * trigger an {@code actionEvent}. + * Call {@code doClick} to perform a programmatic action change. * * @param b true if the button is selected, otherwise false */ @@ -361,7 +361,7 @@ /** * Programmatically perform a "click". This does the same * thing as if the user had pressed and released the button. - * The button stays visually "pressed" for pressTime + * The button stays visually "pressed" for {@code pressTime} * milliseconds. * * @param pressTime the time to "hold down" the button, in milliseconds @@ -381,11 +381,11 @@ /** * Sets space for margin between the button's border and - * the label. Setting to null will cause the button to - * use the default margin. The button's default Border + * the label. Setting to {@code null} will cause the button to + * use the default margin. The button's default {@code Border} * object will use this value to create the proper margin. * However, if a non-default border is set on the button, - * it is that Border object's responsibility to create the + * it is that {@code Border} object's responsibility to create the * appropriate margin space (else this property will * effectively be ignored). * @@ -423,7 +423,7 @@ * Returns the margin between the button's border and * the label. * - * @return an Insets object specifying the margin + * @return an {@code Insets} object specifying the margin * between the botton's border and the label * @see #setMargin */ @@ -433,7 +433,7 @@ /** * Returns the default icon. - * @return the default Icon + * @return the default {@code Icon} * @see #setIcon */ public Icon getIcon() { @@ -484,7 +484,7 @@ /** * Returns the pressed icon for the button. - * @return the pressedIcon property + * @return the {@code pressedIcon} property * @see #setPressedIcon */ public Icon getPressedIcon() { @@ -518,7 +518,7 @@ /** * Returns the selected icon for the button. - * @return the selectedIcon property + * @return the {@code selectedIcon} property * @see #setSelectedIcon */ public Icon getSelectedIcon() { @@ -564,7 +564,7 @@ /** * Returns the rollover icon for the button. - * @return the rolloverIcon property + * @return the {@code rolloverIcon} property * @see #setRolloverIcon */ public Icon getRolloverIcon() { @@ -600,7 +600,7 @@ /** * Returns the rollover selection icon for the button. - * @return the rolloverSelectedIcon property + * @return the {@code rolloverSelectedIcon} property * @see #setRolloverSelectedIcon */ public Icon getRolloverSelectedIcon() { @@ -644,7 +644,7 @@ * Some look and feels might not render the disabled Icon, in which * case they will ignore this. * - * @return the disabledIcon property + * @return the {@code disabledIcon} property * @see #getPressedIcon * @see #setDisabledIcon * @see javax.swing.LookAndFeel#getDisabledIcon @@ -690,12 +690,12 @@ * If no disabled selection icon has been set, this will forward * the call to the LookAndFeel to construct an appropriate disabled * Icon from the selection icon if it has been set and to - * getDisabledIcon() otherwise. + * {@code getDisabledIcon()} otherwise. *

      * Some look and feels might not render the disabled selected Icon, in * which case they will ignore this. * - * @return the disabledSelectedIcon property + * @return the {@code disabledSelectedIcon} property * @see #getDisabledIcon * @see #setDisabledSelectedIcon * @see javax.swing.LookAndFeel#getDisabledSelectedIcon @@ -746,7 +746,7 @@ /** * Returns the vertical alignment of the text and icon. * - * @return the verticalAlignment property, one of the + * @return the {@code verticalAlignment} property, one of the * following values: *

      *

      - * It is entirely valid for this Printable to be wrapped + * It is entirely valid for this {@code Printable} to be wrapped * inside another in order to create complex reports and documents. You may * even request that different pages be rendered into different sized * printable areas. The implementation must be prepared to handle this * (possibly by doing its layout calculations on the fly). However, * providing different heights to each page will likely not work well - * with PrintMode.NORMAL when it has to spread columns + * with {@code PrintMode.NORMAL} when it has to spread columns * across pages. *

      * As far as customizing how the table looks in the printed result, - * JTable itself will take care of hiding the selection + * {@code JTable} itself will take care of hiding the selection * and focus during printing. For additional customizations, your * renderers or painting code can customize the look based on the value * of {@link javax.swing.JComponent#isPaintingForPrint()} @@ -6518,17 +6518,17 @@ * Also, before calling this method you may wish to first * modify the state of the table, such as to cancel cell editing or * have the user size the table appropriately. However, you must not - * modify the state of the table after this Printable + * modify the state of the table after this {@code Printable} * has been fetched (invalid modifications include changes in size or - * underlying data). The behavior of the returned Printable + * underlying data). The behavior of the returned {@code Printable} * is undefined once the table has been changed. * * @param printMode the printing mode that the printable should use - * @param headerFormat a MessageFormat specifying the text to + * @param headerFormat a {@code MessageFormat} specifying the text to * be used in printing a header, or null for none - * @param footerFormat a MessageFormat specifying the text to + * @param footerFormat a {@code MessageFormat} specifying the text to * be used in printing a footer, or null for none - * @return a Printable for printing this JTable + * @return a {@code Printable} for printing this JTable * @see #print(JTable.PrintMode, MessageFormat, MessageFormat, * boolean, PrintRequestAttributeSet, boolean) * @see Printable @@ -6545,12 +6545,12 @@ /** - * A Printable implementation that wraps another - * Printable, making it safe for printing on another thread. + * A {@code Printable} implementation that wraps another + * {@code Printable}, making it safe for printing on another thread. */ private class ThreadSafePrintable implements Printable { - /** The delegate Printable. */ + /** The delegate {@code Printable}. */ private Printable printDelegate; /** @@ -6559,15 +6559,15 @@ private int retVal; /** - * To communicate any Throwable when delegating. + * To communicate any {@code Throwable} when delegating. */ private Throwable retThrowable; /** - * Construct a ThreadSafePrintable around the given + * Construct a {@code ThreadSafePrintable} around the given * delegate. * - * @param printDelegate the Printable to delegate to + * @param printDelegate the {@code Printable} to delegate to */ public ThreadSafePrintable(Printable printDelegate) { this.printDelegate = printDelegate; @@ -6669,7 +6669,7 @@ // /** * This class implements accessibility support for the - * JTable class. It provides an implementation of the + * {@code JTable} class. It provides an implementation of the * Java Accessibility API appropriate to table user-interface elements. *

      * Warning: @@ -6678,7 +6678,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. */ @SuppressWarnings("serial") // Same-version serialization only @@ -7119,14 +7119,14 @@ } /** - * Returns the Accessible child, if one exists, - * contained at the local coordinate Point. + * Returns the {@code Accessible} child, if one exists, + * contained at the local coordinate {@code Point}. * * @param p the point defining the top-left corner of the - * Accessible, given in the coordinate space + * {@code Accessible}, given in the coordinate space * of the object's parent - * @return the Accessible, if it exists, - * at the specified location; else null + * @return the {@code Accessible}, if it exists, + * at the specified location; else {@code null} */ public Accessible getAccessibleAt(Point p) { int column = columnAtPoint(p); @@ -7150,7 +7150,7 @@ /** * Returns the number of accessible children in the object. If all - * of the children of this object implement Accessible, + * of the children of this object implement {@code Accessible}, * then this method should return the number of children of this object. * * @return the number of accessible children in the object @@ -7160,7 +7160,7 @@ } /** - * Returns the nth Accessible child of the object. + * Returns the nth {@code Accessible} child of the object. * * @param i zero-based index of child * @return the nth Accessible child of the object @@ -7191,7 +7191,7 @@ // AccessibleSelection support /** - * Returns the number of Accessible children + * Returns the number of {@code Accessible} children * currently selected. * If no children are selected, the return value will be 0. * @@ -7227,11 +7227,11 @@ } /** - * Returns an Accessible representing the + * Returns an {@code Accessible} representing the * specified selected child in the object. If there * isn't a selection, or there are fewer children selected * than the integer passed in, the return - * value will be null. + * value will be {@code null}. *

      Note that the index represents the i-th selected child, which * is different from the i-th child. * @@ -7361,7 +7361,7 @@ * Determines if the current child of this object is selected. * * @param i the zero-based index of the child in this - * Accessible object + * {@code Accessible} object * @return true if the current child of this object is selected * @see AccessibleContext#getAccessibleChild */ @@ -7372,14 +7372,14 @@ } /** - * Adds the specified Accessible child of the + * Adds the specified {@code Accessible} child of the * object to the object's selection. If the object supports * multiple selections, the specified child is added to * any existing selection, otherwise * it replaces any existing selection in the object. If the * specified child is already selected, this method has no effect. *

      - * This method only works on JTables which have + * This method only works on {@code JTable}s which have * individual cell selection enabled. * * @param i the zero-based index of the child @@ -7397,7 +7397,7 @@ * selection. If the specified item isn't currently selected, this * method has no effect. *

      - * This method only works on JTables which have + * This method only works on {@code JTables} which have * individual cell selection enabled. * * @param i the zero-based index of the child @@ -7422,7 +7422,7 @@ /** * Causes every child of the object to be selected, but only - * if the JTable supports multiple selections, + * if the {@code JTable} supports multiple selections, * and if individual cell selection is enabled. */ public void selectAllAccessibleSelection() { @@ -7480,10 +7480,10 @@ private Accessible [] columnDescription; /** - * Gets the AccessibleTable associated with this + * Gets the {@code AccessibleTable} associated with this * object. In the implementation of the Java Accessibility * API for this class, return this object, which is responsible - * for implementing the AccessibleTables interface + * for implementing the {@code AccessibleTables} interface * on behalf of itself. * * @return this object @@ -7558,12 +7558,12 @@ } /* - * Returns the Accessible at a specified row + * Returns the {@code Accessible} at a specified row * and column in the table. * * @param r zero-based row of the table * @param c zero-based column of the table - * @return the Accessible at the specified row and column + * @return the {@code Accessible} at the specified row and column * in the table */ public Accessible getAccessibleAt(int r, int c) { @@ -7571,10 +7571,10 @@ } /** - * Returns the number of rows occupied by the Accessible + * Returns the number of rows occupied by the {@code Accessible} * at a specified row and column in the table. * - * @return the number of rows occupied by the Accessible + * @return the number of rows occupied by the {@code Accessible} * at a specified row and column in the table * @since 1.3 */ @@ -7584,9 +7584,9 @@ /** * Returns the number of columns occupied by the - * Accessible at a given (row, column). + * {@code Accessible} at a given (row, column). * - * @return the number of columns occupied by the Accessible + * @return the number of columns occupied by the {@code Accessible} * at a specified row and column in the table * @since 1.3 */ @@ -7595,9 +7595,9 @@ } /** - * Returns the row headers as an AccessibleTable. + * Returns the row headers as an {@code AccessibleTable}. * - * @return an AccessibleTable representing the row + * @return an {@code AccessibleTable} representing the row * headers * @since 1.3 */ @@ -7607,9 +7607,9 @@ } /** - * Sets the row headers as an AccessibleTable. + * Sets the row headers as an {@code AccessibleTable}. * - * @param a an AccessibleTable representing the row + * @param a an {@code AccessibleTable} representing the row * headers * @since 1.3 */ @@ -7618,11 +7618,11 @@ } /** - * Returns the column headers as an AccessibleTable. + * Returns the column headers as an {@code AccessibleTable}. * - * @return an AccessibleTable representing the column - * headers, or null if the table header is - * null + * @return an {@code AccessibleTable} representing the column + * headers, or {@code null} if the table header is + * {@code null} * @since 1.3 */ public AccessibleTable getAccessibleColumnHeader() { @@ -7857,9 +7857,9 @@ /** - * Sets the column headers as an AccessibleTable. + * Sets the column headers as an {@code AccessibleTable}. * - * @param a an AccessibleTable representing the + * @param a an {@code AccessibleTable} representing the * column headers * @since 1.3 */ @@ -8060,7 +8060,7 @@ private int index; /** - * Constructs an AccessibleJTableHeaderEntry. + * Constructs an {@code AccessibleJTableHeaderEntry}. * * @param t a {@code JTable} * @param r an {@code int} specifying a row @@ -8077,10 +8077,10 @@ } /** - * Gets the AccessibleContext associated with this + * Gets the {@code AccessibleContext} associated with this * component. In the implementation of the Java Accessibility * API for this class, return this object, which is its own - * AccessibleContext. + * {@code AccessibleContext}. * * @return this object */ @@ -8091,9 +8091,9 @@ /** * Gets the AccessibleContext for the table cell renderer. * - * @return the AccessibleContext for the table + * @return the {@code AccessibleContext} for the table * cell renderer if one exists; - * otherwise, returns null. + * otherwise, returns {@code null}. * @since 1.6 */ protected AccessibleContext getCurrentAccessibleContext() { @@ -8117,7 +8117,7 @@ * Gets the table cell renderer component. * * @return the table cell renderer component if one exists; - * otherwise, returns null. + * otherwise, returns {@code null}. * @since 1.6 */ protected Component getCurrentComponent() { @@ -8137,7 +8137,7 @@ /** * Gets the accessible name of this object. * - * @return the localized name of the object; null + * @return the localized name of the object; {@code null} * if this object does not have a name */ public String getAccessibleName() { @@ -8178,7 +8178,7 @@ * Gets the accessible description of this object. * * @return the localized description of the object; - * null if this object does not have + * {@code null} if this object does not have * a description */ public String getAccessibleDescription() { @@ -8207,7 +8207,7 @@ /** * Gets the role of this object. * - * @return an instance of AccessibleRole + * @return an instance of {@code AccessibleRole} * describing the role of the object * @see AccessibleRole */ @@ -8223,7 +8223,7 @@ /** * Gets the state set of this object. * - * @return an instance of AccessibleStateSet + * @return an instance of {@code AccessibleStateSet} * containing the current state set of the object * @see AccessibleState */ @@ -8259,11 +8259,11 @@ } /** - * Gets the Accessible parent of this object. + * Gets the {@code Accessible} parent of this object. * * @return the Accessible parent of this object; - * null if this object does not - * have an Accessible parent + * {@code null} if this object does not + * have an {@code Accessible} parent */ public Accessible getAccessibleParent() { return parent; @@ -8295,11 +8295,11 @@ } /** - * Returns the specified Accessible child of the + * Returns the specified {@code Accessible} child of the * object. * * @param i zero-based index of child - * @return the Accessible child of the object + * @return the {@code Accessible} child of the object */ public Accessible getAccessibleChild(int i) { AccessibleContext ac = getCurrentAccessibleContext(); @@ -8320,7 +8320,7 @@ * @return this component's locale; if this component does * not have a locale, the locale of its parent is returned * @exception IllegalComponentStateException if the - * Component does not have its own locale + * {@code Component} does not have its own locale * and has not yet been added to a containment hierarchy * such that the locale can be determined from the * containing parent @@ -8336,10 +8336,10 @@ } /** - * Adds a PropertyChangeListener to the listener list. + * Adds a {@code PropertyChangeListener} to the listener list. * The listener is registered for all properties. * - * @param l the PropertyChangeListener + * @param l the {@code PropertyChangeListener} * to be added */ public void addPropertyChangeListener(PropertyChangeListener l) { @@ -8352,11 +8352,11 @@ } /** - * Removes a PropertyChangeListener from the - * listener list. This removes a PropertyChangeListener + * Removes a {@code PropertyChangeListener} from the + * listener list. This removes a {@code PropertyChangeListener} * that was registered for all properties. * - * @param l the PropertyChangeListener + * @param l the {@code PropertyChangeListener} * to be removed */ public void removePropertyChangeListener(PropertyChangeListener l) { @@ -8369,52 +8369,52 @@ } /** - * Gets the AccessibleAction associated with this - * object if one exists. Otherwise returns null. + * Gets the {@code AccessibleAction} associated with this + * object if one exists. Otherwise returns {@code null}. * - * @return the AccessibleAction, or null + * @return the {@code AccessibleAction}, or {@code null} */ public AccessibleAction getAccessibleAction() { return getCurrentAccessibleContext().getAccessibleAction(); } /** - * Gets the AccessibleComponent associated with - * this object if one exists. Otherwise returns null. + * Gets the {@code AccessibleComponent} associated with + * this object if one exists. Otherwise returns {@code null}. * - * @return the AccessibleComponent, or - * null + * @return the {@code AccessibleComponent}, or + * {@code null} */ public AccessibleComponent getAccessibleComponent() { return this; // to override getBounds() } /** - * Gets the AccessibleSelection associated with - * this object if one exists. Otherwise returns null. + * Gets the {@code AccessibleSelection} associated with + * this object if one exists. Otherwise returns {@code null}. * - * @return the AccessibleSelection, or - * null + * @return the {@code AccessibleSelection}, or + * {@code null} */ public AccessibleSelection getAccessibleSelection() { return getCurrentAccessibleContext().getAccessibleSelection(); } /** - * Gets the AccessibleText associated with this - * object if one exists. Otherwise returns null. + * Gets the {@code AccessibleText} associated with this + * object if one exists. Otherwise returns {@code null}. * - * @return the AccessibleText, or null + * @return the {@code AccessibleText}, or {@code null} */ public AccessibleText getAccessibleText() { return getCurrentAccessibleContext().getAccessibleText(); } /** - * Gets the AccessibleValue associated with - * this object if one exists. Otherwise returns null. + * Gets the {@code AccessibleValue} associated with + * this object if one exists. Otherwise returns {@code null}. * - * @return the AccessibleValue, or null + * @return the {@code AccessibleValue}, or {@code null} */ public AccessibleValue getAccessibleValue() { return getCurrentAccessibleContext().getAccessibleValue(); @@ -8427,7 +8427,7 @@ * Gets the background color of this object. * * @return the background color, if supported, of the object; - * otherwise, null + * otherwise, {@code null} */ public Color getBackground() { AccessibleContext ac = getCurrentAccessibleContext(); @@ -8446,7 +8446,7 @@ /** * Sets the background color of this object. * - * @param c the new Color for the background + * @param c the new {@code Color} for the background */ public void setBackground(Color c) { AccessibleContext ac = getCurrentAccessibleContext(); @@ -8464,7 +8464,7 @@ * Gets the foreground color of this object. * * @return the foreground color, if supported, of the object; - * otherwise, null + * otherwise, {@code null} */ public Color getForeground() { AccessibleContext ac = getCurrentAccessibleContext(); @@ -8483,7 +8483,7 @@ /** * Sets the foreground color of this object. * - * @param c the new Color for the foreground + * @param c the new {@code Color} for the foreground */ public void setForeground(Color c) { AccessibleContext ac = getCurrentAccessibleContext(); @@ -8498,10 +8498,10 @@ } /** - * Gets the Cursor of this object. + * Gets the {@code Cursor} of this object. * - * @return the Cursor, if supported, - * of the object; otherwise, null + * @return the {@code Cursor}, if supported, + * of the object; otherwise, {@code null} */ public Cursor getCursor() { AccessibleContext ac = getCurrentAccessibleContext(); @@ -8523,9 +8523,9 @@ } /** - * Sets the Cursor of this object. + * Sets the {@code Cursor} of this object. * - * @param c the new Cursor for the object + * @param c the new {@code Cursor} for the object */ public void setCursor(Cursor c) { AccessibleContext ac = getCurrentAccessibleContext(); @@ -8540,10 +8540,10 @@ } /** - * Gets the Font of this object. + * Gets the {@code Font} of this object. * - * @return the Font,if supported, - * for the object; otherwise, null + * @return the {@code Font},if supported, + * for the object; otherwise, {@code null} */ public Font getFont() { AccessibleContext ac = getCurrentAccessibleContext(); @@ -8560,9 +8560,9 @@ } /** - * Sets the Font of this object. + * Sets the {@code Font} of this object. * - * @param f the new Font for the object + * @param f the new {@code Font} for the object */ public void setFont(Font f) { AccessibleContext ac = getCurrentAccessibleContext(); @@ -8577,11 +8577,11 @@ } /** - * Gets the FontMetrics of this object. + * Gets the {@code FontMetrics} of this object. * - * @param f the Font - * @return the FontMetrics object, if supported; - * otherwise null + * @param f the {@code Font} + * @return the {@code FontMetrics} object, if supported; + * otherwise {@code null} * @see #getFont */ public FontMetrics getFontMetrics(Font f) { @@ -8639,7 +8639,7 @@ * object intends to be visible; however, it may not in fact be * showing on the screen because one of the objects that this object * is contained by is not visible. To determine if an object is - * showing on the screen, use isShowing. + * showing on the screen, use {@code isShowing}. * * @return true if object is visible; otherwise, false */ @@ -8710,9 +8710,9 @@ * are defined to be relative to the coordinate system of * the object. * - * @param p the Point relative to the + * @param p the {@code Point} relative to the * coordinate system of the object - * @return true if object contains Point; + * @return true if object contains {@code Point}; * otherwise false */ public boolean contains(Point p) { @@ -8735,7 +8735,7 @@ * Returns the location of the object on the screen. * * @return location of object on screen -- can be - * null if this object is not on the screen + * {@code null} if this object is not on the screen */ public Point getLocationOnScreen() { if (parent != null && parent.isShowing()) { @@ -8753,9 +8753,9 @@ * in the form of a point specifying the object's * top-left corner in the screen's coordinate space. * - * @return an instance of Point representing + * @return an instance of {@code Point} representing * the top-left corner of the object's bounds in the - * coordinate space of the screen; null if + * coordinate space of the screen; {@code null} if * this object or its parent are not on the screen */ public Point getLocation() { @@ -8895,7 +8895,7 @@ private Component rendererComponent; /** - * Constructs an AccessibleJTableHeaderEntry instance. + * Constructs an {@code AccessibleJTableHeaderEntry} instance. * * @param row header cell row index * @param column header cell column index @@ -8913,10 +8913,10 @@ } /** - * Gets the AccessibleContext associated with this + * Gets the {@code AccessibleContext} associated with this * component. In the implementation of the Java Accessibility * API for this class, return this object, which is its own - * AccessibleContext. + * {@code AccessibleContext}. * * @return this object */ @@ -8944,7 +8944,7 @@ /** * Gets the accessible name of this object. * - * @return the localized name of the object; null + * @return the localized name of the object; {@code null} * if this object does not have a name */ public String getAccessibleName() { @@ -8980,7 +8980,7 @@ * Gets the accessible description of this object. * * @return the localized description of the object; - * null if this object does not have + * {@code null} if this object does not have * a description */ public String getAccessibleDescription() { @@ -9009,7 +9009,7 @@ /** * Gets the role of this object. * - * @return an instance of AccessibleRole + * @return an instance of {@code AccessibleRole} * describing the role of the object * @see AccessibleRole */ @@ -9025,7 +9025,7 @@ /** * Gets the state set of this object. * - * @return an instance of AccessibleStateSet + * @return an instance of {@code AccessibleStateSet} * containing the current state set of the object * @see AccessibleState */ @@ -9061,11 +9061,11 @@ } /** - * Gets the Accessible parent of this object. + * Gets the {@code Accessible} parent of this object. * * @return the Accessible parent of this object; - * null if this object does not - * have an Accessible parent + * {@code null} if this object does not + * have an {@code Accessible} parent */ public Accessible getAccessibleParent() { return parent; @@ -9097,11 +9097,11 @@ } /** - * Returns the specified Accessible child of the + * Returns the specified {@code Accessible} child of the * object. * * @param i zero-based index of child - * @return the Accessible child of the object + * @return the {@code Accessible} child of the object */ public Accessible getAccessibleChild(int i) { AccessibleContext ac = getCurrentAccessibleContext(); @@ -9122,7 +9122,7 @@ * @return this component's locale; if this component does * not have a locale, the locale of its parent is returned * @exception IllegalComponentStateException if the - * Component does not have its own locale + * {@code Component} does not have its own locale * and has not yet been added to a containment hierarchy * such that the locale can be determined from the * containing parent @@ -9138,10 +9138,10 @@ } /** - * Adds a PropertyChangeListener to the listener list. + * Adds a {@code PropertyChangeListener} to the listener list. * The listener is registered for all properties. * - * @param l the PropertyChangeListener + * @param l the {@code PropertyChangeListener} * to be added */ public void addPropertyChangeListener(PropertyChangeListener l) { @@ -9154,11 +9154,11 @@ } /** - * Removes a PropertyChangeListener from the - * listener list. This removes a PropertyChangeListener + * Removes a {@code PropertyChangeListener} from the + * listener list. This removes a {@code PropertyChangeListener} * that was registered for all properties. * - * @param l the PropertyChangeListener + * @param l the {@code PropertyChangeListener} * to be removed */ public void removePropertyChangeListener(PropertyChangeListener l) { @@ -9171,52 +9171,52 @@ } /** - * Gets the AccessibleAction associated with this - * object if one exists. Otherwise returns null. + * Gets the {@code AccessibleAction} associated with this + * object if one exists. Otherwise returns {@code null}. * - * @return the AccessibleAction, or null + * @return the {@code AccessibleAction}, or {@code null} */ public AccessibleAction getAccessibleAction() { return getCurrentAccessibleContext().getAccessibleAction(); } /** - * Gets the AccessibleComponent associated with - * this object if one exists. Otherwise returns null. + * Gets the {@code AccessibleComponent} associated with + * this object if one exists. Otherwise returns {@code null}. * - * @return the AccessibleComponent, or - * null + * @return the {@code AccessibleComponent}, or + * {@code null} */ public AccessibleComponent getAccessibleComponent() { return this; // to override getBounds() } /** - * Gets the AccessibleSelection associated with - * this object if one exists. Otherwise returns null. + * Gets the {@code AccessibleSelection} associated with + * this object if one exists. Otherwise returns {@code null}. * - * @return the AccessibleSelection, or - * null + * @return the {@code AccessibleSelection}, or + * {@code null} */ public AccessibleSelection getAccessibleSelection() { return getCurrentAccessibleContext().getAccessibleSelection(); } /** - * Gets the AccessibleText associated with this - * object if one exists. Otherwise returns null. + * Gets the {@code AccessibleText} associated with this + * object if one exists. Otherwise returns {@code null}. * - * @return the AccessibleText, or null + * @return the {@code AccessibleText}, or {@code null} */ public AccessibleText getAccessibleText() { return getCurrentAccessibleContext().getAccessibleText(); } /** - * Gets the AccessibleValue associated with - * this object if one exists. Otherwise returns null. + * Gets the {@code AccessibleValue} associated with + * this object if one exists. Otherwise returns {@code null}. * - * @return the AccessibleValue, or null + * @return the {@code AccessibleValue}, or {@code null} */ public AccessibleValue getAccessibleValue() { return getCurrentAccessibleContext().getAccessibleValue(); @@ -9229,7 +9229,7 @@ * Gets the background color of this object. * * @return the background color, if supported, of the object; - * otherwise, null + * otherwise, {@code null} */ public Color getBackground() { AccessibleContext ac = getCurrentAccessibleContext(); @@ -9248,7 +9248,7 @@ /** * Sets the background color of this object. * - * @param c the new Color for the background + * @param c the new {@code Color} for the background */ public void setBackground(Color c) { AccessibleContext ac = getCurrentAccessibleContext(); @@ -9266,7 +9266,7 @@ * Gets the foreground color of this object. * * @return the foreground color, if supported, of the object; - * otherwise, null + * otherwise, {@code null} */ public Color getForeground() { AccessibleContext ac = getCurrentAccessibleContext(); @@ -9285,7 +9285,7 @@ /** * Sets the foreground color of this object. * - * @param c the new Color for the foreground + * @param c the new {@code Color} for the foreground */ public void setForeground(Color c) { AccessibleContext ac = getCurrentAccessibleContext(); @@ -9300,10 +9300,10 @@ } /** - * Gets the Cursor of this object. + * Gets the {@code Cursor} of this object. * - * @return the Cursor, if supported, - * of the object; otherwise, null + * @return the {@code Cursor}, if supported, + * of the object; otherwise, {@code null} */ public Cursor getCursor() { AccessibleContext ac = getCurrentAccessibleContext(); @@ -9325,9 +9325,9 @@ } /** - * Sets the Cursor of this object. + * Sets the {@code Cursor} of this object. * - * @param c the new Cursor for the object + * @param c the new {@code Cursor} for the object */ public void setCursor(Cursor c) { AccessibleContext ac = getCurrentAccessibleContext(); @@ -9342,10 +9342,10 @@ } /** - * Gets the Font of this object. + * Gets the {@code Font} of this object. * - * @return the Font,if supported, - * for the object; otherwise, null + * @return the {@code Font},if supported, + * for the object; otherwise, {@code null} */ public Font getFont() { AccessibleContext ac = getCurrentAccessibleContext(); @@ -9362,9 +9362,9 @@ } /** - * Sets the Font of this object. + * Sets the {@code Font} of this object. * - * @param f the new Font for the object + * @param f the new {@code Font} for the object */ public void setFont(Font f) { AccessibleContext ac = getCurrentAccessibleContext(); @@ -9379,11 +9379,11 @@ } /** - * Gets the FontMetrics of this object. + * Gets the {@code FontMetrics} of this object. * - * @param f the Font - * @return the FontMetrics object, if supported; - * otherwise null + * @param f the {@code Font} + * @return the {@code FontMetrics} object, if supported; + * otherwise {@code null} * @see #getFont */ public FontMetrics getFontMetrics(Font f) { @@ -9441,7 +9441,7 @@ * object intends to be visible; however, it may not in fact be * showing on the screen because one of the objects that this object * is contained by is not visible. To determine if an object is - * showing on the screen, use isShowing. + * showing on the screen, use {@code isShowing}. * * @return true if object is visible; otherwise, false */ @@ -9512,9 +9512,9 @@ * are defined to be relative to the coordinate system of * the object. * - * @param p the Point relative to the + * @param p the {@code Point} relative to the * coordinate system of the object - * @return true if object contains Point; + * @return true if object contains {@code Point}; * otherwise false */ public boolean contains(Point p) { @@ -9537,7 +9537,7 @@ * Returns the location of the object on the screen. * * @return location of object on screen -- can be - * null if this object is not on the screen + * {@code null} if this object is not on the screen */ public Point getLocationOnScreen() { if (parent != null && parent.isShowing()) { @@ -9555,9 +9555,9 @@ * in the form of a point specifying the object's * top-left corner in the screen's coordinate space. * - * @return an instance of Point representing + * @return an instance of {@code Point} representing * the top-left corner of the object's bounds in the - * coordinate space of the screen; null if + * coordinate space of the screen; {@code null} if * this object or its parent are not on the screen */ public Point getLocation() { --- old/src/java.desktop/share/classes/javax/swing/JTextArea.java 2015-10-04 22:57:02.077262545 +0400 +++ new/src/java.desktop/share/classes/javax/swing/JTextArea.java 2015-10-04 22:57:01.889262554 +0400 @@ -39,9 +39,9 @@ import java.io.IOException; /** - * A JTextArea is a multi-line area that displays plain text. + * A {@code JTextArea} is a multi-line area that displays plain text. * It is intended to be a lightweight component that provides source - * compatibility with the java.awt.TextArea class where it can + * compatibility with the {@code java.awt.TextArea} class where it can * reasonably do so. * You can find information and examples of using all the text components in * Using Text Components, @@ -49,43 +49,43 @@ * *

      * This component has capabilities not found in the - * java.awt.TextArea class. The superclass should be + * {@code java.awt.TextArea} class. The superclass should be * consulted for additional capabilities. * Alternative multi-line text classes with - * more capabilities are JTextPane and JEditorPane. + * more capabilities are {@code JTextPane} and {@code JEditorPane}. *

      - * The java.awt.TextArea internally handles scrolling. - * JTextArea is different in that it doesn't manage scrolling, - * but implements the swing Scrollable interface. This allows it - * to be placed inside a JScrollPane if scrolling + * The {@code java.awt.TextArea} internally handles scrolling. + * {@code JTextArea} is different in that it doesn't manage scrolling, + * but implements the swing {@code Scrollable} interface. This allows it + * to be placed inside a {@code JScrollPane} if scrolling * behavior is desired, and used directly if scrolling is not desired. *

      - * The java.awt.TextArea has the ability to do line wrapping. + * The {@code java.awt.TextArea} has the ability to do line wrapping. * This was controlled by the horizontal scrolling policy. Since - * scrolling is not done by JTextArea directly, backward - * compatibility must be provided another way. JTextArea has + * scrolling is not done by {@code JTextArea} directly, backward + * compatibility must be provided another way. {@code JTextArea} has * a bound property for line wrapping that controls whether or * not it will wrap lines. By default, the line wrapping property * is set to false (not wrapped). *

      - * java.awt.TextArea has two properties rows - * and columns that are used to determine the preferred size. - * JTextArea uses these properties to indicate the - * preferred size of the viewport when placed inside a JScrollPane - * to match the functionality provided by java.awt.TextArea. - * JTextArea has a preferred size of what is needed to + * {@code java.awt.TextArea} has two properties {@code rows} + * and {@code columns} that are used to determine the preferred size. + * {@code JTextArea} uses these properties to indicate the + * preferred size of the viewport when placed inside a {@code JScrollPane} + * to match the functionality provided by {@code java.awt.TextArea}. + * {@code JTextArea} has a preferred size of what is needed to * display all of the text, so that it functions properly inside of - * a JScrollPane. If the value for rows - * or columns is equal to zero, + * a {@code JScrollPane}. If the value for {@code rows} + * or {@code columns} is equal to zero, * the preferred size along that axis is used for * the viewport preferred size along the same axis. *

      - * The java.awt.TextArea could be monitored for changes by adding - * a TextListener for TextEvents. - * In the JTextComponent based + * The {@code java.awt.TextArea} could be monitored for changes by adding + * a {@code TextListener} for {@code TextEvent}s. + * In the {@code JTextComponent} based * components, changes are broadcasted from the model via a - * DocumentEvent to DocumentListeners. - * The DocumentEvent gives + * {@code DocumentEvent} to {@code DocumentListeners}. + * The {@code DocumentEvent} gives * the location of the change and the kind of change if desired. * The code fragment might look something like: *

      @@ -113,7 +113,7 @@
        * appropriate for short term storage or RMI between applications running
        * the same version of Swing.  As of 1.4, support for long term storage
        * of all JavaBeans™
      - * has been added to the java.beans package.
      + * has been added to the {@code java.beans} package.
        * Please see {@link java.beans.XMLEncoder}.
        *
        * @beaninfo
      @@ -296,7 +296,7 @@
            * Sets the line-wrapping policy of the text area.  If set
            * to true the lines will be wrapped if they are too long
            * to fit within the allocated width.  If set to false,
      -     * the lines will always be unwrapped.  A PropertyChange
      +     * the lines will always be unwrapped.  A {@code PropertyChange}
            * event ("lineWrap") is fired when the policy is changed.
            * By default this property is false.
            *
      @@ -650,7 +650,7 @@
            * is intended to be used only for debugging purposes, and the
            * content and format of the returned string may vary between
            * implementations. The returned string may be empty but may not
      -     * be null.
      +     * be {@code null}.
            *
            * @return  a string representation of this JTextArea.
            */
      @@ -709,8 +709,8 @@
            * Components that display logical rows or columns should compute
            * the scroll increment that will completely expose one new row
            * or column, depending on the value of orientation.  This is implemented
      -     * to use the values returned by the getRowHeight and
      -     * getColumnWidth methods.
      +     * to use the values returned by the {@code getRowHeight} and
      +     * {@code getColumnWidth} methods.
            * 

      * Scrolling containers, like JScrollPane, will use this method * each time the user requests a unit scroll. @@ -775,7 +775,7 @@ /** * This class implements accessibility support for the - * JTextArea class. It provides an implementation of the + * {@code JTextArea} class. It provides an implementation of the * Java Accessibility API appropriate to text area user-interface * elements. *

      @@ -785,7 +785,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. */ @SuppressWarnings("serial") // Same-version serialization only --- old/src/java.desktop/share/classes/javax/swing/JTextField.java 2015-10-04 22:57:02.613262521 +0400 +++ new/src/java.desktop/share/classes/javax/swing/JTextField.java 2015-10-04 22:57:02.421262530 +0400 @@ -40,7 +40,7 @@ import java.io.Serializable; /** - * JTextField is a lightweight component that allows the editing + * {@code JTextField} is a lightweight component that allows the editing * of a single line of text. * For information on and examples of using text fields, * see @@ -48,33 +48,33 @@ * in The Java Tutorial. * *

      - * JTextField is intended to be source-compatible - * with java.awt.TextField where it is reasonable to do so. This - * component has capabilities not found in the java.awt.TextField + * {@code JTextField} is intended to be source-compatible + * with {@code java.awt.TextField} where it is reasonable to do so. This + * component has capabilities not found in the {@code java.awt.TextField} * class. The superclass should be consulted for additional capabilities. *

      - * JTextField has a method to establish the string used as the + * {@code JTextField} has a method to establish the string used as the * command string for the action event that gets fired. The - * java.awt.TextField used the text of the field as the command - * string for the ActionEvent. - * JTextField will use the command - * string set with the setActionCommand method if not null, + * {@code java.awt.TextField} used the text of the field as the command + * string for the {@code ActionEvent}. + * {@code JTextField} will use the command + * string set with the {@code setActionCommand} method if not {@code null}, * otherwise it will use the text of the field as a compatibility with - * java.awt.TextField. + * {@code java.awt.TextField}. *

      - * The method setEchoChar and getEchoChar + * The method {@code setEchoChar} and {@code getEchoChar} * are not provided directly to avoid a new implementation of a * pluggable look-and-feel inadvertently exposing password characters. - * To provide password-like services a separate class JPasswordField - * extends JTextField to provide this service with an independently + * To provide password-like services a separate class {@code JPasswordField} + * extends {@code JTextField} to provide this service with an independently * pluggable look-and-feel. *

      - * The java.awt.TextField could be monitored for changes by adding - * a TextListener for TextEvent's. - * In the JTextComponent based + * The {@code java.awt.TextField} could be monitored for changes by adding + * a {@code TextListener} for {@code TextEvent}'s. + * In the {@code JTextComponent} based * components, changes are broadcasted from the model via a - * DocumentEvent to DocumentListeners. - * The DocumentEvent gives + * {@code DocumentEvent} to {@code DocumentListeners}. + * The {@code DocumentEvent} gives * the location of the change and the kind of change if desired. * The code fragment might look something like: *

      
      @@ -83,12 +83,12 @@
        *     myArea.getDocument().addDocumentListener(myListener);
        * 
      *

      - * The horizontal alignment of JTextField can be set to be left + * The horizontal alignment of {@code JTextField} can be set to be left * justified, leading justified, centered, right justified or trailing justified. * Right/trailing justification is useful if the required size * of the field text is smaller than the size allocated to it. - * This is determined by the setHorizontalAlignment - * and getHorizontalAlignment methods. The default + * This is determined by the {@code setHorizontalAlignment} + * and {@code getHorizontalAlignment} methods. The default * is to be leading justified. *

      * How the text field consumes VK_ENTER events depends @@ -149,7 +149,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. * * @beaninfo @@ -166,8 +166,8 @@ public class JTextField extends JTextComponent implements SwingConstants { /** - * Constructs a new TextField. A default model is created, - * the initial string is null, + * Constructs a new {@code TextField}. A default model is created, + * the initial string is {@code null}, * and the number of columns is set to 0. */ public JTextField() { @@ -175,21 +175,21 @@ } /** - * Constructs a new TextField initialized with the + * Constructs a new {@code TextField} initialized with the * specified text. A default model is created and the number of * columns is 0. * - * @param text the text to be displayed, or null + * @param text the text to be displayed, or {@code null} */ public JTextField(String text) { this(null, text, 0); } /** - * Constructs a new empty TextField with the specified + * Constructs a new empty {@code TextField} with the specified * number of columns. * A default model is created and the initial string is set to - * null. + * {@code null}. * * @param columns the number of columns to use to calculate * the preferred width; if columns is set to zero, the @@ -201,10 +201,10 @@ } /** - * Constructs a new TextField initialized with the + * Constructs a new {@code TextField} initialized with the * specified text and columns. A default model is created. * - * @param text the text to be displayed, or null + * @param text the text to be displayed, or {@code null} * @param columns the number of columns to use to calculate * the preferred width; if columns is set to zero, the * preferred width will be whatever naturally results from @@ -215,20 +215,20 @@ } /** - * Constructs a new JTextField that uses the given text + * Constructs a new {@code JTextField} that uses the given text * storage model and the given number of columns. * This is the constructor through which the other constructors feed. - * If the document is null, a default model is created. + * If the document is {@code null}, a default model is created. * - * @param doc the text storage to use; if this is null, + * @param doc the text storage to use; if this is {@code null}, * a default will be provided by calling the - * createDefaultModel method - * @param text the initial string to display, or null + * {@code createDefaultModel} method + * @param text the initial string to display, or {@code null} * @param columns the number of columns to use to calculate - * the preferred width >= 0; if columns + * the preferred width >= 0; if {@code columns} * is set to zero, the preferred width will be whatever * naturally results from the component implementation - * @exception IllegalArgumentException if columns < 0 + * @exception IllegalArgumentException if {@code columns < 0} */ public JTextField(Document doc, String text, int columns) { if (columns < 0) { @@ -279,13 +279,13 @@ } /** - * Calls to revalidate that come from within the + * Calls to {@code revalidate} that come from within the * textfield itself will * be handled by validating the textfield, unless the textfield - * is contained within a JViewport, + * is contained within a {@code JViewport}, * in which case this returns false. * - * @return if the parent of this textfield is a JViewPort + * @return if the parent of this textfield is a {@code JViewPort} * return false, otherwise return true * * @see JComponent#revalidate @@ -302,11 +302,11 @@ * Returns the horizontal alignment of the text. * Valid keys are: *

        - *
      • JTextField.LEFT - *
      • JTextField.CENTER - *
      • JTextField.RIGHT - *
      • JTextField.LEADING - *
      • JTextField.TRAILING + *
      • {@code JTextField.LEFT} + *
      • {@code JTextField.CENTER} + *
      • {@code JTextField.RIGHT} + *
      • {@code JTextField.LEADING} + *
      • {@code JTextField.TRAILING} *
      * * @return the horizontal alignment @@ -319,18 +319,18 @@ * Sets the horizontal alignment of the text. * Valid keys are: *
        - *
      • JTextField.LEFT - *
      • JTextField.CENTER - *
      • JTextField.RIGHT - *
      • JTextField.LEADING - *
      • JTextField.TRAILING + *
      • {@code JTextField.LEFT} + *
      • {@code JTextField.CENTER} + *
      • {@code JTextField.RIGHT} + *
      • {@code JTextField.LEADING} + *
      • {@code JTextField.TRAILING} *
      - * invalidate and repaint are called when the + * {@code invalidate} and {@code repaint} are called when the * alignment is set, - * and a PropertyChange event ("horizontalAlignment") is fired. + * and a {@code PropertyChange} event ("horizontalAlignment") is fired. * * @param alignment the alignment - * @exception IllegalArgumentException if alignment + * @exception IllegalArgumentException if {@code alignment} * is not a valid key * @beaninfo * preferred: true @@ -358,7 +358,7 @@ /** * Creates the default implementation of the model * to be used at construction if one isn't explicitly - * given. An instance of PlainDocument is returned. + * given. An instance of {@code PlainDocument} is returned. * * @return the default model implementation */ @@ -367,7 +367,7 @@ } /** - * Returns the number of columns in this TextField. + * Returns the number of columns in this {@code TextField}. * * @return the number of columns >= 0 */ @@ -376,11 +376,11 @@ } /** - * Sets the number of columns in this TextField, + * Sets the number of columns in this {@code TextField}, * and then invalidate the layout. * * @param columns the number of columns >= 0 - * @exception IllegalArgumentException if columns + * @exception IllegalArgumentException if {@code columns} * is less than 0 * @beaninfo * description: the number of columns preferred for display @@ -415,8 +415,8 @@ } /** - * Returns the preferred size Dimensions needed for this - * TextField. If a non-zero number of columns has been + * Returns the preferred size {@code Dimensions} needed for this + * {@code TextField}. If a non-zero number of columns has been * set, the width is set to the columns multiplied by * the column width. * @@ -435,7 +435,7 @@ /** * Sets the current font. This removes cached row height and column * width so the new font will be reflected. - * revalidate is called after setting the font. + * {@code revalidate} is called after setting the font. * * @param f the new font */ @@ -469,10 +469,10 @@ } /** - * Returns an array of all the ActionListeners added + * Returns an array of all the {@code ActionListener}s added * to this JTextField with addActionListener(). * - * @return all of the ActionListeners added or an empty + * @return all of the {@code ActionListener}s added or an empty * array if no listeners have been added * @since 1.4 */ @@ -525,34 +525,34 @@ private PropertyChangeListener actionPropertyChangeListener; /** - * Sets the Action for the ActionEvent source. - * The new Action replaces - * any previously set Action but does not affect - * ActionListeners independently - * added with addActionListener. - * If the Action is already a registered - * ActionListener - * for the ActionEvent source, it is not re-registered. + * Sets the {@code Action} for the {@code ActionEvent} source. + * The new {@code Action} replaces + * any previously set {@code Action} but does not affect + * {@code ActionListeners} independently + * added with {@code addActionListener}. + * If the {@code Action} is already a registered + * {@code ActionListener} + * for the {@code ActionEvent} source, it is not re-registered. *

      - * Setting the Action results in immediately changing + * Setting the {@code Action} results in immediately changing * all the properties described in - * Swing Components Supporting Action. + * Swing Components Supporting {@code Action}. * Subsequently, the textfield's properties are automatically updated - * as the Action's properties change. + * as the {@code Action}'s properties change. *

      * This method uses three other methods to set - * and help track the Action's property values. - * It uses the configurePropertiesFromAction method + * and help track the {@code Action}'s property values. + * It uses the {@code configurePropertiesFromAction} method * to immediately change the textfield's properties. - * To track changes in the Action's property values, - * this method registers the PropertyChangeListener - * returned by createActionPropertyChangeListener. The + * To track changes in the {@code Action}'s property values, + * this method registers the {@code PropertyChangeListener} + * returned by {@code createActionPropertyChangeListener}. The * default {@code PropertyChangeListener} invokes the * {@code actionPropertyChanged} method when a property in the * {@code Action} changes. * - * @param a the Action for the JTextField, - * or null + * @param a the {@code Action} for the {@code JTextField}, + * or {@code null} * @since 1.3 * @see Action * @see #getAction @@ -599,12 +599,12 @@ } /** - * Returns the currently set Action for this - * ActionEvent source, or null - * if no Action is set. + * Returns the currently set {@code Action} for this + * {@code ActionEvent} source, or {@code null} + * if no {@code Action} is set. * - * @return the Action for this ActionEvent source, - * or null + * @return the {@code Action} for this {@code ActionEvent} source, + * or {@code null} * @since 1.3 * @see Action * @see #setAction @@ -615,12 +615,12 @@ /** * Sets the properties on this textfield to match those in the specified - * Action. Refer to - * Swing Components Supporting Action for more + * {@code Action}. Refer to + * Swing Components Supporting {@code Action} for more * details as to which properties this sets. * - * @param a the Action from which to get the properties, - * or null + * @param a the {@code Action} from which to get the properties, + * or {@code null} * @since 1.3 * @see Action * @see #setAction @@ -641,10 +641,10 @@ * {@code configurePropertiesFromAction}. *

      * Refer to the table at - * Swing Components Supporting Action for a list of + * Swing Components Supporting {@code Action} for a list of * the properties this method sets. * - * @param action the Action associated with this textfield + * @param action the {@code Action} associated with this textfield * @param propertyName the name of the property that changed * @since 1.6 * @see Action @@ -666,13 +666,13 @@ } /** - * Creates and returns a PropertyChangeListener that is + * Creates and returns a {@code PropertyChangeListener} that is * responsible for listening for changes from the specified - * Action and updating the appropriate properties. + * {@code Action} and updating the appropriate properties. *

      * Warning: If you subclass this do not create an anonymous * inner class. If you do the lifetime of the textfield will be tied to - * that of the Action. + * that of the {@code Action}. * * @param a the textfield's action * @return a {@code PropertyChangeListener} that is responsible for @@ -718,7 +718,7 @@ /** * Processes action events occurring on this textfield by - * dispatching them to any registered ActionListener objects. + * dispatching them to any registered {@code ActionListener} objects. * This is normally called by the controller registered with * textfield. */ @@ -737,7 +737,7 @@ *

      * The fields look-and-feel implementation manages * the values of the minimum, maximum, and extent - * properties on the BoundedRangeModel. + * properties on the {@code BoundedRangeModel}. * * @return the visibility * @see BoundedRangeModel @@ -784,7 +784,7 @@ } /** - * Returns true if the receiver has an ActionListener + * Returns true if the receiver has an {@code ActionListener} * installed. */ boolean hasActionListener() { @@ -861,8 +861,8 @@ /** - * See readObject and writeObject in - * JComponent for more + * See {@code readObject} and {@code writeObject} in + * {@code JComponent} for more * information about serialization in Swing. */ private void writeObject(ObjectOutputStream s) throws IOException { @@ -878,13 +878,13 @@ /** - * Returns a string representation of this JTextField. + * Returns a string representation of this {@code JTextField}. * This method is intended to be used only for debugging purposes, * and the content and format of the returned string may vary between * implementations. The returned string may be empty but may not - * be null. + * be {@code null}. * - * @return a string representation of this JTextField + * @return a string representation of this {@code JTextField} */ protected String paramString() { String horizontalAlignmentString; @@ -916,15 +916,15 @@ /** - * Gets the AccessibleContext associated with this - * JTextField. For JTextFields, - * the AccessibleContext takes the form of an - * AccessibleJTextField. - * A new AccessibleJTextField instance is created + * Gets the {@code AccessibleContext} associated with this + * {@code JTextField}. For {@code JTextFields}, + * the {@code AccessibleContext} takes the form of an + * {@code AccessibleJTextField}. + * A new {@code AccessibleJTextField} instance is created * if necessary. * - * @return an AccessibleJTextField that serves as the - * AccessibleContext of this JTextField + * @return an {@code AccessibleJTextField} that serves as the + * {@code AccessibleContext} of this {@code JTextField} */ public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { @@ -935,7 +935,7 @@ /** * This class implements accessibility support for the - * JTextField class. It provides an implementation of the + * {@code JTextField} class. It provides an implementation of the * Java Accessibility API appropriate to text field user-interface * elements. *

      @@ -945,7 +945,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. */ @SuppressWarnings("serial") // Same-version serialization only --- old/src/java.desktop/share/classes/javax/swing/JTextPane.java 2015-10-04 22:57:03.153262497 +0400 +++ new/src/java.desktop/share/classes/javax/swing/JTextPane.java 2015-10-04 22:57:02.965262505 +0400 @@ -69,7 +69,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. * * @beaninfo @@ -84,9 +84,9 @@ public class JTextPane extends JEditorPane { /** - * Creates a new JTextPane. A new instance of - * StyledEditorKit is - * created and set, and the document model set to null. + * Creates a new {@code JTextPane}. A new instance of + * {@code StyledEditorKit} is + * created and set, and the document model set to {@code null}. */ public JTextPane() { super(); @@ -101,8 +101,8 @@ } /** - * Creates a new JTextPane, with a specified document model. - * A new instance of javax.swing.text.StyledEditorKit + * Creates a new {@code JTextPane}, with a specified document model. + * A new instance of {@code javax.swing.text.StyledEditorKit} * is created and set. * * @param doc the document model @@ -126,11 +126,11 @@ /** * Associates the editor with a text document. This - * must be a StyledDocument. + * must be a {@code StyledDocument}. * * @param doc the document to display/edit - * @exception IllegalArgumentException if doc can't - * be narrowed to a StyledDocument which is the + * @exception IllegalArgumentException if {@code doc} can't + * be narrowed to a {@code StyledDocument} which is the * required type of model for this text component */ public void setDocument(Document doc) { @@ -225,10 +225,10 @@ *

      * The component is placed relative to the text baseline * according to the value returned by - * Component.getAlignmentY. For Swing components + * {@code Component.getAlignmentY}. For Swing components * this value can be conveniently set using the method - * JComponent.setAlignmentY. For example, setting - * a value of 0.75 will cause 75 percent of the + * {@code JComponent.setAlignmentY}. For example, setting + * a value of {@code 0.75} will cause 75 percent of the * component to be above the baseline, and 25 percent of the * component to be below the baseline. * @@ -267,16 +267,16 @@ * will override an attribute specified in the parent. * * @param nm the name of the style (must be unique within the - * collection of named styles). The name may be null + * collection of named styles). The name may be {@code null} * if the style is unnamed, but the caller is responsible * for managing the reference returned as an unnamed style can't * be fetched by name. An unnamed style may be useful for things * like character attribute overrides such as found in a style * run. - * @param parent the parent style. This may be null + * @param parent the parent style. This may be {@code null} * if unspecified * attributes need not be resolved in some other style. - * @return the new Style + * @return the new {@code Style} */ public Style addStyle(String nm, Style parent) { StyledDocument doc = getStyledDocument(); @@ -284,7 +284,7 @@ } /** - * Removes a named non-null style previously added to + * Removes a named non-{@code null} style previously added to * the document. * * @param nm the name of the style to remove @@ -295,10 +295,10 @@ } /** - * Fetches a named non-null style previously added. + * Fetches a named non-{@code null} style previously added. * * @param nm the name of the style - * @return the Style + * @return the {@code Style} */ public Style getStyle(String nm) { StyledDocument doc = getStyledDocument(); @@ -314,7 +314,7 @@ * independent of the element hierarchy in the document. * * @param s the logical style to assign to the paragraph, - * or null for no style + * or {@code null} for no style */ public void setLogicalStyle(Style s) { StyledDocument doc = getStyledDocument(); @@ -323,9 +323,9 @@ /** * Fetches the logical style assigned to the paragraph represented - * by the current position of the caret, or null. + * by the current position of the caret, or {@code null}. * - * @return the Style + * @return the {@code Style} */ public Style getLogicalStyle() { StyledDocument doc = getStyledDocument(); @@ -334,9 +334,9 @@ /** * Fetches the character attributes in effect at the - * current location of the caret, or null. + * current location of the caret, or {@code null}. * - * @return the attributes, or null + * @return the attributes, or {@code null} */ public AttributeSet getCharacterAttributes() { StyledDocument doc = getStyledDocument(); @@ -375,7 +375,7 @@ /** * Fetches the current paragraph attributes in effect - * at the location of the caret, or null if none. + * at the location of the caret, or {@code null} if none. * * @return the attributes */ @@ -395,7 +395,7 @@ * If there is no selection, the attributes are applied * to the paragraph at the current caret position. * - * @param attr the non-null attributes + * @param attr the non-{@code null} attributes * @param replace if true, replace the existing attributes first */ public void setParagraphAttributes(AttributeSet attr, boolean replace) { @@ -431,8 +431,8 @@ /** - * See readObject and writeObject in - * JComponent for more + * See {@code readObject} and {@code writeObject} in + * {@code JComponent} for more * information about serialization in Swing. * * @param s the output stream @@ -452,8 +452,8 @@ // --- JEditorPane ------------------------------------ /** - * Creates the EditorKit to use by default. This - * is implemented to return javax.swing.text.StyledEditorKit. + * Creates the {@code EditorKit} to use by default. This + * is implemented to return {@code javax.swing.text.StyledEditorKit}. * * @return the editor kit */ @@ -468,7 +468,7 @@ * * @param kit the desired editor behavior * @exception IllegalArgumentException if kit is not a - * StyledEditorKit + * {@code StyledEditorKit} */ public final void setEditorKit(EditorKit kit) { if (kit instanceof StyledEditorKit) { @@ -479,14 +479,14 @@ } /** - * Returns a string representation of this JTextPane. + * Returns a string representation of this {@code JTextPane}. * This method * is intended to be used only for debugging purposes, and the * content and format of the returned string may vary between * implementations. The returned string may be empty but may not - * be null. + * be {@code null}. * - * @return a string representation of this JTextPane + * @return a string representation of this {@code JTextPane} */ protected String paramString() { return super.paramString(); --- old/src/java.desktop/share/classes/javax/swing/JToggleButton.java 2015-10-04 22:57:03.701262472 +0400 +++ new/src/java.desktop/share/classes/javax/swing/JToggleButton.java 2015-10-04 22:57:03.497262481 +0400 @@ -38,7 +38,7 @@ /** * An implementation of a two-state button. - * The JRadioButton and JCheckBox classes + * The {@code JRadioButton} and {@code JCheckBox} classes * are subclasses of this class. * For information on using them see * * Buttons can be configured, and to some degree controlled, by * Actions. Using an - * Action with a button has many benefits beyond directly + * {@code Action} with a button has many benefits beyond directly * configuring a button. Refer to - * Swing Components Supporting Action for more + * Swing Components Supporting {@code Action} for more * details, and you can find more information in How * to Use Actions, a section in The Java Tutorial. @@ -65,7 +65,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. * * @beaninfo @@ -222,7 +222,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. */ @SuppressWarnings("serial") // Same-version serialization only @@ -341,7 +341,7 @@ * is intended to be used only for debugging purposes, and the * content and format of the returned string may vary between * implementations. The returned string may be empty but may not - * be null. + * be {@code null}. * * @return a string representation of this JToggleButton. */ @@ -375,7 +375,7 @@ /** * This class implements accessibility support for the - * JToggleButton class. It provides an implementation of the + * {@code JToggleButton} class. It provides an implementation of the * Java Accessibility API appropriate to toggle button user-interface * elements. *

      @@ -385,7 +385,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. */ @SuppressWarnings("serial") // Same-version serialization only --- old/src/java.desktop/share/classes/javax/swing/JToolBar.java 2015-10-04 22:57:04.225262449 +0400 +++ new/src/java.desktop/share/classes/javax/swing/JToolBar.java 2015-10-04 22:57:04.033262457 +0400 @@ -49,8 +49,8 @@ /** - * JToolBar provides a component that is useful for - * displaying commonly used Actions or controls. + * {@code JToolBar} provides a component that is useful for + * displaying commonly used {@code Action}s or controls. * For examples and information on using tool bars see * How to Use Tool Bars, * a section in The Java Tutorial. @@ -58,10 +58,10 @@ *

      * With most look and feels, * the user can drag out a tool bar into a separate window - * (unless the floatable property is set to false). + * (unless the {@code floatable} property is set to {@code false}). * For drag-out to work correctly, it is recommended that you add - * JToolBar instances to one of the four "sides" of a - * container whose layout manager is a BorderLayout, + * {@code JToolBar} instances to one of the four "sides" of a + * container whose layout manager is a {@code BorderLayout}, * and do not add children to any of the other four "sides". *

      * Warning: Swing is not thread safe. For more @@ -75,7 +75,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. * * @beaninfo @@ -102,7 +102,7 @@ private int orientation = HORIZONTAL; /** - * Creates a new tool bar; orientation defaults to HORIZONTAL. + * Creates a new tool bar; orientation defaults to {@code HORIZONTAL}. */ public JToolBar() { @@ -110,9 +110,9 @@ } /** - * Creates a new tool bar with the specified orientation. - * The orientation must be either HORIZONTAL - * or VERTICAL. + * Creates a new tool bar with the specified {@code orientation}. + * The {@code orientation} must be either {@code HORIZONTAL} + * or {@code VERTICAL}. * * @param orientation the orientation desired */ @@ -122,9 +122,9 @@ } /** - * Creates a new tool bar with the specified name. The + * Creates a new tool bar with the specified {@code name}. The * name is used as the title of the undocked tool bar. The default - * orientation is HORIZONTAL. + * orientation is {@code HORIZONTAL}. * * @param name the name of the tool bar * @since 1.3 @@ -134,17 +134,17 @@ } /** - * Creates a new tool bar with a specified name and - * orientation. + * Creates a new tool bar with a specified {@code name} and + * {@code orientation}. * All other constructors call this constructor. - * If orientation is an invalid value, an exception will + * If {@code orientation} is an invalid value, an exception will * be thrown. * * @param name the name of the tool bar * @param orientation the initial orientation -- it must be - * either HORIZONTAL or VERTICAL + * either {@code HORIZONTAL} or {@code VERTICAL} * @exception IllegalArgumentException if orientation is neither - * HORIZONTAL nor VERTICAL + * {@code HORIZONTAL} nor {@code VERTICAL} * @since 1.3 */ public JToolBar( String name , int orientation) { @@ -173,7 +173,7 @@ /** * Sets the L&F object that renders this component. * - * @param ui the ToolBarUI L&F object + * @param ui the {@code ToolBarUI} L&F object * @see UIDefaults#getUI * @beaninfo * bound: true @@ -186,9 +186,9 @@ } /** - * Notification from the UIFactory that the L&F has changed. + * Notification from the {@code UIFactory} that the L&F has changed. * Called to replace the UI with the latest version from the - * UIFactory. + * {@code UIFactory}. * * @see JComponent#updateUI */ @@ -221,7 +221,7 @@ * Returns the index of the specified component. * (Note: Separators occupy index positions.) * - * @param c the Component to find + * @param c the {@code Component} to find * @return an integer indicating the component's position, * where 0 is first */ @@ -240,8 +240,8 @@ * Returns the component at the specified index. * * @param i the component's position, where 0 is first - * @return the Component at that position, - * or null for an invalid index + * @return the {@code Component} at that position, + * or {@code null} for an invalid index * */ public Component getComponentAtIndex(int i) { @@ -255,15 +255,15 @@ /** * Sets the margin between the tool bar's border and - * its buttons. Setting to null causes the tool bar to - * use the default margins. The tool bar's default Border + * its buttons. Setting to {@code null} causes the tool bar to + * use the default margins. The tool bar's default {@code Border} * object uses this value to create the proper margin. * However, if a non-default border is set on the tool bar, - * it is that Border object's responsibility to create the + * it is that {@code Border} object's responsibility to create the * appropriate margin space (otherwise this property will * effectively be ignored). * - * @param m an Insets object that defines the space + * @param m an {@code Insets} object that defines the space * between the border and the buttons * @see Insets * @beaninfo @@ -284,7 +284,7 @@ * Returns the margin between the tool bar's border and * its buttons. * - * @return an Insets object containing the margin values + * @return an {@code Insets} object containing the margin values * @see Insets */ public Insets getMargin() @@ -297,9 +297,9 @@ } /** - * Gets the borderPainted property. + * Gets the {@code borderPainted} property. * - * @return the value of the borderPainted property + * @return the value of the {@code borderPainted} property * @see #setBorderPainted */ public boolean isBorderPainted() @@ -309,9 +309,9 @@ /** - * Sets the borderPainted property, which is - * true if the border should be painted. - * The default value for this property is true. + * Sets the {@code borderPainted} property, which is + * {@code true} if the border should be painted. + * The default value for this property is {@code true}. * Some look and feels might not implement painted borders; * they will ignore this property. * @@ -335,10 +335,10 @@ } /** - * Paints the tool bar's border if the borderPainted property - * is true. + * Paints the tool bar's border if the {@code borderPainted} property + * is {@code true}. * - * @param g the Graphics context in which the painting + * @param g the {@code Graphics} context in which the painting * is done * @see JComponent#paint * @see JComponent#setBorder @@ -352,9 +352,9 @@ } /** - * Gets the floatable property. + * Gets the {@code floatable} property. * - * @return the value of the floatable property + * @return the value of the {@code floatable} property * * @see #setFloatable */ @@ -364,17 +364,17 @@ } /** - * Sets the floatable property, - * which must be true for the user to move the tool bar. + * Sets the {@code floatable} property, + * which must be {@code true} for the user to move the tool bar. * Typically, a floatable tool bar can be * dragged into a different position within the same container * or out into its own window. - * The default value of this property is true. + * The default value of this property is {@code true}. * Some look and feels might not implement floatable tool bars; * they will ignore this property. * - * @param b if true, the tool bar can be moved; - * false otherwise + * @param b if {@code true}, the tool bar can be moved; + * {@code false} otherwise * @see #isFloatable * @beaninfo * description: Can the tool bar be made to float by the user? @@ -396,10 +396,10 @@ /** * Returns the current orientation of the tool bar. The value is either - * HORIZONTAL or VERTICAL. + * {@code HORIZONTAL} or {@code VERTICAL}. * * @return an integer representing the current orientation -- either - * HORIZONTAL or VERTICAL + * {@code HORIZONTAL} or {@code VERTICAL} * @see #setOrientation */ public int getOrientation() @@ -409,14 +409,14 @@ /** * Sets the orientation of the tool bar. The orientation must have - * either the value HORIZONTAL or VERTICAL. - * If orientation is + * either the value {@code HORIZONTAL} or {@code VERTICAL}. + * If {@code orientation} is * an invalid value, an exception will be thrown. * - * @param o the new orientation -- either HORIZONTAL or - * VERTICAL + * @param o the new orientation -- either {@code HORIZONTAL} or + * {@code VERTICAL} * @exception IllegalArgumentException if orientation is neither - * HORIZONTAL nor VERTICAL + * {@code HORIZONTAL} nor {@code VERTICAL} * @see #getOrientation * @beaninfo * description: The current orientation of the tool bar @@ -502,7 +502,7 @@ * Appends a separator of a specified size to the end * of the tool bar. * - * @param size the Dimension of the separator + * @param size the {@code Dimension} of the separator */ public void addSeparator( Dimension size ) { @@ -511,9 +511,9 @@ } /** - * Adds a new JButton which dispatches the action. + * Adds a new {@code JButton} which dispatches the action. * - * @param a the Action object to add as a new menu item + * @param a the {@code Action} object to add as a new menu item * @return the new button which dispatches the action */ public JButton add(Action a) { @@ -524,11 +524,11 @@ } /** - * Factory method which creates the JButton for - * Actions added to the JToolBar. - * The default name is empty if a null action is passed. + * Factory method which creates the {@code JButton} for + * {@code Action}s added to the {@code JToolBar}. + * The default name is empty if a {@code null} action is passed. * - * @param a the Action for the button to be added + * @param a the {@code Action} for the button to be added * @return the newly created button * @see Action * @since 1.3 @@ -553,9 +553,9 @@ } /** - * Returns a properly configured PropertyChangeListener - * which updates the control as changes to the Action occur, - * or null if the default + * Returns a properly configured {@code PropertyChangeListener} + * which updates the control as changes to the {@code Action} occur, + * or {@code null} if the default * property change listener for the control is desired. * * @param b a {@code JButton} @@ -566,7 +566,7 @@ } /** - * If a JButton is being added, it is initially + * If a {@code JButton} is being added, it is initially * set to be disabled. * * @param comp the component to be enhanced @@ -609,7 +609,7 @@ /** * Creates a new toolbar separator with the specified size. * - * @param size the Dimension of the separator + * @param size the {@code Dimension} of the separator */ public Separator( Dimension size ) { @@ -632,7 +632,7 @@ /** * Sets the size of the separator. * - * @param size the new Dimension of the separator + * @param size the new {@code Dimension} of the separator */ public void setSeparatorSize( Dimension size ) { @@ -647,7 +647,7 @@ /** * Returns the size of the separator * - * @return the Dimension object containing the separator's + * @return the {@code Dimension} object containing the separator's * size (This is a reference, NOT a copy!) */ public Dimension getSeparatorSize() @@ -658,7 +658,7 @@ /** * Returns the minimum size for the separator. * - * @return the Dimension object containing the separator's + * @return the {@code Dimension} object containing the separator's * minimum size */ public Dimension getMinimumSize() @@ -673,7 +673,7 @@ /** * Returns the maximum size for the separator. * - * @return the Dimension object containing the separator's + * @return the {@code Dimension} object containing the separator's * maximum size */ public Dimension getMaximumSize() @@ -688,7 +688,7 @@ /** * Returns the preferred size for the separator. * - * @return the Dimension object containing the separator's + * @return the {@code Dimension} object containing the separator's * preferred size */ public Dimension getPreferredSize() @@ -703,8 +703,8 @@ /** - * See readObject and writeObject in - * JComponent for more + * See {@code readObject} and {@code writeObject} in + * {@code JComponent} for more * information about serialization in Swing. */ private void writeObject(ObjectOutputStream s) throws IOException { @@ -720,14 +720,14 @@ /** - * Returns a string representation of this JToolBar. + * Returns a string representation of this {@code JToolBar}. * This method * is intended to be used only for debugging purposes, and the * content and format of the returned string may vary between * implementations. The returned string may be empty but may not - * be null. + * be {@code null}. * - * @return a string representation of this JToolBar. + * @return a string representation of this {@code JToolBar}. */ protected String paramString() { String paintBorderString = (paintBorder ? @@ -845,7 +845,7 @@ /** * This class implements accessibility support for the - * JToolBar class. It provides an implementation of the + * {@code JToolBar} class. It provides an implementation of the * Java Accessibility API appropriate to toolbar user-interface elements. */ protected class AccessibleJToolBar extends AccessibleJComponent { --- old/src/java.desktop/share/classes/javax/swing/JToolTip.java 2015-10-04 22:57:04.765262425 +0400 +++ new/src/java.desktop/share/classes/javax/swing/JToolTip.java 2015-10-04 22:57:04.573262433 +0400 @@ -36,12 +36,12 @@ /** * Used to display a "Tip" for a Component. Typically components provide api - * to automate the process of using ToolTips. - * For example, any Swing component can use the JComponent - * setToolTipText method to specify the text + * to automate the process of using {@code ToolTip}s. + * For example, any Swing component can use the {@code JComponent} + * {@code setToolTipText} method to specify the text * for a standard tooltip. A component that wants to create a custom - * ToolTip - * display can override JComponent's createToolTip + * {@code ToolTip} + * display can override {@code JComponent}'s {@code createToolTip} * method and use a subclass of this class. *

      * See How to Use Tool Tips @@ -59,7 +59,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. * * @see JComponent#setToolTipText @@ -88,7 +88,7 @@ /** * Returns the L&F object that renders this component. * - * @return the ToolTipUI object that renders this component + * @return the {@code ToolTipUI} object that renders this component */ public ToolTipUI getUI() { return (ToolTipUI)ui; @@ -118,9 +118,9 @@ /** * Sets the text to show when the tool tip is displayed. - * The string tipText may be null. + * The string {@code tipText} may be {@code null}. * - * @param tipText the String to display + * @param tipText the {@code String} to display * @beaninfo * preferred: true * bound: true @@ -139,9 +139,9 @@ /** * Returns the text that is shown when the tool tip is displayed. - * The returned value may be null. + * The returned value may be {@code null}. * - * @return the String that is displayed + * @return the {@code String} that is displayed */ public String getTipText() { return tipText; @@ -149,12 +149,12 @@ /** * Specifies the component that the tooltip describes. - * The component c may be null + * The component {@code c} may be {@code null} * and will have no effect. *

      * This is a bound property. * - * @param c the JComponent being described + * @param c the {@code JComponent} being described * @see JComponent#createToolTip * @beaninfo * bound: true @@ -169,7 +169,7 @@ /** * Returns the component the tooltip applies to. - * The returned value may be null. + * The returned value may be {@code null}. * * @return the component that the tooltip describes * @@ -190,8 +190,8 @@ /** - * See readObject and writeObject - * in JComponent for more + * See {@code readObject} and {@code writeObject} + * in {@code JComponent} for more * information about serialization in Swing. */ private void writeObject(ObjectOutputStream s) throws IOException { @@ -207,14 +207,14 @@ /** - * Returns a string representation of this JToolTip. + * Returns a string representation of this {@code JToolTip}. * This method * is intended to be used only for debugging purposes, and the * content and format of the returned string may vary between * implementations. The returned string may be empty but may not - * be null. + * be {@code null}. * - * @return a string representation of this JToolTip + * @return a string representation of this {@code JToolTip} */ protected String paramString() { String tipTextString = (tipText != null ? @@ -247,7 +247,7 @@ /** * This class implements accessibility support for the - * JToolTip class. It provides an implementation of the + * {@code JToolTip} class. It provides an implementation of the * Java Accessibility API appropriate to tool tip user-interface elements. *

      * Warning: @@ -256,7 +256,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. */ @SuppressWarnings("serial") --- old/src/java.desktop/share/classes/javax/swing/JTree.java 2015-10-04 22:57:05.297262401 +0400 +++ new/src/java.desktop/share/classes/javax/swing/JTree.java 2015-10-04 22:57:05.105262409 +0400 @@ -48,11 +48,11 @@ * a section in The Java Tutorial. *

      * A specific node in a tree can be identified either by a - * TreePath (an object + * {@code TreePath} (an object * that encapsulates a node and all of its ancestors), or by its * display row, where each row in the display area displays one node. * An expanded node is a non-leaf node (as identified by - * TreeModel.isLeaf(node) returning false) that will displays + * {@code TreeModel.isLeaf(node)} returning false) that will displays * its children when all its ancestors are expanded. * A collapsed * node is one which hides them. A hidden node is one which is @@ -60,27 +60,27 @@ * are expanded, but may or may not be displayed. A displayed node * is both viewable and in the display area, where it can be seen. *

      - * The following JTree methods use "visible" to mean "displayed": + * The following {@code JTree} methods use "visible" to mean "displayed": *
        - *
      • isRootVisible() - *
      • setRootVisible() - *
      • scrollPathToVisible() - *
      • scrollRowToVisible() - *
      • getVisibleRowCount() - *
      • setVisibleRowCount() + *
      • {@code isRootVisible()} + *
      • {@code setRootVisible()} + *
      • {@code scrollPathToVisible()} + *
      • {@code scrollRowToVisible()} + *
      • {@code getVisibleRowCount()} + *
      • {@code setVisibleRowCount()} *
      - * The next group of JTree methods use "visible" to mean + * The next group of {@code JTree} methods use "visible" to mean * "viewable" (under an expanded parent): *
        - *
      • isVisible() - *
      • makeVisible() + *
      • {@code isVisible()} + *
      • {@code makeVisible()} *
      * If you are interested in knowing when the selection changes implement - * the TreeSelectionListener interface and add the instance - * using the method addTreeSelectionListener. - * valueChanged will be invoked when the + * the {@code TreeSelectionListener} interface and add the instance + * using the method {@code addTreeSelectionListener}. + * {@code valueChanged} will be invoked when the * selection changes, that is if the user clicks twice on the same - * node valueChanged will only be invoked once. + * node {@code valueChanged} will only be invoked once. *

      * If you are interested in detecting either double-click events or when * a user clicks on a node, regardless of whether or not it was selected, @@ -108,14 +108,14 @@ * NOTE: This example obtains both the path and row, but you only need to * get the one you're interested in. *

      - * To use JTree to display compound nodes + * To use {@code JTree} to display compound nodes * (for example, nodes containing both * a graphic icon and text), subclass {@link TreeCellRenderer} and use * {@link #setCellRenderer} to tell the tree to use it. To edit such nodes, * subclass {@link TreeCellEditor} and use {@link #setCellEditor}. *

      *

      - * Like all JComponent classes, you can use {@link InputMap} and + * Like all {@code JComponent} classes, you can use {@link InputMap} and * {@link ActionMap} * to associate an {@link Action} object with a {@link KeyStroke} * and execute the action under specified conditions. @@ -131,7 +131,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. *

      * @beaninfo @@ -169,8 +169,8 @@ protected boolean rootVisible; /** - * The cell used to draw nodes. If null, the UI uses a default - * cellRenderer. + * The cell used to draw nodes. If {@code null}, the UI uses a default + * {@code cellRenderer}. */ protected transient TreeCellRenderer cellRenderer; @@ -182,7 +182,7 @@ private boolean rowHeightSet = false; /** - * Maps from TreePath to Boolean + * Maps from {@code TreePath} to {@code Boolean} * indicating whether or not the * particular path is expanded. This ONLY indicates whether a * given path is expanded, and NOT if it is visible or not. That @@ -201,7 +201,7 @@ * expanded and a minus sign (-) for a node which can be collapsed. * Handles are always shown for nodes below the topmost level. *

      - * If the rootVisible setting specifies that the root + * If the {@code rootVisible} setting specifies that the root * node is to be displayed, then that is the only node at the topmost * level. If the root node is not displayed, then all of its * children are at the topmost level of the tree. Handles are @@ -219,12 +219,12 @@ /** * Creates a new event and passed it off the - * selectionListeners. + * {@code selectionListeners}. */ protected transient TreeSelectionRedirector selectionRedirector; /** - * Editor for the entries. Default is null + * Editor for the entries. Default is {@code null} * (tree is not editable). */ protected transient TreeCellEditor cellEditor; @@ -248,16 +248,16 @@ /** * Number of rows to make visible at one time. This value is used for - * the Scrollable interface. It determines the preferred + * the {@code Scrollable} interface. It determines the preferred * size of the display area. */ protected int visibleRowCount; /** * If true, when editing is to be stopped by way of selection changing, - * data in tree changing or other means stopCellEditing + * data in tree changing or other means {@code stopCellEditing} * is invoked, and changes are saved. If false, - * cancelCellEditing is invoked, and changes + * {@code cancelCellEditing} is invoked, and changes * are discarded. Default is false. */ protected boolean invokesStopCellEditing; @@ -275,18 +275,18 @@ protected int toggleClickCount; /** - * Updates the expandedState. + * Updates the {@code expandedState}. */ protected transient TreeModelListener treeModelListener; /** - * Used when setExpandedState is invoked, - * will be a Stack of Stacks. + * Used when {@code setExpandedState} is invoked, + * will be a {@code Stack} of {@code Stack}s. */ private transient Stack> expandedStack; /** - * Lead selection path, may not be null. + * Lead selection path, may not be {@code null}. */ private TreePath leadPath; @@ -301,7 +301,7 @@ private boolean expandsSelectedPaths; /** - * This is set to true for the life of the setUI call. + * This is set to true for the life of the {@code setUI} call. */ private boolean settingUI; @@ -319,8 +319,8 @@ private transient DropLocation dropLocation; /** - * A subclass of TransferHandler.DropLocation representing - * a drop location for a JTree. + * A subclass of {@code TransferHandler.DropLocation} representing + * a drop location for a {@code JTree}. * * @see #getDropLocation * @since 1.6 @@ -337,23 +337,23 @@ /** * Returns the index where the dropped data should be inserted - * with respect to the path returned by getPath(). + * with respect to the path returned by {@code getPath()}. *

      - * For drop modes DropMode.USE_SELECTION and - * DropMode.ON, this index is unimportant (and it will - * always be -1) as the only interesting data is the + * For drop modes {@code DropMode.USE_SELECTION} and + * {@code DropMode.ON}, this index is unimportant (and it will + * always be {@code -1}) as the only interesting data is the * path over which the drop operation occurred. *

      - * For drop mode DropMode.INSERT, this index + * For drop mode {@code DropMode.INSERT}, this index * indicates the index at which the data should be inserted into - * the parent path represented by getPath(). - * -1 indicates that the drop occurred over the + * the parent path represented by {@code getPath()}. + * {@code -1} indicates that the drop occurred over the * parent itself, and in most cases should be treated as inserting * into either the beginning or the end of the parent's list of * children. *

      - * For DropMode.ON_OR_INSERT, this value will be - * an insert index, as described above, or -1 if + * For {@code DropMode.ON_OR_INSERT}, this value will be + * an insert index, as described above, or {@code -1} if * the drop occurred over the path itself. * * @return the child index @@ -368,17 +368,17 @@ * tree. *

      * Interpretation of this value depends on the drop mode set on the - * component. If the drop mode is DropMode.USE_SELECTION - * or DropMode.ON, the return value is the path in the + * component. If the drop mode is {@code DropMode.USE_SELECTION} + * or {@code DropMode.ON}, the return value is the path in the * tree over which the data has been (or will be) dropped. - * null indicates that the drop is over empty space, + * {@code null} indicates that the drop is over empty space, * not associated with a particular path. *

      - * If the drop mode is DropMode.INSERT, the return value + * If the drop mode is {@code DropMode.INSERT}, the return value * refers to the path that should become the parent of the new data, - * in which case getChildIndex() indicates where the + * in which case {@code getChildIndex()} indicates where the * new item should be inserted into this parent path. A - * null path indicates that no parent path has been + * {@code null} path indicates that no parent path has been * determined, which can happen for multiple reasons: *

        *
      • The tree has no model @@ -387,13 +387,13 @@ *
      • The root is a leaf node *
      * It is up to the developer to decide if and how they wish to handle - * the null case. + * the {@code null} case. *

      - * If the drop mode is DropMode.ON_OR_INSERT, - * getChildIndex can be used to determine whether the - * drop is on top of the path itself (-1) or the index + * If the drop mode is {@code DropMode.ON_OR_INSERT}, + * {@code getChildIndex} can be used to determine whether the + * drop is on top of the path itself ({@code -1}) or the index * at which it should be inserted into the path (values other than - * -1). + * {@code -1}). * * @return the drop path * @see #getChildIndex @@ -441,10 +441,10 @@ private TreeTimer dropTimer; /** - * When addTreeExpansionListener is invoked, - * and settingUI is true, this ivar gets set to the passed in - * Listener. This listener is then notified first in - * fireTreeCollapsed and fireTreeExpanded. + * When {@code addTreeExpansionListener} is invoked, + * and {@code settingUI} is true, this ivar gets set to the passed in + * {@code Listener}. This listener is then notified first in + * {@code fireTreeCollapsed} and {@code fireTreeExpanded}. *

      This is an ugly workaround for a way to have the UI listener * get notified before other listeners. */ @@ -458,33 +458,33 @@ // // Bound property names // - /** Bound property name for cellRenderer. */ + /** Bound property name for {@code cellRenderer}. */ public static final String CELL_RENDERER_PROPERTY = "cellRenderer"; - /** Bound property name for treeModel. */ + /** Bound property name for {@code treeModel}. */ public static final String TREE_MODEL_PROPERTY = "model"; - /** Bound property name for rootVisible. */ + /** Bound property name for {@code rootVisible}. */ public static final String ROOT_VISIBLE_PROPERTY = "rootVisible"; - /** Bound property name for showsRootHandles. */ + /** Bound property name for {@code showsRootHandles}. */ public static final String SHOWS_ROOT_HANDLES_PROPERTY = "showsRootHandles"; - /** Bound property name for rowHeight. */ + /** Bound property name for {@code rowHeight}. */ public static final String ROW_HEIGHT_PROPERTY = "rowHeight"; - /** Bound property name for cellEditor. */ + /** Bound property name for {@code cellEditor}. */ public static final String CELL_EDITOR_PROPERTY = "cellEditor"; - /** Bound property name for editable. */ + /** Bound property name for {@code editable}. */ public static final String EDITABLE_PROPERTY = "editable"; - /** Bound property name for largeModel. */ + /** Bound property name for {@code largeModel}. */ public static final String LARGE_MODEL_PROPERTY = "largeModel"; /** Bound property name for selectionModel. */ public static final String SELECTION_MODEL_PROPERTY = "selectionModel"; - /** Bound property name for visibleRowCount. */ + /** Bound property name for {@code visibleRowCount}. */ public static final String VISIBLE_ROW_COUNT_PROPERTY = "visibleRowCount"; - /** Bound property name for messagesStopCellEditing. */ + /** Bound property name for {@code messagesStopCellEditing}. */ public static final String INVOKES_STOP_CELL_EDITING_PROPERTY = "invokesStopCellEditing"; - /** Bound property name for scrollsOnExpand. */ + /** Bound property name for {@code scrollsOnExpand}. */ public static final String SCROLLS_ON_EXPAND_PROPERTY = "scrollsOnExpand"; - /** Bound property name for toggleClickCount. */ + /** Bound property name for {@code toggleClickCount}. */ public static final String TOGGLE_CLICK_COUNT_PROPERTY = "toggleClickCount"; - /** Bound property name for leadSelectionPath. + /** Bound property name for {@code leadSelectionPath}. * @since 1.3 */ public static final String LEAD_SELECTION_PATH_PROPERTY = "leadSelectionPath"; /** Bound property name for anchor selection path. @@ -496,10 +496,10 @@ /** - * Creates and returns a sample TreeModel. + * Creates and returns a sample {@code TreeModel}. * Used primarily for beanbuilders to show something interesting. * - * @return the default TreeModel + * @return the default {@code TreeModel} */ protected static TreeModel getDefaultTreeModel() { DefaultMutableTreeNode root = new DefaultMutableTreeNode("JTree"); @@ -529,18 +529,18 @@ } /** - * Returns a TreeModel wrapping the specified object. + * Returns a {@code TreeModel} wrapping the specified object. * If the object is:

        - *
      • an array of Objects, - *
      • a Hashtable, or - *
      • a Vector + *
      • an array of {@code Object}s, + *
      • a {@code Hashtable}, or + *
      • a {@code Vector} *
      then a new root node is created with each of the incoming * objects as children. Otherwise, a new root is created with * a value of {@code "root"}. * - * @param value the Object used as the foundation for - * the TreeModel - * @return a TreeModel wrapping the specified object + * @param value the {@code Object} used as the foundation for + * the {@code TreeModel} + * @return a {@code TreeModel} wrapping the specified object */ protected static TreeModel createTreeModel(Object value) { DefaultMutableTreeNode root; @@ -557,7 +557,7 @@ } /** - * Returns a JTree with a sample model. + * Returns a {@code JTree} with a sample model. * The default model used by the tree defines a leaf node as any node * without children. * @@ -568,13 +568,13 @@ } /** - * Returns a JTree with each element of the + * Returns a {@code JTree} with each element of the * specified array as the * child of a new root node which is not displayed. * By default, the tree defines a leaf node as any node without * children. * - * @param value an array of Objects + * @param value an array of {@code Object}s * @see DefaultTreeModel#asksAllowsChildren */ public JTree(Object[] value) { @@ -585,12 +585,12 @@ } /** - * Returns a JTree with each element of the specified - * Vector as the + * Returns a {@code JTree} with each element of the specified + * {@code Vector} as the * child of a new root node which is not displayed. By default, the * tree defines a leaf node as any node without children. * - * @param value a Vector + * @param value a {@code Vector} * @see DefaultTreeModel#asksAllowsChildren */ public JTree(Vector value) { @@ -601,13 +601,13 @@ } /** - * Returns a JTree created from a Hashtable + * Returns a {@code JTree} created from a {@code Hashtable} * which does not display with root. - * Each value-half of the key/value pairs in the HashTable + * Each value-half of the key/value pairs in the {@code HashTable} * becomes a child of the new root node. By default, the tree defines * a leaf node as any node without children. * - * @param value a Hashtable + * @param value a {@code Hashtable} * @see DefaultTreeModel#asksAllowsChildren */ public JTree(Hashtable value) { @@ -618,12 +618,12 @@ } /** - * Returns a JTree with the specified - * TreeNode as its root, + * Returns a {@code JTree} with the specified + * {@code TreeNode} as its root, * which displays the root node. * By default, the tree defines a leaf node as any node without children. * - * @param root a TreeNode object + * @param root a {@code TreeNode} object * @see DefaultTreeModel#asksAllowsChildren */ public JTree(TreeNode root) { @@ -631,12 +631,12 @@ } /** - * Returns a JTree with the specified TreeNode + * Returns a {@code JTree} with the specified {@code TreeNode} * as its root, which * displays the root node and which decides whether a node is a * leaf node in the specified manner. * - * @param root a TreeNode object + * @param root a {@code TreeNode} object * @param asksAllowsChildren if false, any node without children is a * leaf node; if true, only nodes that do not allow * children are leaf nodes @@ -647,10 +647,10 @@ } /** - * Returns an instance of JTree which displays the root node + * Returns an instance of {@code JTree} which displays the root node * -- the tree is created using the specified data model. * - * @param newModel the TreeModel to use as the data model + * @param newModel the {@code TreeModel} to use as the data model */ @ConstructorProperties({"model"}) public JTree(TreeModel newModel) { @@ -674,7 +674,7 @@ /** * Returns the L&F object that renders this component. * - * @return the TreeUI object that renders this component + * @return the {@code TreeUI} object that renders this component */ public TreeUI getUI() { return (TreeUI)ui; @@ -685,7 +685,7 @@ *

      * This is a bound property. * - * @param ui the TreeUI L&F object + * @param ui the {@code TreeUI} L&F object * @see UIDefaults#getUI * @beaninfo * bound: true @@ -707,9 +707,9 @@ } /** - * Notification from the UIManager that the L&F has changed. + * Notification from the {@code UIManager} that the L&F has changed. * Replaces the current UI object with the latest version from the - * UIManager. + * {@code UIManager}. * * @see JComponent#updateUI */ @@ -734,22 +734,22 @@ /** - * Returns the current TreeCellRenderer + * Returns the current {@code TreeCellRenderer} * that is rendering each cell. * - * @return the TreeCellRenderer that is rendering each cell + * @return the {@code TreeCellRenderer} that is rendering each cell */ public TreeCellRenderer getCellRenderer() { return cellRenderer; } /** - * Sets the TreeCellRenderer that will be used to + * Sets the {@code TreeCellRenderer} that will be used to * draw each cell. *

      * This is a bound property. * - * @param x the TreeCellRenderer that is to render each cell + * @param x the {@code TreeCellRenderer} that is to render each cell * @beaninfo * bound: true * description: The TreeCellRenderer that will be used to draw @@ -798,14 +798,14 @@ } /** - * Sets the cell editor. A null value implies that the + * Sets the cell editor. A {@code null} value implies that the * tree cannot be edited. If this represents a change in the - * cellEditor, the propertyChange + * {@code cellEditor}, the {@code propertyChange} * method is invoked on all listeners. *

      * This is a bound property. * - * @param cellEditor the TreeCellEditor to use + * @param cellEditor the {@code TreeCellEditor} to use * @beaninfo * bound: true * description: The cell editor. A null value implies the tree @@ -822,28 +822,28 @@ /** * Returns the editor used to edit entries in the tree. * - * @return the TreeCellEditor in use, - * or null if the tree cannot be edited + * @return the {@code TreeCellEditor} in use, + * or {@code null} if the tree cannot be edited */ public TreeCellEditor getCellEditor() { return cellEditor; } /** - * Returns the TreeModel that is providing the data. + * Returns the {@code TreeModel} that is providing the data. * - * @return the TreeModel that is providing the data + * @return the {@code TreeModel} that is providing the data */ public TreeModel getModel() { return treeModel; } /** - * Sets the TreeModel that will provide the data. + * Sets the {@code TreeModel} that will provide the data. *

      * This is a bound property. * - * @param newModel the TreeModel that is to provide the data + * @param newModel the {@code TreeModel} that is to provide the data * @beaninfo * bound: true * description: The TreeModel that will provide the data. @@ -897,7 +897,7 @@ /** * Determines whether or not the root node from - * the TreeModel is visible. + * the {@code TreeModel} is visible. *

      * This is a bound property. * @@ -919,17 +919,17 @@ } /** - * Sets the value of the showsRootHandles property, + * Sets the value of the {@code showsRootHandles} property, * which specifies whether the node handles should be displayed. * The default value of this property depends on the constructor - * used to create the JTree. + * used to create the {@code JTree}. * Some look and feels might not support handles; * they will ignore this property. *

      * This is a bound property. * - * @param newValue true if root handles should be displayed; - * otherwise, false + * @param newValue {@code true} if root handles should be displayed; + * otherwise, {@code false} * @see #showsRootHandles * @see #getShowsRootHandles * @beaninfo @@ -952,9 +952,9 @@ } /** - * Returns the value of the showsRootHandles property. + * Returns the value of the {@code showsRootHandles} property. * - * @return the value of the showsRootHandles property + * @return the value of the {@code showsRootHandles} property * @see #showsRootHandles */ public boolean getShowsRootHandles() @@ -1040,14 +1040,14 @@ /** * Determines what happens when editing is interrupted by selecting * another node in the tree, a change in the tree's data, or by some - * other means. Setting this property to true causes the + * other means. Setting this property to {@code true} causes the * changes to be automatically saved when editing is interrupted. *

      * Fires a property change for the INVOKES_STOP_CELL_EDITING_PROPERTY. * - * @param newValue true means that stopCellEditing is invoked + * @param newValue true means that {@code stopCellEditing} is invoked * when editing is interrupted, and data is saved; false means that - * cancelCellEditing is invoked, and changes are lost + * {@code cancelCellEditing} is invoked, and changes are lost * @beaninfo * bound: true * description: Determines what happens when editing is interrupted, @@ -1075,10 +1075,10 @@ } /** - * Sets the scrollsOnExpand property, + * Sets the {@code scrollsOnExpand} property, * which determines whether the * tree might scroll to show previously hidden children. - * If this property is true (the default), + * If this property is {@code true} (the default), * when a node expands * the tree can use scrolling to make * the maximum possible number of the node's descendants visible. @@ -1087,8 +1087,8 @@ *

      * This is a bound property. * - * @param newValue false to disable scrolling on expansion; - * true to enable it + * @param newValue {@code false} to disable scrolling on expansion; + * {@code true} to enable it * @see #getScrollsOnExpand * * @beaninfo @@ -1105,9 +1105,9 @@ } /** - * Returns the value of the scrollsOnExpand property. + * Returns the value of the {@code scrollsOnExpand} property. * - * @return the value of the scrollsOnExpand property + * @return the value of the {@code scrollsOnExpand} property */ public boolean getScrollsOnExpand() { return scrollsOnExpand; @@ -1144,20 +1144,20 @@ } /** - * Configures the expandsSelectedPaths property. If + * Configures the {@code expandsSelectedPaths} property. If * true, any time the selection is changed, either via the - * TreeSelectionModel, or the cover methods provided by - * JTree, the TreePaths parents will be + * {@code TreeSelectionModel}, or the cover methods provided by + * {@code JTree}, the {@code TreePath}s parents will be * expanded to make them visible (visible meaning the parent path is * expanded, not necessarily in the visible rectangle of the - * JTree). If false, when the selection + * {@code JTree}). If false, when the selection * changes the nodes parent is not made visible (all its parents expanded). * This is useful if you wish to have your selection model maintain paths * that are not always visible (all parents expanded). *

      * This is a bound property. * - * @param newValue the new value for expandsSelectedPaths + * @param newValue the new value for {@code expandsSelectedPaths} * * @since 1.3 * @beaninfo @@ -1174,7 +1174,7 @@ } /** - * Returns the expandsSelectedPaths property. + * Returns the {@code expandsSelectedPaths} property. * @return true if selection changes result in the parent path being * expanded * @since 1.3 @@ -1204,9 +1204,9 @@ * * @param b whether or not to enable automatic drag handling * @exception HeadlessException if - * b is true and - * GraphicsEnvironment.isHeadless() - * returns true + * {@code b} is {@code true} and + * {@code GraphicsEnvironment.isHeadless()} + * returns {@code true} * @see java.awt.GraphicsEnvironment#isHeadless * @see #getDragEnabled * @see #setTransferHandler @@ -1241,26 +1241,26 @@ /** * Sets the drop mode for this component. For backward compatibility, - * the default for this property is DropMode.USE_SELECTION. + * the default for this property is {@code DropMode.USE_SELECTION}. * Usage of one of the other modes is recommended, however, for an - * improved user experience. DropMode.ON, for instance, + * improved user experience. {@code DropMode.ON}, for instance, * offers similar behavior of showing items as selected, but does so without * affecting the actual selection in the tree. *

      - * JTree supports the following drop modes: + * {@code JTree} supports the following drop modes: *

        - *
      • DropMode.USE_SELECTION
      • - *
      • DropMode.ON
      • - *
      • DropMode.INSERT
      • - *
      • DropMode.ON_OR_INSERT
      • + *
      • {@code DropMode.USE_SELECTION}
      • + *
      • {@code DropMode.ON}
      • + *
      • {@code DropMode.INSERT}
      • + *
      • {@code DropMode.ON_OR_INSERT}
      • *
      *

      * The drop mode is only meaningful if this component has a - * TransferHandler that accepts drops. + * {@code TransferHandler} that accepts drops. * * @param dropMode the drop mode to use * @throws IllegalArgumentException if the drop mode is unsupported - * or null + * or {@code null} * @see #getDropMode * @see #getDropLocation * @see #setTransferHandler @@ -1303,7 +1303,7 @@ * drop at the given point should insert data. * * @param p the point to calculate a drop location for - * @return the drop location, or null + * @return the drop location, or {@code null} */ DropLocation dropLocationForPoint(Point p) { DropLocation location = null; @@ -1425,20 +1425,20 @@ * is being changed to something else. The component doesn't need to * restore anything yet, so it simply passes back the same state object * to have the DnD system continue storing it. Finally, let's say this - * method is messaged with null. This means DnD + * method is messaged with {@code null}. This means DnD * is finished with this component for now, meaning it should restore * state. At this point, it can use the state parameter to restore - * said state, and of course return null since there's + * said state, and of course return {@code null} since there's * no longer anything to store. * * @param location the drop location (as calculated by - * dropLocationForPoint) or null + * {@code dropLocationForPoint}) or {@code null} * if there's no longer a valid drop location * @param state the state object saved earlier for this component, - * or null + * or {@code null} * @param forDrop whether or not the method is being called because an * actual drop occurred - * @return any saved state for this component, or null if none + * @return any saved state for this component, or {@code null} if none */ Object setDropLocation(TransferHandler.DropLocation location, Object state, @@ -1494,7 +1494,7 @@ *

      * This method is not meant for querying the drop location * from a {@code TransferHandler}, as the drop location is only - * set after the {@code TransferHandler}'s canImport + * set after the {@code TransferHandler}'s {@code canImport} * has returned and has allowed for the location to be shown. *

      * When this property changes, a property change event with @@ -1524,7 +1524,7 @@ } /** - * Returns isEditable. This is invoked from the UI before + * Returns {@code isEditable}. This is invoked from the UI before * editing begins to insure that the given path can be edited. This * is provided as an entry point for subclassers to add filtered * editing without having to resort to creating a new editor. @@ -1538,20 +1538,20 @@ } /** - * Overrides JComponent's getToolTipText + * Overrides {@code JComponent}'s {@code getToolTipText} * method in order to allow * renderer's tips to be used if it has text set. *

      - * NOTE: For JTree to properly display tooltips of its - * renderers, JTree must be a registered component with the - * ToolTipManager. This can be done by invoking - * ToolTipManager.sharedInstance().registerComponent(tree). + * NOTE: For {@code JTree} to properly display tooltips of its + * renderers, {@code JTree} must be a registered component with the + * {@code ToolTipManager}. This can be done by invoking + * {@code ToolTipManager.sharedInstance().registerComponent(tree)}. * This is not done automatically! * - * @param event the MouseEvent that initiated the - * ToolTip display - * @return a string containing the tooltip or null - * if event is null + * @param event the {@code MouseEvent} that initiated the + * {@code ToolTip} display + * @return a string containing the tooltip or {@code null} + * if {@code event} is null */ public String getToolTipText(MouseEvent event) { String tip = null; @@ -1597,18 +1597,18 @@ /** * Called by the renderers to convert the specified value to - * text. This implementation returns value.toString, ignoring + * text. This implementation returns {@code value.toString}, ignoring * all other arguments. To control the conversion, subclass this * method and use any of the arguments you need. * - * @param value the Object to convert to text + * @param value the {@code Object} to convert to text * @param selected true if the node is selected * @param expanded true if the node is expanded * @param leaf true if the node is a leaf node * @param row an integer specifying the node's display row, where 0 is * the first row in the display * @param hasFocus true if the node has the focus - * @return the String representation of the node's value + * @return the {@code String} representation of the node's value */ public String convertValueToText(Object value, boolean selected, boolean expanded, boolean leaf, int row, @@ -1646,10 +1646,10 @@ /** * Selects the node identified by the specified path. If any * component of the path is hidden (under a collapsed node), and - * getExpandsSelectedPaths is true it is + * {@code getExpandsSelectedPaths} is true it is * exposed (made viewable). * - * @param path the TreePath specifying the node to select + * @param path the {@code TreePath} specifying the node to select */ public void setSelectionPath(TreePath path) { getSelectionModel().setSelectionPath(path); @@ -1658,10 +1658,10 @@ /** * Selects the nodes identified by the specified array of paths. * If any component in any of the paths is hidden (under a collapsed - * node), and getExpandsSelectedPaths is true + * node), and {@code getExpandsSelectedPaths} is true * it is exposed (made viewable). * - * @param paths an array of TreePath objects that specifies + * @param paths an array of {@code TreePath} objects that specifies * the nodes to select */ public void setSelectionPaths(TreePath[] paths) { @@ -1670,7 +1670,7 @@ /** * Sets the path identifies as the lead. The lead may not be selected. - * The lead is not maintained by JTree, + * The lead is not maintained by {@code JTree}, * rather the UI will update it. *

      * This is a bound property. @@ -1698,7 +1698,7 @@ /** * Sets the path identified as the anchor. - * The anchor is not maintained by JTree, rather the UI will + * The anchor is not maintained by {@code JTree}, rather the UI will * update it. *

      * This is a bound property. @@ -1730,11 +1730,11 @@ /** * Selects the nodes corresponding to each of the specified rows - * in the display. If a particular element of rows is - * < 0 or >= getRowCount, it will be ignored. + * in the display. If a particular element of {@code rows} is + * < 0 or >= {@code getRowCount}, it will be ignored. * If none of the elements - * in rows are valid rows, the selection will - * be cleared. That is it will be as if clearSelection + * in {@code rows} are valid rows, the selection will + * be cleared. That is it will be as if {@code clearSelection} * was invoked. * * @param rows an array of ints specifying the rows to select, @@ -1755,16 +1755,16 @@ } /** - * Adds the node identified by the specified TreePath + * Adds the node identified by the specified {@code TreePath} * to the current selection. If any component of the path isn't - * viewable, and getExpandsSelectedPaths is true it is + * viewable, and {@code getExpandsSelectedPaths} is true it is * made viewable. *

      - * Note that JTree does not allow duplicate nodes to + * Note that {@code JTree} does not allow duplicate nodes to * exist as children under the same parent -- each sibling must be * a unique object. * - * @param path the TreePath to add + * @param path the {@code TreePath} to add */ public void addSelectionPath(TreePath path) { getSelectionModel().addSelectionPath(path); @@ -1773,14 +1773,14 @@ /** * Adds each path in the array of paths to the current selection. If * any component of any of the paths isn't viewable and - * getExpandsSelectedPaths is true, it is + * {@code getExpandsSelectedPaths} is true, it is * made viewable. *

      - * Note that JTree does not allow duplicate nodes to + * Note that {@code JTree} does not allow duplicate nodes to * exist as children under the same parent -- each sibling must be * a unique object. * - * @param paths an array of TreePath objects that specifies + * @param paths an array of {@code TreePath} objects that specifies * the nodes to add */ public void addSelectionPaths(TreePath[] paths) { @@ -1825,7 +1825,7 @@ * This is typically only useful if the selection has one path. * * @return the last path component of the selected path, or - * null if nothing is selected + * {@code null} if nothing is selected * @see TreePath#getLastPathComponent */ public Object getLastSelectedPathComponent() { @@ -1856,8 +1856,8 @@ /** * Returns the path to the first selected node. * - * @return the TreePath for the first selected node, - * or null if nothing is currently selected + * @return the {@code TreePath} for the first selected node, + * or {@code null} if nothing is currently selected */ public TreePath getSelectionPath() { return getSelectionModel().getSelectionPath(); @@ -1866,8 +1866,8 @@ /** * Returns the paths of all selected values. * - * @return an array of TreePath objects indicating the selected - * nodes, or null if nothing is currently selected + * @return an array of {@code TreePath} objects indicating the selected + * nodes, or {@code null} if nothing is currently selected */ public TreePath[] getSelectionPaths() { TreePath[] selectionPaths = getSelectionModel().getSelectionPaths(); @@ -1877,9 +1877,9 @@ /** * Returns all of the currently selected rows. This method is simply - * forwarded to the TreeSelectionModel. - * If nothing is selected null or an empty array will - * be returned, based on the TreeSelectionModel + * forwarded to the {@code TreeSelectionModel}. + * If nothing is selected {@code null} or an empty array will + * be returned, based on the {@code TreeSelectionModel} * implementation. * * @return an array of integers that identifies all currently selected rows @@ -1923,7 +1923,7 @@ * * @return an integer giving the row index of the lead path, * where 0 is the first row in the display; or -1 - * if leadPath is null + * if {@code leadPath} is {@code null} */ public int getLeadSelectionRow() { TreePath leadPath = getLeadSelectionPath(); @@ -1937,7 +1937,7 @@ /** * Returns true if the item identified by the path is currently selected. * - * @param path a TreePath identifying a node + * @param path a {@code TreePath} identifying a node * @return true if the node is selected */ public boolean isPathSelected(TreePath path) { @@ -1956,19 +1956,19 @@ } /** - * Returns an Enumeration of the descendants of the - * path parent that - * are currently expanded. If parent is not currently - * expanded, this will return null. + * Returns an {@code Enumeration} of the descendants of the + * path {@code parent} that + * are currently expanded. If {@code parent} is not currently + * expanded, this will return {@code null}. * If you expand/collapse nodes while - * iterating over the returned Enumeration + * iterating over the returned {@code Enumeration} * this may not return all * the expanded paths, or may return paths that are no longer expanded. * * @param parent the path which is to be examined - * @return an Enumeration of the descendents of - * parent, or null if - * parent is not currently expanded + * @return an {@code Enumeration} of the descendents of + * {@code parent}, or {@code null} if + * {@code parent} is not currently expanded */ public Enumeration getExpandedDescendants(TreePath parent) { if(!isExpanded(parent)) @@ -2008,7 +2008,7 @@ * expanded. * * @param path a {@code TreePath} identifying a node - * @return true if the path has ever been expanded + * @return true if the {@code path} has ever been expanded */ public boolean hasBeenExpanded(TreePath path) { return (path != null && expandedState.get(path) != null); @@ -2017,7 +2017,7 @@ /** * Returns true if the node identified by the path is currently expanded, * - * @param path the TreePath specifying the node to check + * @param path the {@code TreePath} specifying the node to check * @return false if any of the nodes in the node's path are collapsed, * true if all nodes in the path are expanded */ @@ -2064,7 +2064,7 @@ * this will return false if any of the values in path are currently * not being displayed. * - * @param path the TreePath to check + * @param path the {@code TreePath} to check * @return true if any of the nodes in the node's path are collapsed, * false if all nodes in the path are expanded */ @@ -2086,7 +2086,7 @@ /** * Ensures that the node identified by path is currently viewable. * - * @param path the TreePath to make visible + * @param path the {@code TreePath} to make visible */ public void makeVisible(TreePath path) { if(path != null) { @@ -2119,17 +2119,17 @@ } /** - * Returns the Rectangle that the specified node will be drawn - * into. Returns null if any component in the path is hidden + * Returns the {@code Rectangle} that the specified node will be drawn + * into. Returns {@code null} if any component in the path is hidden * (under a collapsed parent). *

      * Note:
      * This method returns a valid rectangle, even if the specified * node is not currently displayed. * - * @param path the TreePath identifying the node - * @return the Rectangle the node is drawn in, - * or null + * @param path the {@code TreePath} identifying the node + * @return the {@code Rectangle} the node is drawn in, + * or {@code null} */ public Rectangle getPathBounds(TreePath path) { TreeUI tree = getUI(); @@ -2140,12 +2140,12 @@ } /** - * Returns the Rectangle that the node at the specified row is + * Returns the {@code Rectangle} that the node at the specified row is * drawn in. * * @param row the row to be drawn, where 0 is the first row in the * display - * @return the Rectangle the node is drawn in + * @return the {@code Rectangle} the node is drawn in */ public Rectangle getRowBounds(int row) { return getPathBounds(getPathForRow(row)); @@ -2155,9 +2155,9 @@ * Makes sure all the path components in path are expanded (except * for the last path component) and scrolls so that the * node identified by the path is displayed. Only works when this - * JTree is contained in a JScrollPane. + * {@code JTree} is contained in a {@code JScrollPane}. * - * @param path the TreePath identifying the node to + * @param path the {@code TreePath} identifying the node to * bring into view */ public void scrollPathToVisible(TreePath path) { @@ -2178,8 +2178,8 @@ /** * Scrolls the item identified by row until it is displayed. The minimum * of amount of scrolling necessary to bring the row into view - * is performed. Only works when this JTree is contained in a - * JScrollPane. + * is performed. Only works when this {@code JTree} is contained in a + * {@code JScrollPane}. * * @param row an integer specifying the row to scroll, where 0 is the * first row in the display @@ -2189,14 +2189,14 @@ } /** - * Returns the path for the specified row. If row is - * not visible, or a {@code TreeUI} has not been set, null + * Returns the path for the specified row. If {@code row} is + * not visible, or a {@code TreeUI} has not been set, {@code null} * is returned. * * @param row an integer specifying a row - * @return the TreePath to the specified node, - * null if row < 0 - * or row >= getRowCount() + * @return the {@code TreePath} to the specified node, + * {@code null} if {@code row < 0} + * or {@code row >= getRowCount()} */ public TreePath getPathForRow(int row) { TreeUI tree = getUI(); @@ -2210,7 +2210,7 @@ * Returns the row that displays the node identified by the specified * path. * - * @param path the TreePath identifying a node + * @param path the {@code TreePath} identifying a node * @return an integer specifying the display row, where 0 is the first * row in the display, or -1 if any of the elements in path * are hidden under a collapsed parent. @@ -2228,7 +2228,7 @@ * expanded and viewable. If the last item in the path is a * leaf, this will have no effect. * - * @param path the TreePath identifying a node + * @param path the {@code TreePath} identifying a node */ public void expandPath(TreePath path) { // Only expand if not leaf! @@ -2244,7 +2244,7 @@ * Ensures that the node in the specified row is expanded and * viewable. *

      - * If row is < 0 or >= getRowCount this + * If {@code row} is {@code < 0} or {@code >= getRowCount} this * will have no effect. * * @param row an integer specifying a display row, where 0 is the @@ -2258,7 +2258,7 @@ * Ensures that the node identified by the specified path is * collapsed and viewable. * - * @param path the TreePath identifying a node + * @param path the {@code TreePath} identifying a node */ public void collapsePath(TreePath path) { setExpandedState(path, false); @@ -2267,7 +2267,7 @@ /** * Ensures that the node in the specified row is collapsed. *

      - * If row is < 0 or >= getRowCount this + * If {@code row} is {@code < 0} or {@code >= getRowCount} this * will have no effect. * * @param row an integer specifying a display row, where 0 is the @@ -2284,7 +2284,7 @@ * the left edge of the display area, minus any left margin * @param y an integer giving the number of pixels vertically from * the top of the display area, minus any top margin - * @return the TreePath for the node at that location + * @return the {@code TreePath} for the node at that location */ public TreePath getPathForLocation(int x, int y) { TreePath closestPath = getClosestPathForLocation(x, y); @@ -2318,7 +2318,7 @@ /** * Returns the path to the node that is closest to x,y. If * no nodes are currently viewable, or there is no model, returns - * null, otherwise it always returns a valid path. To test if + * {@code null}, otherwise it always returns a valid path. To test if * the node is exactly at x, y, get the node's bounds and * test x, y against that. * @@ -2326,8 +2326,8 @@ * the left edge of the display area, minus any left margin * @param y an integer giving the number of pixels vertically from * the top of the display area, minus any top margin - * @return the TreePath for the node closest to that location, - * null if nothing is viewable or there is no model + * @return the {@code TreePath} for the node closest to that location, + * {@code null} if nothing is viewable or there is no model * * @see #getPathForLocation * @see #getPathBounds @@ -2363,7 +2363,7 @@ /** * Returns true if the tree is being edited. The item that is being - * edited can be obtained using getSelectionPath. + * edited can be obtained using {@code getSelectionPath}. * * @return true if the user is currently editing a node * @see #getSelectionPath @@ -2378,7 +2378,7 @@ /** * Ends the current editing session. - * (The DefaultTreeCellEditor + * (The {@code DefaultTreeCellEditor} * object saves any edits that are currently in progress on a cell. * Other implementations may operate differently.) * Has no effect if the tree isn't being edited. @@ -2412,11 +2412,11 @@ /** * Selects the node identified by the specified path and initiates - * editing. The edit-attempt fails if the CellEditor + * editing. The edit-attempt fails if the {@code CellEditor} * does not allow * editing for the specified item. * - * @param path the TreePath identifying a node + * @param path the {@code TreePath} identifying a node */ public void startEditingAtPath(TreePath path) { TreeUI tree = getUI(); @@ -2428,7 +2428,7 @@ /** * Returns the path to the element that is currently being edited. * - * @return the TreePath for the node being edited + * @return the {@code TreePath} for the node being edited */ public TreePath getEditingPath() { TreeUI tree = getUI(); @@ -2448,14 +2448,14 @@ // /** - * Sets the tree's selection model. When a null value is + * Sets the tree's selection model. When a {@code null} value is * specified an empty - * selectionModel is used, which does not allow selections. + * {@code selectionModel} is used, which does not allow selections. *

      * This is a bound property. * - * @param selectionModel the TreeSelectionModel to use, - * or null to disable selections + * @param selectionModel the {@code TreeSelectionModel} to use, + * or {@code null} to disable selections * @see TreeSelectionModel * @beaninfo * bound: true @@ -2492,9 +2492,9 @@ /** * Returns the model for selections. This should always return a - * non-null value. If you don't want to allow anything + * non-{@code null} value. If you don't want to allow anything * to be selected - * set the selection model to null, which forces an empty + * set the selection model to {@code null}, which forces an empty * selection model to be used. * * @return the model for selections @@ -2639,7 +2639,7 @@ * Removes the node identified by the specified path from the current * selection. * - * @param path the TreePath identifying a node + * @param path the {@code TreePath} identifying a node */ public void removeSelectionPath(TreePath path) { this.getSelectionModel().removeSelectionPath(path); @@ -2649,7 +2649,7 @@ * Removes the nodes identified by the specified paths from the * current selection. * - * @param paths an array of TreePath objects that + * @param paths an array of {@code TreePath} objects that * specifies the nodes to remove */ public void removeSelectionPaths(TreePath[] paths) { @@ -2657,7 +2657,7 @@ } /** - * Removes the row at the index row from the current + * Removes the row at the index {@code row} from the current * selection. * * @param row the row to remove @@ -2705,7 +2705,7 @@ } /** - * Adds a listener for TreeExpansion events. + * Adds a listener for {@code TreeExpansion} events. * * @param tel a TreeExpansionListener that will be notified when * a tree node is expanded or collapsed (a "negative @@ -2719,9 +2719,9 @@ } /** - * Removes a listener for TreeExpansion events. + * Removes a listener for {@code TreeExpansion} events. * - * @param tel the TreeExpansionListener to remove + * @param tel the {@code TreeExpansionListener} to remove */ public void removeTreeExpansionListener(TreeExpansionListener tel) { listenerList.remove(TreeExpansionListener.class, tel); @@ -2731,10 +2731,10 @@ } /** - * Returns an array of all the TreeExpansionListeners added + * Returns an array of all the {@code TreeExpansionListener}s added * to this JTree with addTreeExpansionListener(). * - * @return all of the TreeExpansionListeners added or an empty + * @return all of the {@code TreeExpansionListener}s added or an empty * array if no listeners have been added * @since 1.4 */ @@ -2743,9 +2743,9 @@ } /** - * Adds a listener for TreeWillExpand events. + * Adds a listener for {@code TreeWillExpand} events. * - * @param tel a TreeWillExpandListener that will be notified + * @param tel a {@code TreeWillExpandListener} that will be notified * when a tree node will be expanded or collapsed (a "negative * expansion") */ @@ -2754,19 +2754,19 @@ } /** - * Removes a listener for TreeWillExpand events. + * Removes a listener for {@code TreeWillExpand} events. * - * @param tel the TreeWillExpandListener to remove + * @param tel the {@code TreeWillExpandListener} to remove */ public void removeTreeWillExpandListener(TreeWillExpandListener tel) { listenerList.remove(TreeWillExpandListener.class, tel); } /** - * Returns an array of all the TreeWillExpandListeners added + * Returns an array of all the {@code TreeWillExpandListener}s added * to this JTree with addTreeWillExpandListener(). * - * @return all of the TreeWillExpandListeners added or an empty + * @return all of the {@code TreeWillExpandListener}s added or an empty * array if no listeners have been added * @since 1.4 */ @@ -2777,9 +2777,9 @@ /** * Notifies all listeners that have registered interest for * notification on this event type. The event instance - * is lazily created using the path parameter. + * is lazily created using the {@code path} parameter. * - * @param path the TreePath indicating the node that was + * @param path the {@code TreePath} indicating the node that was * expanded * @see EventListenerList */ @@ -2808,9 +2808,9 @@ /** * Notifies all listeners that have registered interest for * notification on this event type. The event instance - * is lazily created using the path parameter. + * is lazily created using the {@code path} parameter. * - * @param path the TreePath indicating the node that was + * @param path the {@code TreePath} indicating the node that was * collapsed * @see EventListenerList */ @@ -2839,9 +2839,9 @@ /** * Notifies all listeners that have registered interest for * notification on this event type. The event instance - * is lazily created using the path parameter. + * is lazily created using the {@code path} parameter. * - * @param path the TreePath indicating the node that was + * @param path the {@code TreePath} indicating the node that was * expanded * @throws ExpandVetoException if the expansion is prevented from occurring * @see EventListenerList @@ -2866,9 +2866,9 @@ /** * Notifies all listeners that have registered interest for * notification on this event type. The event instance - * is lazily created using the path parameter. + * is lazily created using the {@code path} parameter. * - * @param path the TreePath indicating the node that was + * @param path the {@code TreePath} indicating the node that was * expanded * @throws ExpandVetoException if the collapse is prevented from occurring * @see EventListenerList @@ -2891,9 +2891,9 @@ } /** - * Adds a listener for TreeSelection events. + * Adds a listener for {@code TreeSelection} events. * - * @param tsl the TreeSelectionListener that will be notified + * @param tsl the {@code TreeSelectionListener} that will be notified * when a node is selected or deselected (a "negative * selection") */ @@ -2907,9 +2907,9 @@ } /** - * Removes a TreeSelection listener. + * Removes a {@code TreeSelection} listener. * - * @param tsl the TreeSelectionListener to remove + * @param tsl the {@code TreeSelectionListener} to remove */ public void removeTreeSelectionListener(TreeSelectionListener tsl) { listenerList.remove(TreeSelectionListener.class,tsl); @@ -2922,10 +2922,10 @@ } /** - * Returns an array of all the TreeSelectionListeners added + * Returns an array of all the {@code TreeSelectionListener}s added * to this JTree with addTreeSelectionListener(). * - * @return all of the TreeSelectionListeners added or an empty + * @return all of the {@code TreeSelectionListener}s added or an empty * array if no listeners have been added * @since 1.4 */ @@ -2937,9 +2937,9 @@ * Notifies all listeners that have registered interest for * notification on this event type. * - * @param e the TreeSelectionEvent to be fired; + * @param e the {@code TreeSelectionEvent} to be fired; * generated by the - * TreeSelectionModel + * {@code TreeSelectionModel} * when a node is selected or deselected * @see EventListenerList */ @@ -2974,7 +2974,7 @@ /** * Sets the number of rows that are to be displayed. * This will only work if the tree is contained in a - * JScrollPane, + * {@code JScrollPane}, * and will adjust the preferred size and size of that scrollpane. *

      * This is a bound property. @@ -3018,7 +3018,7 @@ /** * Returns the TreePath to the next tree element that * begins with a prefix. To handle the conversion of a - * TreePath into a String, convertValueToText + * {@code TreePath} into a String, {@code convertValueToText} * is used. * * @param prefix the string to test for a match @@ -3219,7 +3219,7 @@ /** * Updates the expanded state of nodes in the tree based on the - * previously archived state state. + * previously archived state {@code state}. */ private void unarchiveExpandedState(Object state) { if(state instanceof Vector) { @@ -3240,9 +3240,9 @@ /** * Returns an array of integers specifying the indexs of the - * components in the path. If path is - * the root, this will return an empty array. If path - * is null, null will be returned. + * components in the {@code path}. If {@code path} is + * the root, this will return an empty array. If {@code path} + * is {@code null}, {@code null} will be returned. */ private int[] getModelIndexsForPath(TreePath path) { if(path != null) { @@ -3264,10 +3264,10 @@ } /** - * Returns a TreePath created by obtaining the children - * for each of the indices in indexs. If indexs - * or the TreeModel is null, it will return - * null. + * Returns a {@code TreePath} created by obtaining the children + * for each of the indices in {@code indexs}. If {@code indexs} + * or the {@code TreeModel} is {@code null}, it will return + * {@code null}. */ private TreePath getPathForIndexs(int[] indexs) { if(indexs == null) @@ -3295,7 +3295,7 @@ } /** - * EmptySelectionModel is a TreeSelectionModel + * {@code EmptySelectionModel} is a {@code TreeSelectionModel} * that does not allow anything to be selected. *

      * Warning: @@ -3304,7 +3304,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. */ @SuppressWarnings("serial") @@ -3416,8 +3416,8 @@ /** - * Handles creating a new TreeSelectionEvent with the - * JTree as the + * Handles creating a new {@code TreeSelectionEvent} with the + * {@code JTree} as the * source and passing it off to all the listeners. *

      * Warning: @@ -3426,7 +3426,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. */ @SuppressWarnings("serial") @@ -3434,11 +3434,11 @@ TreeSelectionListener { /** - * Invoked by the TreeSelectionModel when the + * Invoked by the {@code TreeSelectionModel} when the * selection changes. * - * @param e the TreeSelectionEvent generated by the - * TreeSelectionModel + * @param e the {@code TreeSelectionEvent} generated by the + * {@code TreeSelectionModel} */ public void valueChanged(TreeSelectionEvent e) { TreeSelectionEvent newE; @@ -3453,11 +3453,11 @@ // /** - * Returns the preferred display size of a JTree. The height is - * determined from getVisibleRowCount and the width + * Returns the preferred display size of a {@code JTree}. The height is + * determined from {@code getVisibleRowCount} and the width * is the current preferred width. * - * @return a Dimension object containing the preferred size + * @return a {@code Dimension} object containing the preferred size */ public Dimension getPreferredScrollableViewportSize() { int width = getPreferredSize().width; @@ -3499,8 +3499,8 @@ * scrolling direction. * * @param visibleRect the view area visible within the viewport - * @param orientation either SwingConstants.VERTICAL - * or SwingConstants.HORIZONTAL + * @param orientation either {@code SwingConstants.VERTICAL} + * or {@code SwingConstants.HORIZONTAL} * @param direction less than zero to scroll up/left, * greater than zero for down/right * @return the "unit" increment for scrolling in the specified direction @@ -3540,11 +3540,11 @@ /** * Returns the amount for a block increment, which is the height or - * width of visibleRect, based on orientation. + * width of {@code visibleRect}, based on {@code orientation}. * * @param visibleRect the view area visible within the viewport - * @param orientation either SwingConstants.VERTICAL - * or SwingConstants.HORIZONTAL + * @param orientation either {@code SwingConstants.VERTICAL} + * or {@code SwingConstants.HORIZONTAL} * @param direction less than zero to scroll up/left, * greater than zero for down/right. * @return the "block" increment for scrolling in the specified direction @@ -3591,13 +3591,13 @@ } /** - * Sets the expanded state of this JTree. - * If state is - * true, all parents of path and path are marked as - * expanded. If state is false, all parents of - * path are marked EXPANDED, but path itself + * Sets the expanded state of this {@code JTree}. + * If {@code state} is + * true, all parents of {@code path} and path are marked as + * expanded. If {@code state} is false, all parents of + * {@code path} are marked EXPANDED, but {@code path} itself * is marked collapsed.

      - * This will fail if a TreeWillExpandListener vetos it. + * This will fail if a {@code TreeWillExpandListener} vetos it. * * @param path a {@code TreePath} identifying a node * @param state if {@code true}, all parents of @{code path} and path are marked as expanded. @@ -3723,8 +3723,8 @@ } /** - * Removes any descendants of the TreePaths in - * toRemove + * Removes any descendants of the {@code TreePaths} in + * {@code toRemove} * that have been expanded. * * @param toRemove an enumeration of the paths to remove; a value of @@ -3752,17 +3752,17 @@ /** * Clears the cache of toggled tree paths. This does NOT send out - * any TreeExpansionListener events. + * any {@code TreeExpansionListener} events. */ protected void clearToggledPaths() { expandedState.clear(); } /** - * Creates and returns an instance of TreeModelHandler. + * Creates and returns an instance of {@code TreeModelHandler}. * The returned * object is responsible for updating the expanded state when the - * TreeModel changes. + * {@code TreeModel} changes. *

      * For more information on what expanded state means, see the * JTree description above. @@ -3775,8 +3775,8 @@ /** * Removes any paths in the selection that are descendants of - * path. If includePath is true and - * path is selected, it will be removed from the selection. + * {@code path}. If {@code includePath} is true and + * {@code path} is selected, it will be removed from the selection. * * @param path a path * @param includePath is {@code true} and {@code path} is selected, @@ -3797,7 +3797,7 @@ /** * Returns an array of paths in the selection that are descendants of - * path. The returned array may contain nulls. + * {@code path}. The returned array may contain {@code null}s. */ private TreePath[] getDescendantSelectedPaths(TreePath path, boolean includePath) { @@ -3826,7 +3826,7 @@ /** * Removes any paths from the selection model that are descendants of - * the nodes identified by in e. + * the nodes identified by in {@code e}. */ void removeDescendantSelectedPaths(TreeModelEvent e) { TreePath pPath = SwingUtilities2.getTreePath(e, getModel()); @@ -3847,7 +3847,7 @@ /** - * Listens to the model and updates the expandedState + * Listens to the model and updates the {@code expandedState} * accordingly when nodes are removed, or changed. */ protected class TreeModelHandler implements TreeModelListener { @@ -3932,7 +3932,7 @@ /** - * DynamicUtilTreeNode can wrap + * {@code DynamicUtilTreeNode} can wrap * vectors/hashtables/arrays/strings and * create the appropriate children tree nodes as necessary. It is * dynamic in that it will only create the children as necessary. @@ -3943,13 +3943,13 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. */ @SuppressWarnings("serial") public static class DynamicUtilTreeNode extends DefaultMutableTreeNode { /** - * Does the this JTree have children? + * Does the this {@code JTree} have children? * This property is currently not implemented. */ protected boolean hasChildren; @@ -3959,11 +3959,11 @@ protected boolean loadedChildren; /** - * Adds to parent all the children in children. - * If children is an array or vector all of its - * elements are added is children, otherwise if children + * Adds to parent all the children in {@code children}. + * If {@code children} is an array or vector all of its + * elements are added is children, otherwise if {@code children} * is a hashtable all the key/value pairs are added in the order - * Enumeration returns them. + * {@code Enumeration} returns them. * * @param parent the parent node * @param children the children @@ -4004,17 +4004,17 @@ * Creates a node with the specified object as its value and * with the specified children. For the node to allow children, * the children-object must be an array of objects, a - * Vector, or a Hashtable -- even + * {@code Vector}, or a {@code Hashtable} -- even * if empty. Otherwise, the node is not * allowed to have children. * - * @param value the Object that is the value for the + * @param value the {@code Object} that is the value for the * new node - * @param children an array of Objects, a - * Vector, or a Hashtable + * @param children an array of {@code Object}s, a + * {@code Vector}, or a {@code Hashtable} * used to create the child nodes; if any other * object is specified, or if the value is - * null, + * {@code null}, * then the node is not allowed to have children */ public DynamicUtilTreeNode(Object value, Object children) { @@ -4058,12 +4058,12 @@ } /** - * Loads the children based on childValue. - * If childValue is a Vector + * Loads the children based on {@code childValue}. + * If {@code childValue} is a {@code Vector} * or array each element is added as a child, - * if childValue is a Hashtable + * if {@code childValue} is a {@code Hashtable} * each key/value pair is added in the order that - * Enumeration returns the keys. + * {@code Enumeration} returns the keys. */ protected void loadChildren() { loadedChildren = true; @@ -4112,14 +4112,14 @@ /** - * Returns a string representation of this JTree. + * Returns a string representation of this {@code JTree}. * This method * is intended to be used only for debugging purposes, and the * content and format of the returned string may vary between * implementations. The returned string may be empty but may not - * be null. + * be {@code null}. * - * @return a string representation of this JTree. + * @return a string representation of this {@code JTree}. */ protected String paramString() { String rootVisibleString = (rootVisible ? @@ -4169,7 +4169,7 @@ /** * This class implements accessibility support for the - * JTree class. It provides an implementation of the + * {@code JTree} class. It provides an implementation of the * Java Accessibility API appropriate to tree user-interface elements. *

      * Warning: @@ -4178,7 +4178,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. */ @SuppressWarnings("serial") @@ -4404,13 +4404,13 @@ } /** - * Returns the Accessible child, if one exists, - * contained at the local coordinate Point. - * Otherwise returns null. + * Returns the {@code Accessible} child, if one exists, + * contained at the local coordinate {@code Point}. + * Otherwise returns {@code null}. * - * @param p point in local coordinates of this Accessible - * @return the Accessible, if it exists, - * at the specified location; else null + * @param p point in local coordinates of this {@code Accessible} + * @return the {@code Accessible}, if it exists, + * at the specified location; else {@code null} */ public Accessible getAccessibleAt(Point p) { TreePath path = getClosestPathForLocation(p.x, p.y); @@ -4651,7 +4651,7 @@ /** * This class implements accessibility support for the - * JTree child. It provides an implementation of the + * {@code JTree} child. It provides an implementation of the * Java Accessibility API appropriate to tree nodes. */ protected class AccessibleJTreeNode extends AccessibleContext @@ -5374,14 +5374,14 @@ } /** - * Returns the Accessible child, if one exists, - * contained at the local coordinate Point. - * Otherwise returns null. + * Returns the {@code Accessible} child, if one exists, + * contained at the local coordinate {@code Point}. + * Otherwise returns {@code null}. * * @param p point in local coordinates of this - * Accessible - * @return the Accessible, if it exists, - * at the specified location; else null + * {@code Accessible} + * @return the {@code Accessible}, if it exists, + * at the specified location; else {@code null} */ public Accessible getAccessibleAt(Point p) { AccessibleContext ac = getCurrentAccessibleContext(); --- old/src/java.desktop/share/classes/javax/swing/JViewport.java 2015-10-04 22:57:06.033262368 +0400 +++ new/src/java.desktop/share/classes/javax/swing/JViewport.java 2015-10-04 22:57:05.825262377 +0400 @@ -46,20 +46,20 @@ * brings new things into view at the top of the picture and loses * things that were at the bottom. *

      - * By default, JViewport is opaque. To change this, use the - * setOpaque method. + * By default, {@code JViewport} is opaque. To change this, use the + * {@code setOpaque} method. *

      * NOTE:We have implemented a faster scrolling algorithm that * does not require a buffer to draw in. The algorithm works as follows: *

      1. The view and parent view and checked to see if they are - * JComponents, + * {@code JComponents}, * if they aren't, stop and repaint the whole viewport. *
      2. If the viewport is obscured by an ancestor, stop and repaint the whole * viewport. *
      3. Compute the region that will become visible, if it is as big as * the viewport, stop and repaint the whole view region. - *
      4. Obtain the ancestor Window's graphics and - * do a copyArea on the scrolled region. + *
      5. Obtain the ancestor {@code Window}'s graphics and + * do a {@code copyArea} on the scrolled region. *
      6. Message the view to repaint the newly visible region. *
      7. The next time paint is invoked on the viewport, if the clip region * is smaller than the viewport size a timer is kicked off to repaint the @@ -67,7 +67,7 @@ *
      * In general this approach is much faster. Compared to the backing store * approach this avoids the overhead of maintaining an offscreen buffer and - * having to do two copyAreas. + * having to do two {@code copyArea}s. * Compared to the non backing store case this * approach will greatly reduce the painted region. *

      @@ -93,7 +93,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. * * @author Hans Muller @@ -121,7 +121,7 @@ protected boolean isViewSizeSet = false; /** - * The last viewPosition that we've painted, so we know how + * The last {@code viewPosition} that we've painted, so we know how * much of the backing store image is valid. */ protected Point lastPaintPosition = null; @@ -130,7 +130,7 @@ * True when this viewport is maintaining an offscreen image of its * contents, so that some scrolling can take place using fast "bit-blit" * operations instead of by accessing the view object to construct the - * display. The default is false. + * display. The default is {@code false}. * * @deprecated As of Java 2 platform v1.3 * @see #setScrollMode @@ -142,20 +142,20 @@ protected transient Image backingStoreImage = null; /** - * The scrollUnderway flag is used for components like - * JList. When the downarrow key is pressed on a - * JList and the selected - * cell is the last in the list, the scrollpane autoscrolls. + * The {@code scrollUnderway} flag is used for components like + * {@code JList}. When the downarrow key is pressed on a + * {@code JList} and the selected + * cell is the last in the list, the {@code scrollpane} autoscrolls. * Here, the old selected cell needs repainting and so we need * a flag to make the viewport do the optimized painting * only when there is an explicit call to - * setViewPosition(Point). - * When setBounds is called through other routes, + * {@code setViewPosition(Point)}. + * When {@code setBounds} is called through other routes, * the flag is off and the view repaints normally. Another approach - * would be to remove this from the JViewport - * class and have the JList manage this case by using - * setBackingStoreEnabled. The default is - * false. + * would be to remove this from the {@code JViewport} + * class and have the {@code JList} manage this case by using + * {@code setBackingStoreEnabled}. The default is + * {@code false}. */ protected boolean scrollUnderway = false; @@ -164,15 +164,15 @@ */ private ComponentListener viewListener = null; - /* Only one ChangeEvent is needed per - * JViewport instance since the + /* Only one {@code ChangeEvent} is needed per + * {@code JViewport} instance since the * event's only (read-only) state is the source property. The source * of events generated here is always "this". */ private transient ChangeEvent changeEvent = null; /** - * Use graphics.copyArea to implement scrolling. + * Use {@code graphics.copyArea} to implement scrolling. * This is the fastest for most applications. * * @see #setScrollMode @@ -182,7 +182,7 @@ /** * Draws viewport contents into an offscreen image. - * This was previously the default mode for JTable. + * This was previously the default mode for {@code JTable}. * This mode may offer advantages over "blit mode" * in some cases, but it requires a large chunk of extra RAM. * @@ -235,13 +235,13 @@ /** - * This is set to true in setViewPosition + * This is set to true in {@code setViewPosition} * if doing a window blit and the viewport is obscured. */ private transient boolean repaintAll; /** - * This is set to true in paint, if repaintAll + * This is set to true in paint, if {@code repaintAll} * is true and the clip rectangle does not match the bounds. * If true, and scrolling happens the * repaint manager is not cleared which then allows for the repaint @@ -250,7 +250,7 @@ private transient boolean waitingForRepaint; /** - * Instead of directly invoking repaint, a Timer + * Instead of directly invoking repaint, a {@code Timer} * is started and when it fires, repaint is invoked. */ private transient Timer repaintTimer; @@ -273,7 +273,7 @@ */ private boolean viewChanged; - /** Creates a JViewport. */ + /** Creates a {@code JViewport}. */ public JViewport() { super(); setLayout(createLayoutManager()); @@ -287,7 +287,7 @@ /** * Returns the L&F object that renders this component. * - * @return a ViewportUI object + * @return a {@code ViewportUI} object * @since 1.3 */ public ViewportUI getUI() { @@ -298,7 +298,7 @@ /** * Sets the L&F object that renders this component. * - * @param ui the ViewportUI L&F object + * @param ui the {@code ViewportUI} L&F object * @see UIDefaults#getUI * @beaninfo * bound: true @@ -337,14 +337,14 @@ /** - * Sets the JViewport's one lightweight child, - * which can be null. + * Sets the {@code JViewport}'s one lightweight child, + * which can be {@code null}. * (Since there is only one child which occupies the entire viewport, - * the constraints and index + * the {@code constraints} and {@code index} * arguments are ignored.) * - * @param child the lightweight child of the viewport - * @param constraints the constraints to be respected + * @param child the lightweight {@code child} of the viewport + * @param constraints the {@code constraints} to be respected * @param index the index * @see #setView */ @@ -354,7 +354,7 @@ /** - * Removes the Viewports one lightweight child. + * Removes the {@code Viewport}s one lightweight child. * * @see #setView */ @@ -364,22 +364,22 @@ } /** - * Scrolls the view so that Rectangle + * Scrolls the view so that {@code Rectangle} * within the view becomes visible. *

      * This attempts to validate the view before scrolling if the - * view is currently not valid - isValid returns false. + * view is currently not valid - {@code isValid} returns false. * To avoid excessive validation when the containment hierarchy is * being created this will not validate if one of the ancestors does not * have a peer, or there is no validate root ancestor, or one of the - * ancestors is not a Window or Applet. + * ancestors is not a {@code Window} or {@code Applet}. *

      * Note that this method will not scroll outside of the - * valid viewport; for example, if contentRect is larger + * valid viewport; for example, if {@code contentRect} is larger * than the viewport, scrolling will be confined to the viewport's * bounds. * - * @param contentRect the Rectangle to display + * @param contentRect the {@code Rectangle} to display * @see JComponent#isValidateRoot * @see java.awt.Component#isValid */ @@ -465,14 +465,14 @@ } /** - * Ascends the Viewport's parents stopping when + * Ascends the {@code Viewport}'s parents stopping when * a component is found that returns - * true to isValidateRoot. - * If all the Component's parents are visible, - * validate will then be invoked on it. The - * RepaintManager is then invoked with - * removeInvalidComponent. This - * is the synchronous version of a revalidate. + * {@code true} to {@code isValidateRoot}. + * If all the {@code Component}'s parents are visible, + * {@code validate} will then be invoked on it. The + * {@code RepaintManager} is then invoked with + * {@code removeInvalidComponent}. This + * is the synchronous version of a {@code revalidate}. */ private void validateView() { Component validateRoot = SwingUtilities.getValidateRoot(this, false); @@ -549,16 +549,16 @@ /** * The viewport "scrolls" its child (called the "view") by the * normal parent/child clipping (typically the view is moved in - * the opposite direction of the scroll). A non-null border, + * the opposite direction of the scroll). A non-{@code null} border, * or non-zero insets, isn't supported, to prevent the geometry * of this component from becoming complex enough to inhibit - * subclassing. To create a JViewport with a border, - * add it to a JPanel that has a border. - *

      Note: If border is non-null, this + * subclassing. To create a {@code JViewport} with a border, + * add it to a {@code JPanel} that has a border. + *

      Note: If {@code border} is non-{@code null}, this * method will throw an exception as borders are not supported on - * a JViewPort. + * a {@code JViewPort}. * - * @param border the Border to set + * @param border the {@code Border} to set * @exception IllegalArgumentException this method is not implemented */ public final void setBorder(Border border) { @@ -570,9 +570,9 @@ /** * Returns the insets (border) dimensions as (0,0,0,0), since borders - * are not supported on a JViewport. + * are not supported on a {@code JViewport}. * - * @return a Rectangle of zero dimension and zero origin + * @return a {@code Rectangle} of zero dimension and zero origin * @see #setBorder */ public final Insets getInsets() { @@ -580,12 +580,12 @@ } /** - * Returns an Insets object containing this - * JViewports inset values. The passed-in - * Insets object will be reinitialized, and + * Returns an {@code Insets} object containing this + * {@code JViewport}s inset values. The passed-in + * {@code Insets} object will be reinitialized, and * all existing values within this object are overwritten. * - * @param insets the Insets object which can be reused + * @param insets the {@code Insets} object which can be reused * @return this viewports inset values * @see #getInsets * @beaninfo @@ -628,12 +628,12 @@ } /** - * The JViewport overrides the default implementation of - * this method (in JComponent) to return false. + * The {@code JViewport} overrides the default implementation of + * this method (in {@code JComponent}) to return false. * This ensures - * that the drawing machinery will call the Viewport's - * paint - * implementation rather than messaging the JViewport's + * that the drawing machinery will call the {@code Viewport}'s + * {@code paint} + * implementation rather than messaging the {@code JViewport}'s * children directly. * * @return false @@ -669,7 +669,7 @@ } /** - * Depending on whether the backingStore is enabled, + * Depending on whether the {@code backingStore} is enabled, * either paint the image through the backing store or paint * just the recently exposed part, using the backing store * to "blit" the remainder. @@ -679,7 +679,7 @@ * bits. (In case you were curious.) * * - * @param g the Graphics context within which to paint + * @param g the {@code Graphics} context within which to paint */ public void paint(Graphics g) { @@ -821,7 +821,7 @@ /** * Sets the bounds of this viewport. If the viewport's width - * or height has changed, fire a StateChanged event. + * or height has changed, fire a {@code StateChanged} event. * * @param x left edge of the origin * @param y top edge of the origin @@ -878,7 +878,7 @@ /** * Returns the current scrolling mode. * - * @return the scrollMode property + * @return the {@code scrollMode} property * @see #setScrollMode * @since 1.3 */ @@ -887,14 +887,14 @@ } /** - * Returns true if this viewport is maintaining + * Returns {@code true} if this viewport is maintaining * an offscreen image of its contents. * - * @return true if scrollMode is - * BACKINGSTORE_SCROLL_MODE + * @return {@code true} if {@code scrollMode} is + * {@code BACKINGSTORE_SCROLL_MODE} * * @deprecated As of Java 2 platform v1.3, replaced by - * getScrollMode(). + * {@code getScrollMode()}. */ @Deprecated public boolean isBackingStoreEnabled() { @@ -905,14 +905,14 @@ /** * If true if this viewport will maintain an offscreen * image of its contents. The image is used to reduce the cost - * of small one dimensional changes to the viewPosition. + * of small one dimensional changes to the {@code viewPosition}. * Rather than repainting the entire viewport we use - * Graphics.copyArea to effect some of the scroll. + * {@code Graphics.copyArea} to effect some of the scroll. * * @param enabled if true, maintain an offscreen backing store * * @deprecated As of Java 2 platform v1.3, replaced by - * setScrollMode(). + * {@code setScrollMode()}. */ @Deprecated public void setBackingStoreEnabled(boolean enabled) { @@ -931,9 +931,9 @@ /** - * Returns the JViewport's one child or null. + * Returns the {@code JViewport}'s one child or {@code null}. * - * @return the viewports child, or null if none exists + * @return the viewports child, or {@code null} if none exists * * @see #setView */ @@ -942,8 +942,8 @@ } /** - * Sets the JViewport's one lightweight child - * (view), which can be null. + * Sets the {@code JViewport}'s one lightweight child + * ({@code view}), which can be {@code null}. * * @param view the viewport's new lightweight child * @@ -988,7 +988,7 @@ * preferred size, otherwise return the view's current size. * If there is no view, return 0,0. * - * @return a Dimension object specifying the size of the view + * @return a {@code Dimension} object specifying the size of the view */ public Dimension getViewSize() { Component view = getView(); @@ -1008,7 +1008,7 @@ /** * Sets the size of the view. A state changed event will be fired. * - * @param newSize a Dimension object specifying the new + * @param newSize a {@code Dimension} object specifying the new * size of the view */ public void setViewSize(Dimension newSize) { @@ -1031,7 +1031,7 @@ * Returns the view coordinates that appear in the upper left * hand corner of the viewport, or 0,0 if there's no view. * - * @return a Point object giving the upper left coordinates + * @return a {@code Point} object giving the upper left coordinates */ public Point getViewPosition() { Component view = getView(); @@ -1051,7 +1051,7 @@ * Sets the view coordinates that appear in the upper left * hand corner of the viewport, does nothing if there's no view. * - * @param p a Point object giving the upper left coordinates + * @param p a {@code Point} object giving the upper left coordinates */ public void setViewPosition(Point p) { @@ -1132,11 +1132,11 @@ /** - * Returns a rectangle whose origin is getViewPosition - * and size is getExtentSize. + * Returns a rectangle whose origin is {@code getViewPosition} + * and size is {@code getExtentSize}. * This is the visible part of the view, in view coordinates. * - * @return a Rectangle giving the visible part of + * @return a {@code Rectangle} giving the visible part of * the view using view coordinates. */ public Rectangle getViewRect() { @@ -1146,16 +1146,16 @@ /** * Computes the parameters for a blit where the backing store image - * currently contains oldLoc in the upper left hand corner - * and we're scrolling to newLoc. + * currently contains {@code oldLoc} in the upper left hand corner + * and we're scrolling to {@code newLoc}. * The parameters are modified * to return the values required for the blit. * * @param dx the horizontal delta * @param dy the vertical delta - * @param blitFrom the Point we're blitting from - * @param blitTo the Point we're blitting to - * @param blitSize the Dimension of the area to blit + * @param blitFrom the {@code Point} we're blitting from + * @param blitTo the {@code Point} we're blitting to + * @param blitSize the {@code Dimension} of the area to blit * @param blitPaint the area to blit * @return true if the parameters are modified and we're ready to blit; * false otherwise @@ -1227,7 +1227,7 @@ /** * Returns the size of the visible part of the view in view coordinates. * - * @return a Dimension object giving the size of the view + * @return a {@code Dimension} object giving the size of the view */ @Transient public Dimension getExtentSize() { @@ -1240,8 +1240,8 @@ * Subclasses of viewport that support "logical coordinates" * will override this method. * - * @param size a Dimension object using pixel coordinates - * @return a Dimension object converted to view coordinates + * @param size a {@code Dimension} object using pixel coordinates + * @return a {@code Dimension} object converted to view coordinates */ public Dimension toViewCoordinates(Dimension size) { return new Dimension(size); @@ -1252,8 +1252,8 @@ * Subclasses of viewport that support "logical coordinates" * will override this method. * - * @param p a Point object using pixel coordinates - * @return a Point object converted to view coordinates + * @param p a {@code Point} object using pixel coordinates + * @return a {@code Point} object converted to view coordinates */ public Point toViewCoordinates(Point p) { return new Point(p); @@ -1263,7 +1263,7 @@ /** * Sets the size of the visible part of the view using view coordinates. * - * @param newExtent a Dimension object specifying + * @param newExtent a {@code Dimension} object specifying * the size of the view */ public void setExtentSize(Dimension newExtent) { @@ -1283,7 +1283,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. */ @SuppressWarnings("serial") // Same-version serialization only @@ -1297,7 +1297,7 @@ /** * Creates a listener for the view. - * @return a ViewListener + * @return a {@code ViewListener} */ protected ViewListener createViewListener() { return new ViewListener(); @@ -1306,10 +1306,10 @@ /** * Subclassers can override this to install a different - * layout manager (or null) in the constructor. Returns - * the LayoutManager to install on the JViewport. + * layout manager (or {@code null}) in the constructor. Returns + * the {@code LayoutManager} to install on the {@code JViewport}. * - * @return a LayoutManager + * @return a {@code LayoutManager} */ protected LayoutManager createLayoutManager() { return ViewportLayout.SHARED_INSTANCE; @@ -1317,11 +1317,11 @@ /** - * Adds a ChangeListener to the list that is + * Adds a {@code ChangeListener} to the list that is * notified each time the view's * size, position, or the viewport's extent size has changed. * - * @param l the ChangeListener to add + * @param l the {@code ChangeListener} to add * @see #removeChangeListener * @see #setViewPosition * @see #setViewSize @@ -1332,11 +1332,11 @@ } /** - * Removes a ChangeListener from the list that's notified each + * Removes a {@code ChangeListener} from the list that's notified each * time the views size, position, or the viewports extent size * has changed. * - * @param l the ChangeListener to remove + * @param l the {@code ChangeListener} to remove * @see #addChangeListener */ public void removeChangeListener(ChangeListener l) { @@ -1344,10 +1344,10 @@ } /** - * Returns an array of all the ChangeListeners added + * Returns an array of all the {@code ChangeListener}s added * to this JViewport with addChangeListener(). * - * @return all of the ChangeListeners added or an empty + * @return all of the {@code ChangeListener}s added or an empty * array if no listeners have been added * @since 1.4 */ @@ -1356,7 +1356,7 @@ } /** - * Notifies all ChangeListeners when the views + * Notifies all {@code ChangeListeners} when the views * size, position, or the viewports extent size has changed. * * @see #addChangeListener @@ -1378,11 +1378,11 @@ /** * Always repaint in the parents coordinate system to make sure - * only one paint is performed by the RepaintManager. + * only one paint is performed by the {@code RepaintManager}. * * @param tm maximum time in milliseconds before update - * @param x the x coordinate (pixels over from left) - * @param y the y coordinate (pixels down from top) + * @param x the {@code x} coordinate (pixels over from left) + * @param y the {@code y} coordinate (pixels down from top) * @param w the width * @param h the height * @see java.awt.Component#update(java.awt.Graphics) @@ -1397,14 +1397,14 @@ /** - * Returns a string representation of this JViewport. + * Returns a string representation of this {@code JViewport}. * This method * is intended to be used only for debugging purposes, and the * content and format of the returned string may vary between * implementations. The returned string may be empty but may not - * be null. + * be {@code null}. * - * @return a string representation of this JViewport + * @return a string representation of this {@code JViewport} */ protected String paramString() { String isViewSizeSetString = (isViewSizeSet ? @@ -1426,8 +1426,8 @@ /** * Notifies listeners of a property change. This is subclassed to update - * the windowBlit property. - * (The putClientProperty property is final). + * the {@code windowBlit} property. + * (The {@code putClientProperty} property is final). * * @param propertyName a string containing the property name * @param oldValue the old value of the property @@ -1495,7 +1495,7 @@ * If the repaint manager has a dirty region for the view, the view is * asked to paint. * - * @param g the Graphics context within which to paint + * @param g the {@code Graphics} context within which to paint */ private void flushViewDirtyRegion(Graphics g, Rectangle dirty) { JComponent view = (JComponent) getView(); @@ -1519,7 +1519,7 @@ /** * Used when blitting. * - * @param g the Graphics context within which to paint + * @param g the {@code Graphics} context within which to paint * @return true if blitting succeeded; otherwise false */ private boolean windowBlitPaint(Graphics g) { @@ -1613,10 +1613,10 @@ } /** - * Called to paint the view, usually when blitPaint + * Called to paint the view, usually when {@code blitPaint} * can not blit. * - * @param g the Graphics context within which to paint + * @param g the {@code Graphics} context within which to paint */ private void paintView(Graphics g) { Rectangle clip = g.getClipBounds(); @@ -1649,7 +1649,7 @@ * Returns true if the viewport is not obscured by one of its ancestors, * or its ancestors children and if the viewport is showing. Blitting * when the view isn't showing will work, - * or rather copyArea will work, + * or rather {@code copyArea} will work, * but will not produce the expected behavior. */ private boolean canUseWindowBlitter() { @@ -1745,7 +1745,7 @@ /** * This class implements accessibility support for the - * JViewport class. It provides an implementation of the + * {@code JViewport} class. It provides an implementation of the * Java Accessibility API appropriate to viewport user-interface elements. *

      * Warning: @@ -1754,7 +1754,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. */ @SuppressWarnings("serial") // Same-version serialization only --- old/src/java.desktop/share/classes/javax/swing/JWindow.java 2015-10-04 22:57:06.593262342 +0400 +++ new/src/java.desktop/share/classes/javax/swing/JWindow.java 2015-10-04 22:57:06.401262351 +0400 @@ -34,15 +34,15 @@ import javax.accessibility.*; /** - * A JWindow is a container that can be displayed anywhere on the + * A {@code JWindow} is a container that can be displayed anywhere on the * user's desktop. It does not have the title bar, window-management buttons, - * or other trimmings associated with a JFrame, but it is still a + * or other trimmings associated with a {@code JFrame}, but it is still a * "first-class citizen" of the user's desktop, and can exist anywhere * on it. *

      - * The JWindow component contains a JRootPane - * as its only child. The contentPane should be the parent - * of any children of the JWindow. + * The {@code JWindow} component contains a {@code JRootPane} + * as its only child. The {@code contentPane} should be the parent + * of any children of the {@code JWindow}. * As a convenience, the {@code add}, {@code remove}, and {@code setLayout} * methods of this class are overridden, so that they delegate calls * to the corresponding methods of the {@code ContentPane}. @@ -51,19 +51,19 @@ * window.add(child); *

      * And the child will be added to the contentPane. - * The contentPane will always be non-null. - * Attempting to set it to null will cause the JWindow - * to throw an exception. The default contentPane will have a - * BorderLayout manager set on it. + * The {@code contentPane} will always be non-{@code null}. + * Attempting to set it to {@code null} will cause the {@code JWindow} + * to throw an exception. The default {@code contentPane} will have a + * {@code BorderLayout} manager set on it. * Refer to {@link javax.swing.RootPaneContainer} - * for details on adding, removing and setting the LayoutManager - * of a JWindow. + * for details on adding, removing and setting the {@code LayoutManager} + * of a {@code JWindow}. *

      * Please see the {@link JRootPane} documentation for a complete description of - * the contentPane, glassPane, and - * layeredPane components. + * the {@code contentPane}, {@code glassPane}, and + * {@code layeredPane} components. *

      - * In a multi-screen environment, you can create a JWindow + * In a multi-screen environment, you can create a {@code JWindow} * on a different screen device. See {@link java.awt.Window} for more * information. *

      @@ -78,7 +78,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. * * @see JRootPane @@ -97,10 +97,10 @@ TransferHandler.HasGetTransferHandler { /** - * The JRootPane instance that manages the - * contentPane - * and optional menuBar for this frame, as well as the - * glassPane. + * The {@code JRootPane} instance that manages the + * {@code contentPane} + * and optional {@code menuBar} for this frame, as well as the + * {@code glassPane}. * * @see #getRootPane * @see #setRootPane @@ -108,9 +108,9 @@ protected JRootPane rootPane; /** - * If true then calls to add and setLayout - * will be forwarded to the contentPane. This is initially - * false, but is set to true when the JWindow is constructed. + * If true then calls to {@code add} and {@code setLayout} + * will be forwarded to the {@code contentPane}. This is initially + * false, but is set to true when the {@code JWindow} is constructed. * * @see #isRootPaneCheckingEnabled * @see #setRootPaneCheckingEnabled @@ -119,7 +119,7 @@ protected boolean rootPaneCheckingEnabled = false; /** - * The TransferHandler for this window. + * The {@code TransferHandler} for this window. */ private TransferHandler transferHandler; @@ -128,10 +128,10 @@ * focusable. *

      * This constructor sets the component's locale property to the value - * returned by JComponent.getDefaultLocale. + * returned by {@code JComponent.getDefaultLocale}. * * @throws HeadlessException if - * GraphicsEnvironment.isHeadless() returns true. + * {@code GraphicsEnvironment.isHeadless()} returns true. * @see java.awt.GraphicsEnvironment#isHeadless * @see #isFocusableWindow * @see JComponent#getDefaultLocale @@ -141,19 +141,19 @@ } /** - * Creates a window with the specified GraphicsConfiguration + * Creates a window with the specified {@code GraphicsConfiguration} * of a screen device. This window will not be focusable. *

      * This constructor sets the component's locale property to the value - * returned by JComponent.getDefaultLocale. + * returned by {@code JComponent.getDefaultLocale}. * - * @param gc the GraphicsConfiguration that is used - * to construct the new window with; if gc is null, - * the system default GraphicsConfiguration + * @param gc the {@code GraphicsConfiguration} that is used + * to construct the new window with; if gc is {@code null}, + * the system default {@code GraphicsConfiguration} * is assumed * @throws HeadlessException If - * GraphicsEnvironment.isHeadless() returns true. - * @throws IllegalArgumentException if gc is not from + * {@code GraphicsEnvironment.isHeadless()} returns true. + * @throws IllegalArgumentException if {@code gc} is not from * a screen device. * * @see java.awt.GraphicsEnvironment#isHeadless @@ -169,13 +169,13 @@ /** * Creates a window with the specified owner frame. - * If owner is null, the shared owner + * If {@code owner} is {@code null}, the shared owner * will be used and this window will not be focusable. Also, * this window will not be focusable unless its owner is showing * on the screen. *

      * This constructor sets the component's locale property to the value - * returned by JComponent.getDefaultLocale. + * returned by {@code JComponent.getDefaultLocale}. * * @param owner the frame from which the window is displayed * @throws HeadlessException if GraphicsEnvironment.isHeadless() @@ -197,15 +197,15 @@ /** * Creates a window with the specified owner window. This window * will not be focusable unless its owner is showing on the screen. - * If owner is null, the shared owner + * If {@code owner} is {@code null}, the shared owner * will be used and this window will not be focusable. *

      * This constructor sets the component's locale property to the value - * returned by JComponent.getDefaultLocale. + * returned by {@code JComponent.getDefaultLocale}. * * @param owner the window from which the window is displayed * @throws HeadlessException if - * GraphicsEnvironment.isHeadless() returns true. + * {@code GraphicsEnvironment.isHeadless()} returns true. * @see java.awt.GraphicsEnvironment#isHeadless * @see #isFocusableWindow * @see JComponent#getDefaultLocale @@ -223,23 +223,23 @@ /** * Creates a window with the specified owner window and - * GraphicsConfiguration of a screen device. If - * owner is null, the shared owner will be used + * {@code GraphicsConfiguration} of a screen device. If + * {@code owner} is {@code null}, the shared owner will be used * and this window will not be focusable. *

      * This constructor sets the component's locale property to the value - * returned by JComponent.getDefaultLocale. + * returned by {@code JComponent.getDefaultLocale}. * * @param owner the window from which the window is displayed - * @param gc the GraphicsConfiguration that is used - * to construct the new window with; if gc is null, - * the system default GraphicsConfiguration - * is assumed, unless owner is also null, in which - * case the GraphicsConfiguration from the + * @param gc the {@code GraphicsConfiguration} that is used + * to construct the new window with; if gc is {@code null}, + * the system default {@code GraphicsConfiguration} + * is assumed, unless {@code owner} is also null, in which + * case the {@code GraphicsConfiguration} from the * shared owner frame will be used. * @throws HeadlessException if - * GraphicsEnvironment.isHeadless() returns true. - * @throws IllegalArgumentException if gc is not from + * {@code GraphicsEnvironment.isHeadless()} returns true. + * @throws IllegalArgumentException if {@code gc} is not from * a screen device. * * @see java.awt.GraphicsEnvironment#isHeadless @@ -260,7 +260,7 @@ } /** - * Called by the constructors to init the JWindow properly. + * Called by the constructors to init the {@code JWindow} properly. */ protected void windowInit() { setLocale( JComponent.getDefaultLocale() ); @@ -271,7 +271,7 @@ /** * Called by the constructor methods to create the default - * rootPane. + * {@code rootPane}. * * @return a new {@code JRootPane} */ @@ -286,10 +286,10 @@ } /** - * Returns whether calls to add and - * setLayout are forwarded to the contentPane. + * Returns whether calls to {@code add} and + * {@code setLayout} are forwarded to the {@code contentPane}. * - * @return true if add and setLayout + * @return true if {@code add} and {@code setLayout} * are forwarded; false otherwise * * @see #addImpl @@ -342,9 +342,9 @@ } /** - * Gets the transferHandler property. + * Gets the {@code transferHandler} property. * - * @return the value of the transferHandler property + * @return the value of the {@code transferHandler} property * * @see TransferHandler * @see #setTransferHandler @@ -355,22 +355,22 @@ } /** - * Calls paint(g). This method was overridden to + * Calls {@code paint(g)}. This method was overridden to * prevent an unnecessary call to clear the background. * - * @param g the Graphics context in which to paint + * @param g the {@code Graphics} context in which to paint */ public void update(Graphics g) { paint(g); } /** - * Sets whether calls to add and - * setLayout are forwarded to the contentPane. + * Sets whether calls to {@code add} and + * {@code setLayout} are forwarded to the {@code contentPane}. * - * @param enabled true if add and setLayout + * @param enabled true if {@code add} and {@code setLayout} * are forwarded, false if they should operate directly on the - * JWindow. + * {@code JWindow}. * * @see #addImpl * @see #setLayout @@ -386,17 +386,17 @@ /** - * Adds the specified child Component. + * Adds the specified child {@code Component}. * This method is overridden to conditionally forward calls to the - * contentPane. - * By default, children are added to the contentPane instead + * {@code contentPane}. + * By default, children are added to the {@code contentPane} instead * of the frame, refer to {@link javax.swing.RootPaneContainer} for * details. * * @param comp the component to be enhanced * @param constraints the constraints to be respected * @param index the index - * @exception IllegalArgumentException if index is invalid + * @exception IllegalArgumentException if {@code index} is invalid * @exception IllegalArgumentException if adding the container's parent * to itself * @exception IllegalArgumentException if adding a window to a container @@ -416,13 +416,13 @@ /** * Removes the specified component from the container. If - * comp is not the rootPane, this will forward - * the call to the contentPane. This will do nothing if - * comp is not a child of the JWindow or - * contentPane. + * {@code comp} is not the {@code rootPane}, this will forward + * the call to the {@code contentPane}. This will do nothing if + * {@code comp} is not a child of the {@code JWindow} or + * {@code contentPane}. * * @param comp the component to be removed - * @throws NullPointerException if comp is null + * @throws NullPointerException if {@code comp} is null * @see #add * @see javax.swing.RootPaneContainer */ @@ -436,13 +436,13 @@ /** - * Sets the LayoutManager. + * Sets the {@code LayoutManager}. * Overridden to conditionally forward the call to the - * contentPane. + * {@code contentPane}. * Refer to {@link javax.swing.RootPaneContainer} for * more information. * - * @param manager the LayoutManager + * @param manager the {@code LayoutManager} * @see #setRootPaneCheckingEnabled * @see javax.swing.RootPaneContainer */ @@ -457,8 +457,8 @@ /** - * Returns the rootPane object for this window. - * @return the rootPane property for this window + * Returns the {@code rootPane} object for this window. + * @return the {@code rootPane} property for this window * * @see #setRootPane * @see RootPaneContainer#getRootPane @@ -469,10 +469,10 @@ /** - * Sets the new rootPane object for this window. + * Sets the new {@code rootPane} object for this window. * This method is called by the constructor. * - * @param root the new rootPane property + * @param root the new {@code rootPane} property * @see #getRootPane * * @beaninfo @@ -498,10 +498,10 @@ /** - * Returns the Container which is the contentPane + * Returns the {@code Container} which is the {@code contentPane} * for this window. * - * @return the contentPane property + * @return the {@code contentPane} property * @see #setContentPane * @see RootPaneContainer#getContentPane */ @@ -510,13 +510,13 @@ } /** - * Sets the contentPane property for this window. + * Sets the {@code contentPane} property for this window. * This method is called by the constructor. * - * @param contentPane the new contentPane + * @param contentPane the new {@code contentPane} * * @exception IllegalComponentStateException (a runtime - * exception) if the content pane parameter is null + * exception) if the content pane parameter is {@code null} * @see #getContentPane * @see RootPaneContainer#setContentPane * @@ -530,9 +530,9 @@ } /** - * Returns the layeredPane object for this window. + * Returns the {@code layeredPane} object for this window. * - * @return the layeredPane property + * @return the {@code layeredPane} property * @see #setLayeredPane * @see RootPaneContainer#getLayeredPane */ @@ -541,13 +541,13 @@ } /** - * Sets the layeredPane property. + * Sets the {@code layeredPane} property. * This method is called by the constructor. * - * @param layeredPane the new layeredPane object + * @param layeredPane the new {@code layeredPane} object * * @exception IllegalComponentStateException (a runtime - * exception) if the content pane parameter is null + * exception) if the content pane parameter is {@code null} * @see #getLayeredPane * @see RootPaneContainer#setLayeredPane * @@ -560,9 +560,9 @@ } /** - * Returns the glassPane Component for this window. + * Returns the {@code glassPane Component} for this window. * - * @return the glassPane property + * @return the {@code glassPane} property * @see #setGlassPane * @see RootPaneContainer#getGlassPane */ @@ -571,9 +571,9 @@ } /** - * Sets the glassPane property. + * Sets the {@code glassPane} property. * This method is called by the constructor. - * @param glassPane the glassPane object for this window + * @param glassPane the {@code glassPane} object for this window * * @see #getGlassPane * @see RootPaneContainer#setGlassPane @@ -598,7 +598,7 @@ /** * Repaints the specified rectangle of this component within - * time milliseconds. Refer to RepaintManager + * {@code time} milliseconds. Refer to {@code RepaintManager} * for details on how the repaint is handled. * * @param time maximum time in milliseconds before update @@ -620,14 +620,14 @@ } /** - * Returns a string representation of this JWindow. + * Returns a string representation of this {@code JWindow}. * This method * is intended to be used only for debugging purposes, and the * content and format of the returned string may vary between * implementations. The returned string may be empty but may not - * be null. + * be {@code null}. * - * @return a string representation of this JWindow + * @return a string representation of this {@code JWindow} */ protected String paramString() { String rootPaneCheckingEnabledString = (rootPaneCheckingEnabled ? @@ -664,7 +664,7 @@ /** * This class implements accessibility support for the - * JWindow class. It provides an implementation of the + * {@code JWindow} class. It provides an implementation of the * Java Accessibility API appropriate to window user-interface * elements. */ --- old/src/java.desktop/share/classes/javax/swing/KeyStroke.java 2015-10-04 22:57:07.129262318 +0400 +++ new/src/java.desktop/share/classes/javax/swing/KeyStroke.java 2015-10-04 22:57:06.941262327 +0400 @@ -43,7 +43,7 @@ * actions on the Components with which they are registered. *

      * KeyStrokes are immutable, and are intended to be unique. Client code cannot - * create a KeyStroke; a variant of getKeyStroke must be used + * create a KeyStroke; a variant of {@code getKeyStroke} must be used * instead. These factory methods allow the KeyStroke implementation to cache * and share instances efficiently. *

      @@ -53,7 +53,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. * * @see javax.swing.text.Keymap @@ -89,8 +89,8 @@ } /** - * Returns a shared instance of a KeyStroke - * that represents a KEY_TYPED event for the + * Returns a shared instance of a {@code KeyStroke} + * that represents a {@code KEY_TYPED} event for the * specified character. * * @param keyChar the character value for a keyboard key @@ -109,8 +109,8 @@ * method are not necessarily cached or shared. * * @param keyChar the character value for a keyboard key - * @param onKeyRelease true if this KeyStroke corresponds to a - * key release; false otherwise. + * @param onKeyRelease {@code true} if this KeyStroke corresponds to a + * key release; {@code false} otherwise. * @return a KeyStroke object for that key * @deprecated use getKeyStroke(char) */ @@ -125,7 +125,7 @@ * specified Character object and a * set of modifiers. Note that the first parameter is of type Character * rather than char. This is to avoid inadvertent clashes with calls to - * getKeyStroke(int keyCode, int modifiers). + * {@code getKeyStroke(int keyCode, int modifiers)}. * * The modifiers consist of any combination of following:

        *
      • java.awt.event.InputEvent.SHIFT_DOWN_MASK @@ -174,7 +174,7 @@ *
      • java.awt.event.KeyEvent.VK_SPACE *
      * Alternatively, the key code may be obtained by calling - * java.awt.event.KeyEvent.getExtendedKeyCodeForChar. + * {@code java.awt.event.KeyEvent.getExtendedKeyCodeForChar}. * * The modifiers consist of any combination of:
        *
      • java.awt.event.InputEvent.SHIFT_DOWN_MASK @@ -198,8 +198,8 @@ * * @param keyCode an int specifying the numeric code for a keyboard key * @param modifiers a bitwise-ored combination of any modifiers - * @param onKeyRelease true if the KeyStroke should represent - * a key release; false otherwise. + * @param onKeyRelease {@code true} if the KeyStroke should represent + * a key release; {@code false} otherwise. * @return a KeyStroke object for that key * * @see java.awt.event.KeyEvent @@ -224,7 +224,7 @@ *
      • java.awt.event.KeyEvent.VK_SPACE *
      * Alternatively, the key code may be obtained by calling - * java.awt.event.KeyEvent.getExtendedKeyCodeForChar. + * {@code java.awt.event.KeyEvent.getExtendedKeyCodeForChar}. * * The modifiers consist of any combination of:
        *
      • java.awt.event.InputEvent.SHIFT_DOWN_MASK @@ -268,7 +268,7 @@ * obtained for all three types of KeyEvent. * * @param anEvent the KeyEvent from which to obtain the KeyStroke - * @throws NullPointerException if anEvent is null + * @throws NullPointerException if {@code anEvent} is null * @return the KeyStroke that precipitated the event */ public static KeyStroke getKeyStrokeForEvent(KeyEvent anEvent) { @@ -278,7 +278,7 @@ } /** - * Parses a string and returns a KeyStroke. + * Parses a string and returns a {@code KeyStroke}. * The string must have the following syntax: *
              *    <modifiers>* (<typedID> | <pressedReleasedID>)
        --- old/src/java.desktop/share/classes/javax/swing/LayoutFocusTraversalPolicy.java	2015-10-04 22:57:07.657262295 +0400
        +++ new/src/java.desktop/share/classes/javax/swing/LayoutFocusTraversalPolicy.java	2015-10-04 22:57:07.469262303 +0400
        @@ -39,7 +39,7 @@
          * orientation, columns run left-to-right or right-to-left, and rows run top-
          * to-bottom. For a Container with vertical orientation, columns run top-to-
          * bottom and rows run left-to-right or right-to-left. See
        - * ComponentOrientation for more information. All columns in a
        + * {@code ComponentOrientation} for more information. All columns in a
          * row are fully traversed before proceeding to the next row.
          *
          * @author David Mendenhall
        @@ -65,7 +65,7 @@
         
             /**
              * Constructs a LayoutFocusTraversalPolicy with the passed in
        -     * Comparator.
        +     * {@code Comparator}.
              */
             LayoutFocusTraversalPolicy(Comparator c) {
                 super(c);
        @@ -79,7 +79,7 @@
              * cycle. That is, during normal focus traversal, the Component
              * traversed after a focus cycle root will be the focus-cycle-root's
              * default Component to focus. This behavior can be disabled using the
        -     * setImplicitDownCycleTraversal method.
        +     * {@code setImplicitDownCycleTraversal} method.
              * 

        * If aContainer is focus * traversal policy provider, the focus is always transferred down-cycle. @@ -115,7 +115,7 @@ * cycle. That is, during normal focus traversal, the Component * traversed after a focus cycle root will be the focus-cycle-root's * default Component to focus. This behavior can be disabled using the - * setImplicitDownCycleTraversal method. + * {@code setImplicitDownCycleTraversal} method. *

        * If aContainer is focus * traversal policy provider, the focus is always transferred down-cycle. @@ -192,27 +192,27 @@ } /** - * Determines whether the specified Component + * Determines whether the specified {@code Component} * is an acceptable choice as the new focus owner. * This method performs the following sequence of operations: *

          - *
        1. Checks whether aComponent is visible, displayable, + *
        2. Checks whether {@code aComponent} is visible, displayable, * enabled, and focusable. If any of these properties is - * false, this method returns false. - *
        3. If aComponent is an instance of JTable, - * returns true. - *
        4. If aComponent is an instance of JComboBox, + * {@code false}, this method returns {@code false}. + *
        5. If {@code aComponent} is an instance of {@code JTable}, + * returns {@code true}. + *
        6. If {@code aComponent} is an instance of {@code JComboBox}, * then returns the value of - * aComponent.getUI().isFocusTraversable(aComponent). - *
        7. If aComponent is a JComponent - * with a JComponent.WHEN_FOCUSED - * InputMap that is neither null - * nor empty, returns true. + * {@code aComponent.getUI().isFocusTraversable(aComponent)}. + *
        8. If {@code aComponent} is a {@code JComponent} + * with a {@code JComponent.WHEN_FOCUSED} + * {@code InputMap} that is neither {@code null} + * nor empty, returns {@code true}. *
        9. Returns the value of - * DefaultFocusTraversalPolicy.accept(aComponent). + * {@code DefaultFocusTraversalPolicy.accept(aComponent)}. *
        * - * @param aComponent the Component whose fitness + * @param aComponent the {@code Component} whose fitness * as a focus owner is to be tested * @see java.awt.Component#isVisible * @see java.awt.Component#isDisplayable @@ -221,9 +221,9 @@ * @see javax.swing.plaf.ComboBoxUI#isFocusTraversable * @see javax.swing.JComponent#getInputMap * @see java.awt.DefaultFocusTraversalPolicy#accept - * @return true if aComponent is a valid choice + * @return {@code true} if {@code aComponent} is a valid choice * for a focus owner; - * otherwise false + * otherwise {@code false} */ protected boolean accept(Component aComponent) { if (!super.accept(aComponent)) { --- old/src/java.desktop/share/classes/javax/swing/LayoutStyle.java 2015-10-04 22:57:08.181262271 +0400 +++ new/src/java.desktop/share/classes/javax/swing/LayoutStyle.java 2015-10-04 22:57:07.993262280 +0400 @@ -29,23 +29,23 @@ import sun.awt.AppContext; /** - * LayoutStyle provides information about how to position + * {@code LayoutStyle} provides information about how to position * components. This class is primarily useful for visual tools and * layout managers. Most developers will not need to use this class. *

        * You typically don't set or create a - * LayoutStyle. Instead use the static method - * getInstance to obtain the current instance. + * {@code LayoutStyle}. Instead use the static method + * {@code getInstance} to obtain the current instance. * * @since 1.6 */ public abstract class LayoutStyle { /** - * Sets the shared instance of LayoutStyle. Specifying - * null results in using the LayoutStyle from - * the current LookAndFeel. + * Sets the shared instance of {@code LayoutStyle}. Specifying + * {@code null} results in using the {@code LayoutStyle} from + * the current {@code LookAndFeel}. * - * @param style the LayoutStyle, or null + * @param style the {@code LayoutStyle}, or {@code null} * @see #getInstance */ public static void setInstance(LayoutStyle style) { @@ -60,12 +60,12 @@ } /** - * Returns the shared instance of LayoutStyle. If an instance - * has not been specified in setInstance, this will return - * the LayoutStyle from the current LookAndFeel. + * Returns the shared instance of {@code LayoutStyle}. If an instance + * has not been specified in {@code setInstance}, this will return + * the {@code LayoutStyle} from the current {@code LookAndFeel}. * * @see LookAndFeel#getLayoutStyle - * @return the shared instance of LayoutStyle + * @return the shared instance of {@code LayoutStyle} */ public static LayoutStyle getInstance() { LayoutStyle style; @@ -81,11 +81,11 @@ /** - * ComponentPlacement is an enumeration of the + * {@code ComponentPlacement} is an enumeration of the * possible ways two components can be placed relative to each - * other. ComponentPlacement is used by the - * LayoutStyle method getPreferredGap. Refer to - * LayoutStyle for more information. + * other. {@code ComponentPlacement} is used by the + * {@code LayoutStyle} method {@code getPreferredGap}. Refer to + * {@code LayoutStyle} for more information. * * @see LayoutStyle#getPreferredGap(JComponent,JComponent, * ComponentPlacement,int,Container) @@ -95,9 +95,9 @@ /** * Enumeration value indicating the two components are * visually related and will be placed in the same parent. - * For example, a JLabel providing a label for a - * JTextField is typically visually associated - * with the JTextField; the constant RELATED + * For example, a {@code JLabel} providing a label for a + * {@code JTextField} is typically visually associated + * with the {@code JTextField}; the constant {@code RELATED} * is used for this. */ RELATED, @@ -106,7 +106,7 @@ * Enumeration value indicating the two components are * visually unrelated and will be placed in the same parent. * For example, groupings of components are usually visually - * separated; the constant UNRELATED is used for this. + * separated; the constant {@code UNRELATED} is used for this. */ UNRELATED, @@ -115,20 +115,20 @@ * is being requested. For example, often times the children of * a label will be horizontally indented from the label. To determine * the preferred distance for such a gap use the - * INDENT type. + * {@code INDENT} type. *

        * This value is typically only useful with a direction of - * EAST or WEST. + * {@code EAST} or {@code WEST}. */ INDENT; } /** - * Creates a new LayoutStyle. You generally don't - * create a LayoutStyle. Instead use the method - * getInstance to obtain the current - * LayoutStyle. + * Creates a new {@code LayoutStyle}. You generally don't + * create a {@code LayoutStyle}. Instead use the method + * {@code getInstance} to obtain the current + * {@code LayoutStyle}. */ public LayoutStyle() { } @@ -136,53 +136,53 @@ /** * Returns the amount of space to use between two components. * The return value indicates the distance to place - * component2 relative to component1. + * {@code component2} relative to {@code component1}. * For example, the following returns the amount of space to place - * between component2 and component1 - * when component2 is placed vertically above - * component1: + * between {@code component2} and {@code component1} + * when {@code component2} is placed vertically above + * {@code component1}: *

              *   int gap = getPreferredGap(component1, component2,
              *                             ComponentPlacement.RELATED,
              *                             SwingConstants.NORTH, parent);
              * 
        - * The type parameter indicates the relation between + * The {@code type} parameter indicates the relation between * the two components. If the two components will be contained in * the same parent and are showing similar logically related - * items, use RELATED. If the two components will be + * items, use {@code RELATED}. If the two components will be * contained in the same parent but show logically unrelated items - * use UNRELATED. Some look and feels may not - * distinguish between the RELATED and - * UNRELATED types. + * use {@code UNRELATED}. Some look and feels may not + * distinguish between the {@code RELATED} and + * {@code UNRELATED} types. *

        * The return value is not intended to take into account the - * current size and position of component2 or - * component1. The return value may take into + * current size and position of {@code component2} or + * {@code component1}. The return value may take into * consideration various properties of the components. For * example, the space may vary based on font size, or the preferred * size of the component. * - * @param component1 the JComponent - * component2 is being placed relative to - * @param component2 the JComponent being placed - * @param position the position component2 is being placed - * relative to component1; one of - * SwingConstants.NORTH, - * SwingConstants.SOUTH, - * SwingConstants.EAST or - * SwingConstants.WEST + * @param component1 the {@code JComponent} + * {@code component2} is being placed relative to + * @param component2 the {@code JComponent} being placed + * @param position the position {@code component2} is being placed + * relative to {@code component1}; one of + * {@code SwingConstants.NORTH}, + * {@code SwingConstants.SOUTH}, + * {@code SwingConstants.EAST} or + * {@code SwingConstants.WEST} * @param type how the two components are being placed - * @param parent the parent of component2; this may differ - * from the actual parent and it may be null + * @param parent the parent of {@code component2}; this may differ + * from the actual parent and it may be {@code null} * @return the amount of space to place between the two components - * @throws NullPointerException if component1, - * component2 or type is - * null - * @throws IllegalArgumentException if position is not - * one of SwingConstants.NORTH, - * SwingConstants.SOUTH, - * SwingConstants.EAST or - * SwingConstants.WEST + * @throws NullPointerException if {@code component1}, + * {@code component2} or {@code type} is + * {@code null} + * @throws IllegalArgumentException if {@code position} is not + * one of {@code SwingConstants.NORTH}, + * {@code SwingConstants.SOUTH}, + * {@code SwingConstants.EAST} or + * {@code SwingConstants.WEST} * @see LookAndFeel#getLayoutStyle * @since 1.6 */ @@ -195,22 +195,22 @@ * Returns the amount of space to place between the component and specified * edge of its parent. * - * @param component the JComponent being positioned - * @param position the position component is being placed + * @param component the {@code JComponent} being positioned + * @param position the position {@code component} is being placed * relative to its parent; one of - * SwingConstants.NORTH, - * SwingConstants.SOUTH, - * SwingConstants.EAST or - * SwingConstants.WEST - * @param parent the parent of component; this may differ - * from the actual parent and may be null + * {@code SwingConstants.NORTH}, + * {@code SwingConstants.SOUTH}, + * {@code SwingConstants.EAST} or + * {@code SwingConstants.WEST} + * @param parent the parent of {@code component}; this may differ + * from the actual parent and may be {@code null} * @return the amount of space to place between the component and specified * edge - * @throws IllegalArgumentException if position is not - * one of SwingConstants.NORTH, - * SwingConstants.SOUTH, - * SwingConstants.EAST or - * SwingConstants.WEST + * @throws IllegalArgumentException if {@code position} is not + * one of {@code SwingConstants.NORTH}, + * {@code SwingConstants.SOUTH}, + * {@code SwingConstants.EAST} or + * {@code SwingConstants.WEST} */ public abstract int getContainerGap(JComponent component, int position, Container parent); --- old/src/java.desktop/share/classes/javax/swing/ListCellRenderer.java 2015-10-04 22:57:08.709262247 +0400 +++ new/src/java.desktop/share/classes/javax/swing/ListCellRenderer.java 2015-10-04 22:57:08.517262256 +0400 @@ -91,10 +91,10 @@ { /** * Return a component that has been configured to display the specified - * value. That component's paint method is then called to + * value. That component's {@code paint} method is then called to * "render" the cell. If it is necessary to compute the dimensions * of a list because the list cells do not have a fixed size, this method - * is called to generate a component on which getPreferredSize + * is called to generate a component on which {@code getPreferredSize} * can be invoked. * * @param list The JList we're painting. --- old/src/java.desktop/share/classes/javax/swing/ListModel.java 2015-10-04 22:57:09.233262224 +0400 +++ new/src/java.desktop/share/classes/javax/swing/ListModel.java 2015-10-04 22:57:09.045262232 +0400 @@ -52,21 +52,21 @@ /** * Returns the value at the specified index. * @param index the requested index - * @return the value at index + * @return the value at {@code index} */ E getElementAt(int index); /** * Adds a listener to the list that's notified each time a change * to the data model occurs. - * @param l the ListDataListener to be added + * @param l the {@code ListDataListener} to be added */ void addListDataListener(ListDataListener l); /** * Removes a listener from the list that's notified each time a * change to the data model occurs. - * @param l the ListDataListener to be removed + * @param l the {@code ListDataListener} to be removed */ void removeListDataListener(ListDataListener l); } --- old/src/java.desktop/share/classes/javax/swing/LookAndFeel.java 2015-10-04 22:57:09.757262200 +0400 +++ new/src/java.desktop/share/classes/javax/swing/LookAndFeel.java 2015-10-04 22:57:09.569262209 +0400 @@ -291,7 +291,7 @@ * This method returns an array of {@code KeyBindings}, one for each * alternating {@code key-action} pair in {@code keyBindingList}. * A {@code key} can either be a {@code String} in the format - * specified by the KeyStroke.getKeyStroke method, or + * specified by the {@code KeyStroke.getKeyStroke} method, or * a {@code KeyStroke}. The {@code action} part of the pair is a * {@code String} that corresponds to the name of the {@code * Action}. @@ -346,7 +346,7 @@ } /** - * Creates a {@code InputMapUIResource} from keys. This is + * Creates a {@code InputMapUIResource} from {@code keys}. This is * a convenience method for creating a new {@code InputMapUIResource}, * invoking {@code loadKeyBindings(map, keys)}, and returning the * {@code InputMapUIResource}. @@ -366,7 +366,7 @@ /** * Creates a {@code ComponentInputMapUIResource} from - * keys. This is a convenience method for creating a + * {@code keys}. This is a convenience method for creating a * new {@code ComponentInputMapUIResource}, invoking {@code * loadKeyBindings(map, keys)}, and returning the {@code * ComponentInputMapUIResource}. @@ -413,9 +413,9 @@ * Supplying a {@code null} list of bindings ({@code keys}) does not * change {@code retMap} in any way. *

        - * Specifying a {@code null} {@code action key} results in + * Specifying a {@code null action key} results in * removing the {@code keystroke's} entry from the {@code InputMap}. - * A {@code null} {@code keystroke} is ignored. + * A {@code null keystroke} is ignored. * * @param retMap {@code InputMap} to add the {@code key-action} * pairs to @@ -469,15 +469,15 @@ } /** - * Returns the LayoutStyle for this look + * Returns the {@code LayoutStyle} for this look * and feel. This never returns {@code null}. *

        - * You generally don't use the LayoutStyle from - * the look and feel, instead use the LayoutStyle - * method getInstance. + * You generally don't use the {@code LayoutStyle} from + * the look and feel, instead use the {@code LayoutStyle} + * method {@code getInstance}. * * @see LayoutStyle#getInstance - * @return the LayoutStyle for this look and feel + * @return the {@code LayoutStyle} for this look and feel * @since 1.6 */ public LayoutStyle getLayoutStyle() { @@ -486,15 +486,15 @@ /** * Invoked when the user attempts an invalid operation, - * such as pasting into an uneditable JTextField + * such as pasting into an uneditable {@code JTextField} * that has focus. The default implementation beeps. Subclasses * that wish different behavior should override this and provide * the additional feedback. * - * @param component the Component the error occurred in, - * may be null + * @param component the {@code Component} the error occurred in, + * may be {@code null} * indicating the error condition is not directly - * associated with a Component + * associated with a {@code Component} * @since 1.4 */ public void provideErrorFeedback(Component component) { @@ -509,7 +509,7 @@ /** * Returns the value of the specified system desktop property by - * invoking Toolkit.getDefaultToolkit().getDesktopProperty(). + * invoking {@code Toolkit.getDefaultToolkit().getDesktopProperty()}. * If the value of the specified property is {@code null}, * {@code fallbackValue} is returned. * @@ -534,13 +534,13 @@ } /** - * Returns an Icon with a disabled appearance. - * This method is used to generate a disabled Icon when + * Returns an {@code Icon} with a disabled appearance. + * This method is used to generate a disabled {@code Icon} when * one has not been specified. For example, if you create a - * JButton and only specify an Icon via - * setIcon this method will be called to generate the - * disabled Icon. If {@code null} is passed as - * icon this method returns {@code null}. + * {@code JButton} and only specify an {@code Icon} via + * {@code setIcon} this method will be called to generate the + * disabled {@code Icon}. If {@code null} is passed as + * {@code icon} this method returns {@code null}. *

        * Some look and feels might not render the disabled {@code Icon}, in which * case they will ignore this. @@ -561,14 +561,14 @@ } /** - * Returns an Icon for use by disabled + * Returns an {@code Icon} for use by disabled * components that are also selected. This method is used to generate an - * Icon for components that are in both the disabled and - * selected states but do not have a specific Icon for this - * state. For example, if you create a JButton and only - * specify an Icon via setIcon this method + * {@code Icon} for components that are in both the disabled and + * selected states but do not have a specific {@code Icon} for this + * state. For example, if you create a {@code JButton} and only + * specify an {@code Icon} via {@code setIcon} this method * will be called to generate the disabled and selected - * Icon. If {@code null} is passed as icon this + * {@code Icon}. If {@code null} is passed as {@code icon} this * methods returns {@code null}. *

        * Some look and feels might not render the disabled and selected @@ -624,9 +624,9 @@ /** - * Returns {@code true} if the LookAndFeel returned - * RootPaneUI instances support providing {@code Window} - * decorations in a JRootPane. + * Returns {@code true} if the {@code LookAndFeel} returned + * {@code RootPaneUI} instances support providing {@code Window} + * decorations in a {@code JRootPane}. *

        * The default implementation returns {@code false}, subclasses that * support {@code Window} decorations should override this and return --- old/src/java.desktop/share/classes/javax/swing/MenuSelectionManager.java 2015-10-04 22:57:10.293262176 +0400 +++ new/src/java.desktop/share/classes/javax/swing/MenuSelectionManager.java 2015-10-04 22:57:10.101262185 +0400 @@ -91,7 +91,7 @@ * Note that this method is public but is used by the look and * feel engine and should not be called by client applications. * - * @param path an array of MenuElement objects specifying + * @param path an array of {@code MenuElement} objects specifying * the selected path */ public void setSelectedPath(MenuElement[] path) { @@ -173,10 +173,10 @@ } /** - * Returns an array of all the ChangeListeners added + * Returns an array of all the {@code ChangeListener}s added * to this MenuSelectionManager with addChangeListener(). * - * @return all of the ChangeListeners added or an empty + * @return all of the {@code ChangeListener}s added or an empty * array if no listeners have been added * @since 1.4 */ --- old/src/java.desktop/share/classes/javax/swing/MutableComboBoxModel.java 2015-10-04 22:57:10.817262153 +0400 +++ new/src/java.desktop/share/classes/javax/swing/MutableComboBoxModel.java 2015-10-04 22:57:10.629262161 +0400 @@ -25,7 +25,7 @@ package javax.swing; /** - * A mutable version of ComboBoxModel. + * A mutable version of {@code ComboBoxModel}. * * @param the type of the elements of this model * @@ -37,7 +37,7 @@ /** * Adds an item at the end of the model. The implementation of this method - * should notify all registered ListDataListeners that the + * should notify all registered {@code ListDataListener}s that the * item has been added. * * @param item the item to be added @@ -46,16 +46,16 @@ /** * Removes an item from the model. The implementation of this method should - * should notify all registered ListDataListeners that the + * should notify all registered {@code ListDataListener}s that the * item has been removed. * - * @param obj the Object to be removed + * @param obj the {@code Object} to be removed */ public void removeElement( Object obj ); /** * Adds an item at a specific index. The implementation of this method - * should notify all registered ListDataListeners that the + * should notify all registered {@code ListDataListener}s that the * item has been added. * * @param item the item to be added @@ -65,7 +65,7 @@ /** * Removes an item at a specific index. The implementation of this method - * should notify all registered ListDataListeners that the + * should notify all registered {@code ListDataListener}s that the * item has been removed. * * @param index location of the item to be removed --- old/src/java.desktop/share/classes/javax/swing/OverlayLayout.java 2015-10-04 22:57:11.341262129 +0400 +++ new/src/java.desktop/share/classes/javax/swing/OverlayLayout.java 2015-10-04 22:57:11.153262138 +0400 @@ -46,7 +46,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. * * @author Timothy Prinzing @@ -170,10 +170,10 @@ * Returns the maximum dimensions needed to lay out the components * contained in the specified target container. Recomputes the * layout if it has been invalidated, and factors in the inset setting - * returned by getInset. + * returned by {@code getInset}. * * @param target the component that needs to be laid out - * @return a Dimension object containing the maximum + * @return a {@code Dimension} object containing the maximum * dimensions * @see #preferredLayoutSize */ --- old/src/java.desktop/share/classes/javax/swing/Painter.java 2015-10-04 22:57:11.865262106 +0400 +++ new/src/java.desktop/share/classes/javax/swing/Painter.java 2015-10-04 22:57:11.677262114 +0400 @@ -28,23 +28,23 @@ /** *

        A painting delegate. The Painter interface defines exactly one method, - * paint. It is used in situations where the developer can change + * {@code paint}. It is used in situations where the developer can change * the painting routine of a component without having to resort to subclassing * the component. It is also generically useful when doing any form of painting * delegation.

        * - *

        Painters are simply encapsulations of Java2D code and make - * it fairly trivial to reuse existing Painters or to combine + *

        {@code Painter}s are simply encapsulations of Java2D code and make + * it fairly trivial to reuse existing {@code Painter}s or to combine * them together. Implementations of this interface are also trivial to write, - * such that if you can't find a Painter that does what you need, - * you can write one with minimal effort. Writing a Painter requires + * such that if you can't find a {@code Painter} that does what you need, + * you can write one with minimal effort. Writing a {@code Painter} requires * knowledge of Java2D.

        * - *

        A Painter may be created with a type parameter. This type will be - * expected in the paint method. For example, you may wish to write a - * Painter that only works with subclasses of {@link java.awt.Component}. - * In that case, when the Painter is declared, you may declare that - * it requires a Component, allowing the paint method to be type safe. Ex: + *

        A {@code Painter} may be created with a type parameter. This type will be + * expected in the {@code paint} method. For example, you may wish to write a + * {@code Painter} that only works with subclasses of {@link java.awt.Component}. + * In that case, when the {@code Painter} is declared, you may declare that + * it requires a {@code Component}, allowing the paint method to be type safe. Ex: *

          * {@code
          * Painter p = new Painter() {
        @@ -64,38 +64,38 @@
         public interface Painter {
             /**
              * 

        Renders to the given {@link java.awt.Graphics2D} object. Implementations - * of this method may modify state on the Graphics2D, and are not + * of this method may modify state on the {@code Graphics2D}, and are not * required to restore that state upon completion. In most cases, it is recommended - * that the caller pass in a scratch graphics object. The Graphics2D + * that the caller pass in a scratch graphics object. The {@code Graphics2D} * must never be null.

        * - *

        State on the graphics object may be honored by the paint method, + *

        State on the graphics object may be honored by the {@code paint} method, * but may not be. For instance, setting the antialiasing rendering hint on the - * graphics may or may not be respected by the Painter implementation.

        + * graphics may or may not be respected by the {@code Painter} implementation.

        * *

        The supplied object parameter acts as an optional configuration argument. - * For example, it could be of type Component. A Painter - * that expected it could then read state from that Component and + * For example, it could be of type {@code Component}. A {@code Painter} + * that expected it could then read state from that {@code Component} and * use the state for painting. For example, an implementation may read the * backgroundColor and use that.

        * - *

        Generally, to enhance reusability, most standard Painters ignore - * this parameter. They can thus be reused in any context. The object + *

        Generally, to enhance reusability, most standard {@code Painter}s ignore + * this parameter. They can thus be reused in any context. The {@code object} * may be null. Implementations must not throw a NullPointerException if the object * parameter is null.

        * - *

        Finally, the width and height arguments specify the - * width and height that the Painter should paint into. More + *

        Finally, the {@code width} and {@code height} arguments specify the + * width and height that the {@code Painter} should paint into. More * specifically, the specified width and height instruct the painter that it should * paint fully within this width and height. Any specified clip on the - * g param will further constrain the region.

        + * {@code g} param will further constrain the region.

        * - *

        For example, suppose I have a Painter implementation that draws + *

        For example, suppose I have a {@code Painter} implementation that draws * a gradient. The gradient goes from white to black. It "stretches" to fill the - * painted region. Thus, if I use this Painter to paint a 500 x 500 + * painted region. Thus, if I use this {@code Painter} to paint a 500 x 500 * region, the far left would be black, the far right would be white, and a smooth * gradient would be painted between. I could then, without modification, reuse the - * Painter to paint a region that is 20x20 in size. This region would + * {@code Painter} to paint a region that is 20x20 in size. This region would * also be black on the left, white on the right, and a smooth gradient painted * between.

        * --- old/src/java.desktop/share/classes/javax/swing/Popup.java 2015-10-04 22:57:12.389262082 +0400 +++ new/src/java.desktop/share/classes/javax/swing/Popup.java 2015-10-04 22:57:12.201262091 +0400 @@ -31,25 +31,25 @@ import sun.awt.SunToolkit; /** - * Popups are used to display a Component to the user, typically - * on top of all the other Components in a particular containment - * hierarchy. Popups have a very small life cycle. Once you - * have obtained a Popup, and hidden it (invoked the - * hide method), you should no longer - * invoke any methods on it. This allows the PopupFactory to cache - * Popups for later use. + * Popups are used to display a {@code Component} to the user, typically + * on top of all the other {@code Component}s in a particular containment + * hierarchy. {@code Popup}s have a very small life cycle. Once you + * have obtained a {@code Popup}, and hidden it (invoked the + * {@code hide} method), you should no longer + * invoke any methods on it. This allows the {@code PopupFactory} to cache + * {@code Popup}s for later use. *

        * The general contract is that if you need to change the size of the - * Component, or location of the Popup, you should - * obtain a new Popup. + * {@code Component}, or location of the {@code Popup}, you should + * obtain a new {@code Popup}. *

        - * Popup does not descend from Component, rather - * implementations of Popup are responsible for creating - * and maintaining their own Components to render the - * requested Component to the user. + * {@code Popup} does not descend from {@code Component}, rather + * implementations of {@code Popup} are responsible for creating + * and maintaining their own {@code Component}s to render the + * requested {@code Component} to the user. *

        - * You typically do not explicitly create an instance of Popup, - * instead obtain one from a PopupFactory. + * You typically do not explicitly create an instance of {@code Popup}, + * instead obtain one from a {@code PopupFactory}. * * @see PopupFactory * @@ -62,17 +62,17 @@ private Component component; /** - * Creates a Popup for the Component owner - * containing the Component contents. owner - * is used to determine which Window the new - * Popup will parent the Component the - * Popup creates to. - * A null owner implies there is no valid parent. - * x and - * y specify the preferred initial location to place - * the Popup at. Based on screen size, or other paramaters, - * the Popup may not display at x and - * y. + * Creates a {@code Popup} for the Component {@code owner} + * containing the Component {@code contents}. {@code owner} + * is used to determine which {@code Window} the new + * {@code Popup} will parent the {@code Component} the + * {@code Popup} creates to. + * A null {@code owner} implies there is no valid parent. + * {@code x} and + * {@code y} specify the preferred initial location to place + * the {@code Popup} at. Based on screen size, or other paramaters, + * the {@code Popup} may not display at {@code x} and + * {@code y}. * * @param owner Component mouse coordinates are relative to, may be null * @param contents Contents of the Popup @@ -89,13 +89,13 @@ } /** - * Creates a Popup. This is provided for subclasses. + * Creates a {@code Popup}. This is provided for subclasses. */ protected Popup() { } /** - * Makes the Popup visible. If the Popup is + * Makes the {@code Popup} visible. If the {@code Popup} is * currently visible, this has no effect. */ @@ -109,11 +109,11 @@ } /** - * Hides and disposes of the Popup. Once a Popup + * Hides and disposes of the {@code Popup}. Once a {@code Popup} * has been disposed you should no longer invoke methods on it. A - * disposed Popup may be reclaimed and later used - * based on the PopupFactory. As such, if you invoke methods - * on a disposed Popup, indeterminate + * {@code dispose}d {@code Popup} may be reclaimed and later used + * based on the {@code PopupFactory}. As such, if you invoke methods + * on a {@code disposed Popup}, indeterminate * behavior will result. */ @@ -129,7 +129,7 @@ } /** - * Frees any resources the Popup may be holding onto. + * Frees any resources the {@code Popup} may be holding onto. */ void dispose() { Component component = getComponent(); @@ -146,7 +146,7 @@ } /** - * Resets the Popup to an initial state. + * Resets the {@code Popup} to an initial state. */ void reset(Component owner, Component contents, int ownerX, int ownerY) { if (getComponent() == null) { @@ -172,8 +172,8 @@ /** - * Causes the Popup to be sized to fit the preferred size - * of the Component it contains. + * Causes the {@code Popup} to be sized to fit the preferred size + * of the {@code Component} it contains. */ void pack() { Component component = getComponent(); @@ -184,9 +184,9 @@ } /** - * Returns the Window to use as the parent of the - * Window created for the Popup. This creates - * a new DefaultFrame, if necessary. + * Returns the {@code Window} to use as the parent of the + * {@code Window} created for the {@code Popup}. This creates + * a new {@code DefaultFrame}, if necessary. */ private Window getParentWindow(Component owner) { Window window = null; @@ -204,8 +204,8 @@ } /** - * Creates the Component to use as the parent of the Popup. - * The default implementation creates a Window, subclasses + * Creates the Component to use as the parent of the {@code Popup}. + * The default implementation creates a {@code Window}, subclasses * should override. */ Component createComponent(Component owner) { @@ -217,8 +217,8 @@ } /** - * Returns the Component returned from - * createComponent that will hold the Popup. + * Returns the {@code Component} returned from + * {@code createComponent} that will hold the {@code Popup}. */ Component getComponent() { return component; --- old/src/java.desktop/share/classes/javax/swing/PopupFactory.java 2015-10-04 22:57:12.933262058 +0400 +++ new/src/java.desktop/share/classes/javax/swing/PopupFactory.java 2015-10-04 22:57:12.745262066 +0400 @@ -41,13 +41,13 @@ import static javax.swing.ClientPropertyKey.PopupFactory_FORCE_HEAVYWEIGHT_POPUP; /** - * PopupFactory, as the name implies, is used to obtain - * instances of Popups. Popups are used to - * display a Component above all other Components + * {@code PopupFactory}, as the name implies, is used to obtain + * instances of {@code Popup}s. {@code Popup}s are used to + * display a {@code Component} above all other {@code Component}s * in a particular containment hierarchy. The general contract is that - * once you have obtained a Popup from a - * PopupFactory, you must invoke hide on the - * Popup. The typical usage is: + * once you have obtained a {@code Popup} from a + * {@code PopupFactory}, you must invoke {@code hide} on the + * {@code Popup}. The typical usage is: *

          *   PopupFactory factory = PopupFactory.getSharedInstance();
          *   Popup popup = factory.getPopup(owner, contents, x, y);
        @@ -72,9 +72,9 @@
                 });
             }
             /**
        -     * The shared instanceof PopupFactory is per
        -     * AppContext. This is the key used in the
        -     * AppContext to locate the PopupFactory.
        +     * The shared instanceof {@code PopupFactory} is per
        +     * {@code AppContext}. This is the key used in the
        +     * {@code AppContext} to locate the {@code PopupFactory}.
              */
             private static final Object SharedInstanceKey =
                 new StringBuffer("PopupFactory.SharedInstanceKey");
        @@ -106,13 +106,13 @@
         
         
             /**
        -     * Sets the PopupFactory that will be used to obtain
        -     * Popups.
        -     * This will throw an IllegalArgumentException if
        -     * factory is null.
        +     * Sets the {@code PopupFactory} that will be used to obtain
        +     * {@code Popup}s.
        +     * This will throw an {@code IllegalArgumentException} if
        +     * {@code factory} is null.
              *
              * @param factory Shared PopupFactory
        -     * @exception IllegalArgumentException if factory is null
        +     * @exception IllegalArgumentException if {@code factory} is null
              * @see #getPopup
              */
             public static void setSharedInstance(PopupFactory factory) {
        @@ -123,8 +123,8 @@
             }
         
             /**
        -     * Returns the shared PopupFactory which can be used
        -     * to obtain Popups.
        +     * Returns the shared {@code PopupFactory} which can be used
        +     * to obtain {@code Popup}s.
              *
              * @return Shared PopupFactory
              */
        @@ -141,7 +141,7 @@
         
         
             /**
        -     * Provides a hint as to the type of Popup that should
        +     * Provides a hint as to the type of {@code Popup} that should
              * be created.
              */
             void setPopupType(int type) {
        @@ -156,16 +156,16 @@
             }
         
             /**
        -     * Creates a Popup for the Component owner
        -     * containing the Component contents. owner
        -     * is used to determine which Window the new
        -     * Popup will parent the Component the
        -     * Popup creates to. A null owner implies there
        -     * is no valid parent. x and
        -     * y specify the preferred initial location to place
        -     * the Popup at. Based on screen size, or other paramaters,
        -     * the Popup may not display at x and
        -     * y.
        +     * Creates a {@code Popup} for the Component {@code owner}
        +     * containing the Component {@code contents}. {@code owner}
        +     * is used to determine which {@code Window} the new
        +     * {@code Popup} will parent the {@code Component} the
        +     * {@code Popup} creates to. A null {@code owner} implies there
        +     * is no valid parent. {@code x} and
        +     * {@code y} specify the preferred initial location to place
        +     * the {@code Popup} at. Based on screen size, or other paramaters,
        +     * the {@code Popup} may not display at {@code x} and
        +     * {@code y}.
              *
              * @param owner    Component mouse coordinates are relative to, may be null
              * @param contents Contents of the Popup
        @@ -226,8 +226,8 @@
             }
         
             /**
        -     * Obtains the appropriate Popup based on
        -     * popupType.
        +     * Obtains the appropriate {@code Popup} based on
        +     * {@code popupType}.
              */
             private Popup getPopup(Component owner, Component contents,
                                    int ownerX, int ownerY, int popupType) {
        @@ -291,8 +291,8 @@
             }
         
             /**
        -     * Returns true if the Component i inside a heavy weight
        -     * Popup.
        +     * Returns true if the Component {@code i} inside a heavy weight
        +     * {@code Popup}.
              */
             private boolean invokerInHeavyWeightPopup(Component i) {
                 if (i != null) {
        @@ -318,7 +318,7 @@
                 private volatile boolean isCacheEnabled = true;
         
                 /**
        -         * Returns either a new or recycled Popup containing
        +         * Returns either a new or recycled {@code Popup} containing
                  * the specified children.
                  */
                 static Popup getHeavyWeightPopup(Component owner, Component contents,
        @@ -373,10 +373,10 @@
                 }
         
                 /**
        -         * Returns a previously disposed heavy weight Popup
        -         * associated with window. This will return null if
        -         * there is no HeavyWeightPopup associated with
        -         * window.
        +         * Returns a previously disposed heavy weight {@code Popup}
        +         * associated with {@code window}. This will return null if
        +         * there is no {@code HeavyWeightPopup} associated with
        +         * {@code window}.
                  */
                 private static HeavyWeightPopup getRecycledHeavyWeightPopup(Window w) {
                     synchronized (HeavyWeightPopup.class) {
        @@ -399,8 +399,8 @@
         
                 /**
                  * Returns the cache to use for heavy weight popups. Maps from
        -         * Window to a List of
        -         * HeavyWeightPopups.
        +         * {@code Window} to a {@code List} of
        +         * {@code HeavyWeightPopup}s.
                  */
                 @SuppressWarnings("unchecked")
                 private static Map> getHeavyWeightPopupCache() {
        @@ -418,7 +418,7 @@
                 }
         
                 /**
        -         * Recycles the passed in HeavyWeightPopup.
        +         * Recycles the passed in {@code HeavyWeightPopup}.
                  */
                 private static void recycleHeavyWeightPopup(HeavyWeightPopup popup) {
                     synchronized (HeavyWeightPopup.class) {
        @@ -492,8 +492,8 @@
                 }
         
                 /**
        -         * As we recycle the Window, we don't want to dispose it,
        -         * thus this method does nothing, instead use _dipose
        +         * As we recycle the {@code Window}, we don't want to dispose it,
        +         * thus this method does nothing, instead use {@code _dipose}
                  * which will handle the disposing.
                  */
                 void dispose() {
        @@ -508,7 +508,7 @@
         
             /**
              * ContainerPopup consolidates the common code used in the light/medium
        -     * weight implementations of Popup.
        +     * weight implementations of {@code Popup}.
              */
             private static class ContainerPopup extends Popup {
                 /** Component we are to be added to. */
        @@ -677,9 +677,9 @@
                                  new StringBuffer("PopupFactory.lightPopupCache");
         
                 /**
        -         * Returns a light weight Popup implementation. If
        -         * the Popup needs more space that in available in
        -         * owner, this will return null.
        +         * Returns a light weight {@code Popup} implementation. If
        +         * the {@code Popup} needs more space that in available in
        +         * {@code owner}, this will return null.
                  */
                 static Popup getLightWeightPopup(Component owner, Component contents,
                                                  int ownerX, int ownerY) {
        @@ -712,7 +712,7 @@
                 }
         
                 /**
        -         * Recycles the LightWeightPopup popup.
        +         * Recycles the LightWeightPopup {@code popup}.
                  */
                 private static void recycleLightWeightPopup(LightWeightPopup popup) {
                     synchronized (LightWeightPopup.class) {
        @@ -724,7 +724,7 @@
                 }
         
                 /**
        -         * Returns a previously used LightWeightPopup, or null
        +         * Returns a previously used {@code LightWeightPopup}, or null
                  * if none of the popups have been recycled.
                  */
                 private static LightWeightPopup getRecycledLightWeightPopup() {
        @@ -805,7 +805,7 @@
                 //
         
                 /**
        -         * Resets the Popup to an initial state.
        +         * Resets the {@code Popup} to an initial state.
                  */
                 void reset(Component owner, Component contents, int ownerX,
                            int ownerY) {
        @@ -834,9 +834,9 @@
         
         
                 /**
        -         * Returns a medium weight Popup implementation. If
        -         * the Popup needs more space that in available in
        -         * owner, this will return null.
        +         * Returns a medium weight {@code Popup} implementation. If
        +         * the {@code Popup} needs more space that in available in
        +         * {@code owner}, this will return null.
                  */
                 static Popup getMediumWeightPopup(Component owner, Component contents,
                                                   int ownerX, int ownerY) {
        @@ -870,7 +870,7 @@
                 }
         
                 /**
        -         * Recycles the MediumWeightPopup popup.
        +         * Recycles the MediumWeightPopup {@code popup}.
                  */
                 private static void recycleMediumWeightPopup(MediumWeightPopup popup) {
                     synchronized (MediumWeightPopup.class) {
        @@ -882,7 +882,7 @@
                 }
         
                 /**
        -         * Returns a previously used MediumWeightPopup, or null
        +         * Returns a previously used {@code MediumWeightPopup}, or null
                  * if none of the popups have been recycled.
                  */
                 private static MediumWeightPopup getRecycledMediumWeightPopup() {
        @@ -960,7 +960,7 @@
                 }
         
                 /**
        -         * Resets the Popup to an initial state.
        +         * Resets the {@code Popup} to an initial state.
                  */
                 void reset(Component owner, Component contents, int ownerX,
                            int ownerY) {
        --- old/src/java.desktop/share/classes/javax/swing/ProgressMonitor.java	2015-10-04 22:57:13.469262034 +0400
        +++ new/src/java.desktop/share/classes/javax/swing/ProgressMonitor.java	2015-10-04 22:57:13.281262042 +0400
        @@ -465,7 +465,7 @@
             ////////////////
         
             /**
        -     * The AccessibleContext for the ProgressMonitor
        +     * The {@code AccessibleContext} for the {@code ProgressMonitor}
              * @since 1.5
              */
             protected AccessibleContext accessibleContext = null;
        @@ -473,11 +473,11 @@
             private AccessibleContext accessibleJOptionPane = null;
         
             /**
        -     * Gets the AccessibleContext for the
        -     * ProgressMonitor
        +     * Gets the {@code AccessibleContext} for the
        +     * {@code ProgressMonitor}
              *
        -     * @return the AccessibleContext for the
        -     * ProgressMonitor
        +     * @return the {@code AccessibleContext} for the
        +     * {@code ProgressMonitor}
              * @since 1.5
              */
             public AccessibleContext getAccessibleContext() {
        @@ -499,8 +499,8 @@
             }
         
             /**
        -     * AccessibleProgressMonitor implements accessibility
        -     * support for the ProgressMonitor class.
        +     * {@code AccessibleProgressMonitor} implements accessibility
        +     * support for the {@code ProgressMonitor} class.
              * @since 1.5
              */
             protected class AccessibleProgressMonitor extends AccessibleContext
        @@ -570,7 +570,7 @@
                 /**
                  * Invoked when the target of the listener has changed its state.
                  *
        -         * @param e  a ChangeEvent object. Must not be null.
        +         * @param e  a {@code ChangeEvent} object. Must not be null.
                  * @throws NullPointerException if the parameter is null.
                  */
                 public void stateChanged(ChangeEvent e) {
        @@ -590,7 +590,7 @@
                 /**
                  * This method gets called when a bound property is changed.
                  *
        -         * @param e A PropertyChangeEvent object describing
        +         * @param e A {@code PropertyChangeEvent} object describing
                  * the event source and the property that has changed. Must not be null.
                  * @throws NullPointerException if the parameter is null.
                  */
        --- old/src/java.desktop/share/classes/javax/swing/ProgressMonitorInputStream.java	2015-10-04 22:57:14.005262010 +0400
        +++ new/src/java.desktop/share/classes/javax/swing/ProgressMonitorInputStream.java	2015-10-04 22:57:13.817262018 +0400
        @@ -104,7 +104,7 @@
         
         
             /**
        -     * Overrides FilterInputStream.read
        +     * Overrides {@code FilterInputStream.read}
              * to update the progress monitor after the read.
              */
             public int read() throws IOException {
        @@ -121,7 +121,7 @@
         
         
             /**
        -     * Overrides FilterInputStream.read
        +     * Overrides {@code FilterInputStream.read}
              * to update the progress monitor after the read.
              */
             public int read(byte b[]) throws IOException {
        @@ -138,7 +138,7 @@
         
         
             /**
        -     * Overrides FilterInputStream.read
        +     * Overrides {@code FilterInputStream.read}
              * to update the progress monitor after the read.
              */
             public int read(byte b[],
        @@ -157,7 +157,7 @@
         
         
             /**
        -     * Overrides FilterInputStream.skip
        +     * Overrides {@code FilterInputStream.skip}
              * to update the progress monitor after the skip.
              */
             public long skip(long n) throws IOException {
        @@ -168,7 +168,7 @@
         
         
             /**
        -     * Overrides FilterInputStream.close
        +     * Overrides {@code FilterInputStream.close}
              * to close the progress monitor as well as the stream.
              */
             public void close() throws IOException {
        @@ -178,7 +178,7 @@
         
         
             /**
        -     * Overrides FilterInputStream.reset
        +     * Overrides {@code FilterInputStream.reset}
              * to reset the progress monitor as well as the stream.
              */
             public synchronized void reset() throws IOException {
        --- old/src/java.desktop/share/classes/javax/swing/RepaintManager.java	2015-10-04 22:57:14.529261986 +0400
        +++ new/src/java.desktop/share/classes/javax/swing/RepaintManager.java	2015-10-04 22:57:14.337261995 +0400
        @@ -53,11 +53,11 @@
          * of repaints to be minimized, for example by collapsing multiple
          * requests into a single repaint for members of a component tree.
          * 

        - * As of 1.6 RepaintManager handles repaint requests - * for Swing's top level components (JApplet, - * JWindow, JFrame and JDialog). - * Any calls to repaint on one of these will call into the - * appropriate addDirtyRegion method. + * As of 1.6 {@code RepaintManager} handles repaint requests + * for Swing's top level components ({@code JApplet}, + * {@code JWindow}, {@code JFrame} and {@code JDialog}). + * Any calls to {@code repaint} on one of these will call into the + * appropriate {@code addDirtyRegion} method. * * @author Arnaud Weber * @since 1.2 @@ -139,7 +139,7 @@ private static final int VOLATILE_LOOP_MAX = 2; /** - * Number of beginPaint that have been invoked. + * Number of {@code beginPaint} that have been invoked. */ private int paintDepth = 0; @@ -162,7 +162,7 @@ // /** * True if we're in the process of painting the dirty regions. This is - * set to true in paintDirtyRegions. + * set to true in {@code paintDirtyRegions}. */ private boolean painting; /** @@ -492,7 +492,7 @@ } /** - * Adds window to the list of Components that + * Adds {@code window} to the list of {@code Component}s that * need to be repainted. * * @param window Window to repaint, null results in nothing happening. @@ -510,7 +510,7 @@ } /** - * Adds applet to the list of Components that + * Adds {@code applet} to the list of {@code Component}s that * need to be repainted. * * @param applet Applet to repaint, null results in nothing happening. @@ -605,7 +605,7 @@ * Extends the dirty region for the specified component to include * the new region. * - * @return false if c is not yet marked dirty. + * @return false if {@code c} is not yet marked dirty. */ private synchronized boolean extendDirtyRegion( Component c, int x, int y, int w, int h) { @@ -1006,9 +1006,9 @@ /** * Return the offscreen buffer that should be used as a double buffer with - * the component c. + * the component {@code c}. * By default there is a double buffer per RepaintManager. - * The buffer might be smaller than (proposedWidth,proposedHeight) + * The buffer might be smaller than {@code (proposedWidth,proposedHeight)} * This happens when the maximum double buffer size as been set for the receiving * repaint manager. * @@ -1028,10 +1028,10 @@ /** * Return a volatile offscreen buffer that should be used as a - * double buffer with the specified component c. + * double buffer with the specified component {@code c}. * The image returned will be an instance of VolatileImage, or null * if a VolatileImage object could not be instantiated. - * This buffer might be smaller than (proposedWidth,proposedHeight). + * This buffer might be smaller than {@code (proposedWidth,proposedHeight)}. * This happens when the maximum double buffer size has been set for this * repaint manager. * @@ -1220,10 +1220,10 @@ * Returns true if this RepaintManager is double buffered. * The default value for this property may vary from platform * to platform. On platforms where native double buffering - * is supported in the AWT, the default value will be false + * is supported in the AWT, the default value will be {@code false} * to avoid unnecessary buffering in Swing. * On platforms where native double buffering is not supported, - * the default value will be true. + * the default value will be {@code true}. * * @return true if this object is double buffered */ @@ -1253,8 +1253,8 @@ } /** - * Returns true if we should use the Image returned - * from getVolatileOffscreenBuffer to do double buffering. + * Returns true if we should use the {@code Image} returned + * from {@code getVolatileOffscreenBuffer} to do double buffering. */ boolean useVolatileDoubleBuffer() { return volatileImageBufferEnabled; @@ -1346,9 +1346,9 @@ /** * Invoked prior to any paint/copyArea method calls. This will - * be followed by an invocation of endPaint. + * be followed by an invocation of {@code endPaint}. * WARNING: Callers of this method need to wrap the call - * in a try/finally, otherwise if an exception is thrown + * in a {@code try/finally}, otherwise if an exception is thrown * during the course of painting the RepaintManager may * be left in a state in which the screen is not updated, eg: *

        @@ -1379,7 +1379,7 @@
             }
         
             /**
        -     * Invoked after beginPaint has been invoked.
        +     * Invoked after {@code beginPaint} has been invoked.
              */
             void endPaint() {
                 if (isPaintingThread()) {
        @@ -1418,7 +1418,7 @@
             }
         
             /**
        -     * Sets the PaintManager that is used to handle all
        +     * Sets the {@code PaintManager} that is used to handle all
              * double buffered painting.
              *
              * @param paintManager The PaintManager to use.  Passing in null indicates
        @@ -1485,7 +1485,7 @@
             /**
              * PaintManager is used to handle all double buffered painting for
              * Swing.  Subclasses should call back into the JComponent method
        -     * paintToOffscreen to handle the actual painting.
        +     * {@code paintToOffscreen} to handle the actual painting.
              */
             static class PaintManager {
                 /**
        @@ -1627,7 +1627,7 @@
                 }
         
                 /**
        -         * If image is non-null with a positive size it
        +         * If {@code image} is non-null with a positive size it
                  * is returned, otherwise null is returned.
                  */
                 private Image getValidImage(Image image) {
        @@ -1640,7 +1640,7 @@
         
                 /**
                  * Schedules a repaint for the specified component.  This differs
        -         * from root.repaint in that if the RepaintManager is
        +         * from {@code root.repaint} in that if the RepaintManager is
                  * currently processing paint requests it'll process this request
                  * with the current set of requests.
                  */
        @@ -1656,7 +1656,7 @@
         
                 /**
                  * Returns true if the component being painted is the root component
        -         * that was previously passed to repaintRoot.
        +         * that was previously passed to {@code repaintRoot}.
                  */
                 protected boolean isRepaintingRoot() {
                     return isRepaintingRoot;
        --- old/src/java.desktop/share/classes/javax/swing/RootPaneContainer.java	2015-10-04 22:57:15.077261961 +0400
        +++ new/src/java.desktop/share/classes/javax/swing/RootPaneContainer.java	2015-10-04 22:57:14.885261970 +0400
        @@ -33,7 +33,7 @@
          * This interface is implemented by components that have a single
          * JRootPane child: JDialog, JFrame, JWindow, JApplet, JInternalFrame.
          * The methods in  this interface are just covers for the JRootPane
        - * properties, e.g. getContentPane() is generally implemented
        + * properties, e.g. {@code getContentPane()} is generally implemented
          * like this:
          *     public Container getContentPane() {
          *         return getRootPane().getContentPane();
        @@ -43,7 +43,7 @@
          * that need to treat components like JFrame, that contain a
          * single JRootPane, specially.  For example in a GUI builder,
          * dropping a component on a RootPaneContainer would be interpreted
        - * as frame.getContentPane().add(child).
        + * as {@code frame.getContentPane().add(child)}.
          * 

        * As a convenience, the standard classes that implement this interface * (such as {@code JFrame}, {@code JDialog}, {@code JWindow}, {@code JApplet}, @@ -59,14 +59,14 @@ * frame.getContentPane().add(child); *

        *

        - * The behavior of the add and - * setLayout methods for - * JFrame, JDialog, JWindow, - * JApplet and JInternalFrame is controlled by - * the rootPaneCheckingEnabled property. If this property is + * The behavior of the {@code add} and + * {@code setLayout} methods for + * {@code JFrame}, {@code JDialog}, {@code JWindow}, + * {@code JApplet} and {@code JInternalFrame} is controlled by + * the {@code rootPaneCheckingEnabled} property. If this property is * true (the default), then calls to these methods are - * forwarded to the contentPane; if false, these - * methods operate directly on the RootPaneContainer. This + * forwarded to the {@code contentPane}; if false, these + * methods operate directly on the {@code RootPaneContainer}. This * property is only intended for subclasses, and is therefore protected. * * @see JRootPane @@ -101,7 +101,7 @@ * The contentPane may not be null. *

        * Generally implemented with - * getRootPane().setContentPane(contentPane); + * {@code getRootPane().setContentPane(contentPane);} * * @exception java.awt.IllegalComponentStateException (a runtime * exception) if the content pane parameter is null @@ -162,7 +162,7 @@ * The glassPane may not be null. *

        * Generally implemented with - * getRootPane().setGlassPane(glassPane); + * {@code getRootPane().setGlassPane(glassPane);} * * @param glassPane the glass pane * @see #getGlassPane --- old/src/java.desktop/share/classes/javax/swing/RowFilter.java 2015-10-04 22:57:15.601261938 +0400 +++ new/src/java.desktop/share/classes/javax/swing/RowFilter.java 2015-10-04 22:57:15.409261946 +0400 @@ -34,21 +34,21 @@ import java.util.regex.PatternSyntaxException; /** - * RowFilter is used to filter out entries from the + * {@code RowFilter} is used to filter out entries from the * model so that they are not shown in the view. For example, a - * RowFilter associated with a JTable might + * {@code RowFilter} associated with a {@code JTable} might * only allow rows that contain a column with a specific string. The * meaning of entry depends on the component type. * For example, when a filter is - * associated with a JTable, an entry corresponds to a - * row; when associated with a JTree, an entry corresponds + * associated with a {@code JTable}, an entry corresponds to a + * row; when associated with a {@code JTree}, an entry corresponds * to a node. *

        - * Subclasses must override the include method to + * Subclasses must override the {@code include} method to * indicate whether the entry should be shown in the - * view. The Entry argument can be used to obtain the values in + * view. The {@code Entry} argument can be used to obtain the values in * each of the columns in that entry. The following example shows an - * include method that allows only entries containing one or + * {@code include} method that allows only entries containing one or * more values starting with the string "a": *

          * RowFilter<Object,Object> startsWithAFilter = new RowFilter<Object,Object>() {
        @@ -65,10 +65,10 @@
          *   }
          * };
          * 
        - * RowFilter has two formal type parameters that allow - * you to create a RowFilter for a specific model. For + * {@code RowFilter} has two formal type parameters that allow + * you to create a {@code RowFilter} for a specific model. For * example, the following assumes a specific model that is wrapping - * objects of type Person. Only Persons + * objects of type {@code Person}. Only {@code Person}s * with an age over 20 will be shown: *
          * RowFilter<PersonModel,Integer> ageFilter = new RowFilter<PersonModel,Integer>() {
        @@ -88,16 +88,16 @@
          * sorter.setRowFilter(ageFilter);
          * 
        * - * @param the type of the model; for example PersonModel + * @param the type of the model; for example {@code PersonModel} * @param the type of the identifier; when using - * TableRowSorter this will be Integer + * {@code TableRowSorter} this will be {@code Integer} * @see javax.swing.table.TableRowSorter * @since 1.6 */ public abstract class RowFilter { /** * Enumeration of the possible comparison values supported by - * some of the default RowFilters. + * some of the default {@code RowFilter}s. * * @see RowFilter * @since 1.6 @@ -141,10 +141,10 @@ } /** - * Returns a RowFilter that uses a regular + * Returns a {@code RowFilter} that uses a regular * expression to determine which entries to include. Only entries * with at least one matching value are included. For - * example, the following creates a RowFilter that + * example, the following creates a {@code RowFilter} that * includes entries with at least one value starting with * "a": *
        @@ -164,12 +164,12 @@
              * @param regex the regular expression to filter on
              * @param indices the indices of the values to check.  If not supplied all
              *               values are evaluated
        -     * @return a RowFilter implementing the specified criteria
        -     * @throws NullPointerException if regex is
        -     *         null
        -     * @throws IllegalArgumentException if any of the indices
        +     * @return a {@code RowFilter} implementing the specified criteria
        +     * @throws NullPointerException if {@code regex} is
        +     *         {@code null}
        +     * @throws IllegalArgumentException if any of the {@code indices}
              *         are < 0
        -     * @throws PatternSyntaxException if regex is
        +     * @throws PatternSyntaxException if {@code regex} is
              *         not a valid regular expression.
              * @see java.util.regex.Pattern
              */
        @@ -179,9 +179,9 @@
             }
         
             /**
        -     * Returns a RowFilter that includes entries that
        -     * have at least one Date value meeting the specified
        -     * criteria.  For example, the following RowFilter includes
        +     * Returns a {@code RowFilter} that includes entries that
        +     * have at least one {@code Date} value meeting the specified
        +     * criteria.  For example, the following {@code RowFilter} includes
              * only entries with at least one date value after the current date:
              * 
              *   RowFilter.dateFilter(ComparisonType.AFTER, new Date());
        @@ -193,12 +193,12 @@
              * @param date the date to compare against
              * @param indices the indices of the values to check.  If not supplied all
              *               values are evaluated
        -     * @return a RowFilter implementing the specified criteria
        -     * @throws NullPointerException if date is
        -     *          null
        -     * @throws IllegalArgumentException if any of the indices
        -     *         are < 0 or type is
        -     *         null
        +     * @return a {@code RowFilter} implementing the specified criteria
        +     * @throws NullPointerException if {@code date} is
        +     *          {@code null}
        +     * @throws IllegalArgumentException if any of the {@code indices}
        +     *         are < 0 or {@code type} is
        +     *         {@code null}
              * @see java.util.Calendar
              * @see java.util.Date
              */
        @@ -208,8 +208,8 @@
             }
         
             /**
        -     * Returns a RowFilter that includes entries that
        -     * have at least one Number value meeting the
        +     * Returns a {@code RowFilter} that includes entries that
        +     * have at least one {@code Number} value meeting the
              * specified criteria.  For example, the following
              * filter will only include entries with at
              * least one number value equal to 10:
        @@ -223,10 +223,10 @@
              * @param number a {@code Number} value to compare against
              * @param indices the indices of the values to check.  If not supplied all
              *               values are evaluated
        -     * @return a RowFilter implementing the specified criteria
        -     * @throws IllegalArgumentException if any of the indices
        -     *         are < 0, type is null
        -     *         or number is null
        +     * @return a {@code RowFilter} implementing the specified criteria
        +     * @throws IllegalArgumentException if any of the {@code indices}
        +     *         are < 0, {@code type} is {@code null}
        +     *         or {@code number} is {@code null}
              */
             public static  RowFilter numberFilter(ComparisonType type,
                                                     Number number, int... indices) {
        @@ -234,10 +234,10 @@
             }
         
             /**
        -     * Returns a RowFilter that includes entries if any
        +     * Returns a {@code RowFilter} that includes entries if any
              * of the supplied filters includes the entry.
              * 

        - * The following example creates a RowFilter that will + * The following example creates a {@code RowFilter} that will * include any entries containing the string "foo" or the string * "bar": *

        @@ -249,11 +249,11 @@
              *
              * @param  the type of the model to which the {@code RowFilter} applies
              * @param  the type of the identifier passed to the {@code RowFilter}
        -     * @param filters the RowFilters to test
        +     * @param filters the {@code RowFilter}s to test
              * @throws IllegalArgumentException if any of the filters
        -     *         are null
        -     * @throws NullPointerException if filters is null
        -     * @return a RowFilter implementing the specified criteria
        +     *         are {@code null}
        +     * @throws NullPointerException if {@code filters} is null
        +     * @return a {@code RowFilter} implementing the specified criteria
              * @see java.util.Arrays#asList
              */
             public static  RowFilter orFilter(
        @@ -262,10 +262,10 @@
             }
         
             /**
        -     * Returns a RowFilter that includes entries if all
        +     * Returns a {@code RowFilter} that includes entries if all
              * of the supplied filters include the entry.
              * 

        - * The following example creates a RowFilter that will + * The following example creates a {@code RowFilter} that will * include any entries containing the string "foo" and the string * "bar": *

        @@ -277,11 +277,11 @@
              *
              * @param  the type of the model the {@code RowFilter} applies to
              * @param  the type of the identifier passed to the {@code RowFilter}
        -     * @param filters the RowFilters to test
        -     * @return a RowFilter implementing the specified criteria
        +     * @param filters the {@code RowFilter}s to test
        +     * @return a {@code RowFilter} implementing the specified criteria
              * @throws IllegalArgumentException if any of the filters
        -     *         are null
        -     * @throws NullPointerException if filters is null
        +     *         are {@code null}
        +     * @throws NullPointerException if {@code filters} is null
              * @see java.util.Arrays#asList
              */
             public static  RowFilter andFilter(
        @@ -290,15 +290,15 @@
             }
         
             /**
        -     * Returns a RowFilter that includes entries if the
        +     * Returns a {@code RowFilter} that includes entries if the
              * supplied filter does not include the entry.
              *
              * @param  the type of the model to which the {@code RowFilter} applies
              * @param  the type of the identifier passed to the {@code RowFilter}
        -     * @param filter the RowFilter to negate
        -     * @return a RowFilter implementing the specified criteria
        -     * @throws IllegalArgumentException if filter is
        -     *         null
        +     * @param filter the {@code RowFilter} to negate
        +     * @return a {@code RowFilter} implementing the specified criteria
        +     * @throws IllegalArgumentException if {@code filter} is
        +     *         {@code null}
              */
             public static  RowFilter notFilter(RowFilter filter) {
                 return new NotFilter(filter);
        @@ -308,11 +308,11 @@
              * Returns true if the specified entry should be shown;
              * returns false if the entry should be hidden.
              * 

        - * The entry argument is valid only for the duration of - * the invocation. Using entry after the call returns + * The {@code entry} argument is valid only for the duration of + * the invocation. Using {@code entry} after the call returns * results in undefined behavior. * - * @param entry a non-null object that wraps the underlying + * @param entry a non-{@code null} object that wraps the underlying * object from the model * @return true if the entry should be shown */ @@ -327,22 +327,22 @@ // /** - * An Entry object is passed to instances of - * RowFilter, allowing the filter to get the value of the + * An {@code Entry} object is passed to instances of + * {@code RowFilter}, allowing the filter to get the value of the * entry's data, and thus to determine whether the entry should be shown. - * An Entry object contains information about the model + * An {@code Entry} object contains information about the model * as well as methods for getting the underlying values from the model. * - * @param the type of the model; for example PersonModel + * @param the type of the model; for example {@code PersonModel} * @param the type of the identifier; when using - * TableRowSorter this will be Integer + * {@code TableRowSorter} this will be {@code Integer} * @see javax.swing.RowFilter * @see javax.swing.DefaultRowSorter#setRowFilter(javax.swing.RowFilter) * @since 1.6 */ public abstract static class Entry { /** - * Creates an Entry. + * Creates an {@code Entry}. */ public Entry() { } @@ -365,7 +365,7 @@ /** * Returns the value at the specified index. This may return - * null. When used with a table, index + * {@code null}. When used with a table, index * corresponds to the column number in the model. * * @param index the index of the value to get @@ -377,13 +377,13 @@ /** * Returns the string value at the specified index. If - * filtering is being done based on String values - * this method is preferred to that of getValue - * as getValue(index).toString() may return a - * different result than getStringValue(index). + * filtering is being done based on {@code String} values + * this method is preferred to that of {@code getValue} + * as {@code getValue(index).toString()} may return a + * different result than {@code getStringValue(index)}. *

        - * This implementation calls getValue(index).toString() - * after checking for null. Subclasses that provide + * This implementation calls {@code getValue(index).toString()} + * after checking for {@code null}. Subclasses that provide * different string conversion should override this method if * necessary. * @@ -400,7 +400,7 @@ /** * Returns the identifer (in the model) of the entry. * For a table this corresponds to the index of the row in the model, - * expressed as an Integer. + * expressed as an {@code Integer}. * * @return a model-based (not view-based) identifier for * this entry --- old/src/java.desktop/share/classes/javax/swing/RowSorter.java 2015-10-04 22:57:16.133261914 +0400 +++ new/src/java.desktop/share/classes/javax/swing/RowSorter.java 2015-10-04 22:57:15.945261922 +0400 @@ -29,64 +29,64 @@ import java.util.*; /** - * RowSorter provides the basis for sorting and filtering. - * Beyond creating and installing a RowSorter, you very rarely + * {@code RowSorter} provides the basis for sorting and filtering. + * Beyond creating and installing a {@code RowSorter}, you very rarely * need to interact with one directly. Refer to * {@link javax.swing.table.TableRowSorter TableRowSorter} for a concrete - * implementation of RowSorter for JTable. + * implementation of {@code RowSorter} for {@code JTable}. *

        - * RowSorter's primary role is to provide a mapping between + * {@code RowSorter}'s primary role is to provide a mapping between * two coordinate systems: that of the view (for example a - * JTable) and that of the underlying data source, typically a + * {@code JTable}) and that of the underlying data source, typically a * model. *

        - * The view invokes the following methods on the RowSorter: + * The view invokes the following methods on the {@code RowSorter}: *

          - *
        • toggleSortOrder — The view invokes this when the + *
        • {@code toggleSortOrder} — The view invokes this when the * appropriate user gesture has occurred to trigger a sort. For example, * the user clicked a column header in a table. *
        • One of the model change methods — The view invokes a model * change method when the underlying model * has changed. There may be order dependencies in how the events are - * delivered, so a RowSorter should not update its mapping + * delivered, so a {@code RowSorter} should not update its mapping * until one of these methods is invoked. *
        * Because the view makes extensive use of the - * convertRowIndexToModel, - * convertRowIndexToView and getViewRowCount methods, + * {@code convertRowIndexToModel}, + * {@code convertRowIndexToView} and {@code getViewRowCount} methods, * these methods need to be fast. *

        - * RowSorter provides notification of changes by way of - * RowSorterListener. Two types of notification are sent: + * {@code RowSorter} provides notification of changes by way of + * {@code RowSorterListener}. Two types of notification are sent: *

          - *
        • RowSorterEvent.Type.SORT_ORDER_CHANGED — notifies + *
        • {@code RowSorterEvent.Type.SORT_ORDER_CHANGED} — notifies * listeners that the sort order has changed. This is typically followed * by a notification that the sort has changed. - *
        • RowSorterEvent.Type.SORTED — notifies listeners that - * the mapping maintained by the RowSorter has changed in + *
        • {@code RowSorterEvent.Type.SORTED} — notifies listeners that + * the mapping maintained by the {@code RowSorter} has changed in * some way. *
        - * RowSorter implementations typically don't have a one-to-one + * {@code RowSorter} implementations typically don't have a one-to-one * mapping with the underlying model, but they can. * For example, if a database does the sorting, - * toggleSortOrder might call through to the database + * {@code toggleSortOrder} might call through to the database * (on a background thread), and override the mapping methods to return the * argument that is passed in. *

        - * Concrete implementations of RowSorter - * need to reference a model such as TableModel or - * ListModel. The view classes, such as - * JTable and JList, will also have a + * Concrete implementations of {@code RowSorter} + * need to reference a model such as {@code TableModel} or + * {@code ListModel}. The view classes, such as + * {@code JTable} and {@code JList}, will also have a * reference to the model. To avoid ordering dependencies, - * RowSorter implementations should not install a + * {@code RowSorter} implementations should not install a * listener on the model. Instead the view class will call into the - * RowSorter when the model changes. For - * example, if a row is updated in a TableModel - * JTable invokes rowsUpdated. + * {@code RowSorter} when the model changes. For + * example, if a row is updated in a {@code TableModel} + * {@code JTable} invokes {@code rowsUpdated}. * When the model changes, the view may call into any of the following methods: - * modelStructureChanged, allRowsChanged, - * rowsInserted, rowsDeleted and - * rowsUpdated. + * {@code modelStructureChanged}, {@code allRowsChanged}, + * {@code rowsInserted}, {@code rowsDeleted} and + * {@code rowsUpdated}. * * @param the type of the underlying model * @see javax.swing.table.TableRowSorter @@ -96,7 +96,7 @@ private EventListenerList listenerList = new EventListenerList(); /** - * Creates a RowSorter. + * Creates a {@code RowSorter}. */ public RowSorter() { } @@ -119,7 +119,7 @@ * effect. *

        * If this results in changing the sort order and sorting, the - * appropriate RowSorterListener notification will be + * appropriate {@code RowSorterListener} notification will be * sent. * * @param column the column to toggle the sort ordering of, in @@ -130,28 +130,28 @@ public abstract void toggleSortOrder(int column); /** - * Returns the location of index in terms of the - * underlying model. That is, for the row index in + * Returns the location of {@code index} in terms of the + * underlying model. That is, for the row {@code index} in * the coordinates of the view this returns the row index in terms * of the underlying model. * * @param index the row index in terms of the underlying view * @return row index in terms of the view - * @throws IndexOutOfBoundsException if index is outside the + * @throws IndexOutOfBoundsException if {@code index} is outside the * range of the view */ public abstract int convertRowIndexToModel(int index); /** - * Returns the location of index in terms of the - * view. That is, for the row index in the + * Returns the location of {@code index} in terms of the + * view. That is, for the row {@code index} in the * coordinates of the underlying model this returns the row index * in terms of the view. * * @param index the row index in terms of the underlying model * @return row index in terms of the view, or -1 if index has been * filtered out of the view - * @throws IndexOutOfBoundsException if index is outside + * @throws IndexOutOfBoundsException if {@code index} is outside * the range of the model */ public abstract int convertRowIndexToView(int index); @@ -159,7 +159,7 @@ /** * Sets the current sort keys. * - * @param keys the new SortKeys; null + * @param keys the new {@code SortKeys}; {@code null} * is a shorthand for specifying an empty list, * indicating that the view should be unsorted */ @@ -197,7 +197,7 @@ /** * Invoked when the underlying model structure has completely * changed. For example, if the number of columns in a - * TableModel changed, this method would be invoked. + * {@code TableModel} changed, this method would be invoked. *

        * You normally do not call this method. This method is public * to allow view classes to call it. @@ -234,7 +234,7 @@ * @param firstRow the first row * @param endRow the last row * @throws IndexOutOfBoundsException if either argument is invalid, or - * firstRow > endRow + * {@code firstRow > endRow} */ public abstract void rowsInserted(int firstRow, int endRow); @@ -254,7 +254,7 @@ * @param endRow the last row * @throws IndexOutOfBoundsException if either argument is outside * the range of the model before the change, or - * firstRow > endRow + * {@code firstRow > endRow} */ public abstract void rowsDeleted(int firstRow, int endRow); @@ -269,7 +269,7 @@ * @param endRow the last row, in terms of the underlying model * @throws IndexOutOfBoundsException if either argument is outside * the range of the underlying model, or - * firstRow > endRow + * {@code firstRow > endRow} */ public abstract void rowsUpdated(int firstRow, int endRow); @@ -286,30 +286,30 @@ * model * @throws IndexOutOfBoundsException if either argument is outside * the range of the underlying model after the change, - * firstRow > endRow, or - * column is outside the range of the underlying + * {@code firstRow > endRow}, or + * {@code column} is outside the range of the underlying * model */ public abstract void rowsUpdated(int firstRow, int endRow, int column); /** - * Adds a RowSorterListener to receive notification - * about this RowSorter. If the same + * Adds a {@code RowSorterListener} to receive notification + * about this {@code RowSorter}. If the same * listener is added more than once it will receive multiple - * notifications. If l is null nothing + * notifications. If {@code l} is {@code null} nothing * is done. * - * @param l the RowSorterListener + * @param l the {@code RowSorterListener} */ public void addRowSorterListener(RowSorterListener l) { listenerList.add(RowSorterListener.class, l); } /** - * Removes a RowSorterListener. If - * l is null nothing is done. + * Removes a {@code RowSorterListener}. If + * {@code l} is {@code null} nothing is done. * - * @param l the RowSorterListener + * @param l the {@code RowSorterListener} */ public void removeRowSorterListener(RowSorterListener l) { listenerList.remove(RowSorterListener.class, l); @@ -326,7 +326,7 @@ * Notifies listener that the mapping has changed. * * @param lastRowIndexToModel the mapping from model indices to - * view indices prior to the sort, may be null + * view indices prior to the sort, may be {@code null} */ protected void fireRowSorterChanged(int[] lastRowIndexToModel) { fireRowSorterChanged(new RowSorterEvent(this, @@ -355,13 +355,13 @@ private SortOrder sortOrder; /** - * Creates a SortKey for the specified column with + * Creates a {@code SortKey} for the specified column with * the specified sort order. * * @param column index of the column, in terms of the model * @param sortOrder the sorter order - * @throws IllegalArgumentException if sortOrder is - * null + * @throws IllegalArgumentException if {@code sortOrder} is + * {@code null} */ public SortKey(int column, SortOrder sortOrder) { if (sortOrder == null) { @@ -391,7 +391,7 @@ } /** - * Returns the hash code for this SortKey. + * Returns the hash code for this {@code SortKey}. * * @return hash code */ @@ -404,12 +404,12 @@ /** * Returns true if this object equals the specified object. - * If the specified object is a SortKey and + * If the specified object is a {@code SortKey} and * references the same column and sort order, the two objects * are equal. * * @param o the object to compare to - * @return true if o is equal to this SortKey + * @return true if {@code o} is equal to this {@code SortKey} */ public boolean equals(Object o) { if (o == this) { --- old/src/java.desktop/share/classes/javax/swing/ScrollPaneLayout.java 2015-10-04 22:57:16.665261890 +0400 +++ new/src/java.desktop/share/classes/javax/swing/ScrollPaneLayout.java 2015-10-04 22:57:16.473261899 +0400 @@ -38,8 +38,8 @@ /** - * The layout manager used by JScrollPane. - * JScrollPaneLayout is + * The layout manager used by {@code JScrollPane}. + * {@code JScrollPaneLayout} is * responsible for nine components: a viewport, two scrollbars, * a row header, a column header, and four "corner" components. *

        @@ -49,7 +49,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. * * @see JScrollPane @@ -65,7 +65,7 @@ /** * The scrollpane's viewport child. - * Default is an empty JViewport. + * Default is an empty {@code JViewport}. * @see JScrollPane#setViewport */ protected JViewport viewport; @@ -73,7 +73,7 @@ /** * The scrollpane's vertical scrollbar child. - * Default is a JScrollBar. + * Default is a {@code JScrollBar}. * @see JScrollPane#setVerticalScrollBar */ protected JScrollBar vsb; @@ -81,21 +81,21 @@ /** * The scrollpane's horizontal scrollbar child. - * Default is a JScrollBar. + * Default is a {@code JScrollBar}. * @see JScrollPane#setHorizontalScrollBar */ protected JScrollBar hsb; /** - * The row header child. Default is null. + * The row header child. Default is {@code null}. * @see JScrollPane#setRowHeader */ protected JViewport rowHead; /** - * The column header child. Default is null. + * The column header child. Default is {@code null}. * @see JScrollPane#setColumnHeader */ protected JViewport colHead; @@ -103,7 +103,7 @@ /** * The component to display in the lower left corner. - * Default is null. + * Default is {@code null}. * @see JScrollPane#setCorner */ protected Component lowerLeft; @@ -111,7 +111,7 @@ /** * The component to display in the lower right corner. - * Default is null. + * Default is {@code null}. * @see JScrollPane#setCorner */ protected Component lowerRight; @@ -119,7 +119,7 @@ /** * The component to display in the upper left corner. - * Default is null. + * Default is {@code null}. * @see JScrollPane#setCorner */ protected Component upperLeft; @@ -127,7 +127,7 @@ /** * The component to display in the upper right corner. - * Default is null. + * Default is {@code null}. * @see JScrollPane#setCorner */ protected Component upperRight; @@ -135,9 +135,9 @@ /** * The display policy for the vertical scrollbar. - * The default is ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED. + * The default is {@code ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED}. *

        - * This field is obsolete, please use the JScrollPane field instead. + * This field is obsolete, please use the {@code JScrollPane} field instead. * * @see JScrollPane#setVerticalScrollBarPolicy */ @@ -146,9 +146,9 @@ /** * The display policy for the horizontal scrollbar. - * The default is ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED. + * The default is {@code ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED}. *

        - * This field is obsolete, please use the JScrollPane field instead. + * This field is obsolete, please use the {@code JScrollPane} field instead. * * @see JScrollPane#setHorizontalScrollBarPolicy */ @@ -157,9 +157,9 @@ /** * This method is invoked after the ScrollPaneLayout is set as the - * LayoutManager of a JScrollPane. + * LayoutManager of a {@code JScrollPane}. * It initializes all of the internal fields that - * are ordinarily set by addLayoutComponent. For example: + * are ordinarily set by {@code addLayoutComponent}. For example: *

              * ScrollPaneLayout mySPLayout = new ScrollPanelLayout() {
              *     public void layoutContainer(Container p) {
        @@ -192,13 +192,13 @@
              * the left corner, or vertical scrollbar, is added, the old one,
              * if it exists, must be removed.
              * 

        - * This method returns newC. If oldC is - * not equal to newC and is non-null, + * This method returns {@code newC}. If {@code oldC} is + * not equal to {@code newC} and is non-{@code null}, * it will be removed from its parent. * - * @param oldC the Component to replace - * @param newC the Component to add - * @return the newC + * @param oldC the {@code Component} to replace + * @param newC the {@code Component} to add + * @return the {@code newC} */ protected Component addSingletonComponent(Component oldC, Component newC) { @@ -226,7 +226,7 @@ * * @param s the component identifier * @param c the component to be added - * @exception IllegalArgumentException if s is an invalid key + * @exception IllegalArgumentException if {@code s} is an invalid key */ public void addLayoutComponent(String s, Component c) { @@ -319,12 +319,12 @@ *

      • ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER *
      • ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS *
      - * Note: Applications should use the JScrollPane version + * Note: Applications should use the {@code JScrollPane} version * of this method. It only exists for backwards compatibility * with the Swing 1.0.2 (and earlier) versions of this class. * * @param x an integer giving the display policy - * @exception IllegalArgumentException if x is an invalid + * @exception IllegalArgumentException if {@code x} is an invalid * vertical scroll bar policy, as listed above */ public void setVerticalScrollBarPolicy(int x) { @@ -357,12 +357,12 @@ *
    10. ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER *
    11. ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS * - * Note: Applications should use the JScrollPane version + * Note: Applications should use the {@code JScrollPane} version * of this method. It only exists for backwards compatibility * with the Swing 1.0.2 (and earlier) versions of this class. * * @param x an int giving the display policy - * @exception IllegalArgumentException if x is not a valid + * @exception IllegalArgumentException if {@code x} is not a valid * horizontal scrollbar policy, as listed above */ public void setHorizontalScrollBarPolicy(int x) { @@ -379,9 +379,9 @@ /** - * Returns the JViewport object that displays the + * Returns the {@code JViewport} object that displays the * scrollable contents. - * @return the JViewport object that displays the scrollable contents + * @return the {@code JViewport} object that displays the scrollable contents * @see JScrollPane#getViewport */ public JViewport getViewport() { @@ -390,8 +390,8 @@ /** - * Returns the JScrollBar object that handles horizontal scrolling. - * @return the JScrollBar object that handles horizontal scrolling + * Returns the {@code JScrollBar} object that handles horizontal scrolling. + * @return the {@code JScrollBar} object that handles horizontal scrolling * @see JScrollPane#getHorizontalScrollBar */ public JScrollBar getHorizontalScrollBar() { @@ -399,8 +399,8 @@ } /** - * Returns the JScrollBar object that handles vertical scrolling. - * @return the JScrollBar object that handles vertical scrolling + * Returns the {@code JScrollBar} object that handles vertical scrolling. + * @return the {@code JScrollBar} object that handles vertical scrolling * @see JScrollPane#getVerticalScrollBar */ public JScrollBar getVerticalScrollBar() { @@ -409,8 +409,8 @@ /** - * Returns the JViewport object that is the row header. - * @return the JViewport object that is the row header + * Returns the {@code JViewport} object that is the row header. + * @return the {@code JViewport} object that is the row header * @see JScrollPane#getRowHeader */ public JViewport getRowHeader() { @@ -419,8 +419,8 @@ /** - * Returns the JViewport object that is the column header. - * @return the JViewport object that is the column header + * Returns the {@code JViewport} object that is the column header. + * @return the {@code JViewport} object that is the column header * @see JScrollPane#getColumnHeader */ public JViewport getColumnHeader() { @@ -429,11 +429,11 @@ /** - * Returns the Component at the specified corner. - * @param key the String specifying the corner - * @return the Component at the specified corner, as defined in - * {@link ScrollPaneConstants}; if key is not one of the - * four corners, null is returned + * Returns the {@code Component} at the specified corner. + * @param key the {@code String} specifying the corner + * @return the {@code Component} at the specified corner, as defined in + * {@link ScrollPaneConstants}; if {@code key} is not one of the + * four corners, {@code null} is returned * @see JScrollPane#getCorner */ public Component getCorner(String key) { @@ -456,7 +456,7 @@ /** - * The preferred size of a ScrollPane is the size of the insets, + * The preferred size of a {@code ScrollPane} is the size of the insets, * plus the preferred size of the viewport, plus the preferred size of * the visible headers, plus the preferred size of the scrollbars * that will appear given the current view and the current @@ -464,8 +464,8 @@ *

      Note that the rowHeader is calculated as part of the preferred width * and the colHeader is calculated as part of the preferred size. * - * @param parent the Container that will be laid out - * @return a Dimension object specifying the preferred size of the + * @param parent the {@code Container} that will be laid out + * @return a {@code Dimension} object specifying the preferred size of the * viewport and any scrollbars * @see ViewportLayout * @see LayoutManager @@ -584,14 +584,14 @@ /** - * The minimum size of a ScrollPane is the size of the insets + * The minimum size of a {@code ScrollPane} is the size of the insets * plus minimum size of the viewport, plus the scrollpane's * viewportBorder insets, plus the minimum size * of the visible headers, plus the minimum size of the * scrollbars whose displayPolicy isn't NEVER. * - * @param parent the Container that will be laid out - * @return a Dimension object specifying the minimum size + * @param parent the {@code Container} that will be laid out + * @return a {@code Dimension} object specifying the minimum size */ public Dimension minimumLayoutSize(Container parent) { @@ -672,15 +672,15 @@ * height and the viewport's width. * *

    12. If a vertical scrollbar is needed, i.e. if the viewport's extent - * height is smaller than its view height or if the displayPolicy + * height is smaller than its view height or if the {@code displayPolicy} * is ALWAYS, it's treated like the row header with respect to its * dimensions and is made visible. * *
    13. If a horizontal scrollbar is needed, it is treated like the * column header (see the paragraph above regarding the vertical scrollbar). * - *
    14. If the scrollpane has a non-null - * viewportBorder, then space is allocated for that. + *
    15. If the scrollpane has a non-{@code null} + * {@code viewportBorder}, then space is allocated for that. * *
    16. The viewport gets the space available after accounting for * the previous constraints. @@ -692,7 +692,7 @@ * corners, and a column header gets upper corners. * * - * @param parent the Container to lay out + * @param parent the {@code Container} to lay out */ public void layoutContainer(Container parent) { @@ -1043,11 +1043,11 @@ } /** - * Adjusts the Rectangle available based on if - * the vertical scrollbar is needed (wantsVSB). - * The location of the vsb is updated in vsbR, and - * the viewport border insets (vpbInsets) are used to offset - * the vsb. This is only called when wantsVSB has + * Adjusts the {@code Rectangle available} based on if + * the vertical scrollbar is needed ({@code wantsVSB}). + * The location of the vsb is updated in {@code vsbR}, and + * the viewport border insets ({@code vpbInsets}) are used to offset + * the vsb. This is only called when {@code wantsVSB} has * changed, eg you shouldn't invoke adjustForVSB(true) twice. */ private void adjustForVSB(boolean wantsVSB, Rectangle available, @@ -1074,11 +1074,11 @@ } /** - * Adjusts the Rectangle available based on if - * the horizontal scrollbar is needed (wantsHSB). - * The location of the hsb is updated in hsbR, and - * the viewport border insets (vpbInsets) are used to offset - * the hsb. This is only called when wantsHSB has + * Adjusts the {@code Rectangle available} based on if + * the horizontal scrollbar is needed ({@code wantsHSB}). + * The location of the hsb is updated in {@code hsbR}, and + * the viewport border insets ({@code vpbInsets}) are used to offset + * the hsb. This is only called when {@code wantsHSB} has * changed, eg you shouldn't invoked adjustForHSB(true) twice. */ private void adjustForHSB(boolean wantsHSB, Rectangle available, @@ -1106,7 +1106,7 @@ * @param scrollpane an instance of the {@code JScrollPane} * @return the size and position of the viewport border * @deprecated As of JDK version Swing1.1 - * replaced by JScrollPane.getViewportBorderBounds(). + * replaced by {@code JScrollPane.getViewportBorderBounds()}. */ @Deprecated public Rectangle getViewportBorderBounds(JScrollPane scrollpane) { @@ -1114,7 +1114,7 @@ } /** - * The UI resource version of ScrollPaneLayout. + * The UI resource version of {@code ScrollPaneLayout}. */ public static class UIResource extends ScrollPaneLayout implements javax.swing.plaf.UIResource {} } --- old/src/java.desktop/share/classes/javax/swing/Scrollable.java 2015-10-04 22:57:17.205261866 +0400 +++ new/src/java.desktop/share/classes/javax/swing/Scrollable.java 2015-10-04 22:57:17.017261874 +0400 @@ -45,15 +45,15 @@ { /** * Returns the preferred size of the viewport for a view component. - * For example, the preferred size of a JList component + * For example, the preferred size of a {@code JList} component * is the size required to accommodate all of the cells in its list. - * However, the value of preferredScrollableViewportSize - * is the size required for JList.getVisibleRowCount rows. + * However, the value of {@code preferredScrollableViewportSize} + * is the size required for {@code JList.getVisibleRowCount} rows. * A component without any properties that would affect the viewport - * size should just return getPreferredSize here. + * size should just return {@code getPreferredSize} here. * - * @return the preferredSize of a JViewport whose view - * is this Scrollable + * @return the preferredSize of a {@code JViewport} whose view + * is this {@code Scrollable} * @see JViewport#getPreferredSize */ Dimension getPreferredScrollableViewportSize(); @@ -99,7 +99,7 @@ /** * Return true if a viewport should always force the width of this - * Scrollable to match the width of the viewport. + * {@code Scrollable} to match the width of the viewport. * For example a normal * text view that supported line wrapping would return true here, since it * would be undesirable for wrapped lines to disappear beyond the right --- old/src/java.desktop/share/classes/javax/swing/SizeRequirements.java 2015-10-04 22:57:17.733261842 +0400 +++ new/src/java.desktop/share/classes/javax/swing/SizeRequirements.java 2015-10-04 22:57:17.541261851 +0400 @@ -58,19 +58,19 @@ * *
      *
      - *
      minimum + *
      {@code minimum} *
      The smallest reasonable width/height of the component * or component group, in pixels. * - *
      preferred + *
      {@code preferred} *
      The natural width/height of the component * or component group, in pixels. * - *
      maximum + *
      {@code maximum} *
      The largest reasonable width/height of the component * or component group, in pixels. * - *
      alignment + *
      {@code alignment} *
      The X/Y alignment of the component * or component group. *
      @@ -82,7 +82,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. * * @see Component#getMinimumSize @@ -99,25 +99,25 @@ /** * The minimum size required. - * For a component comp, this should be equal to either - * comp.getMinimumSize().width or - * comp.getMinimumSize().height. + * For a component {@code comp}, this should be equal to either + * {@code comp.getMinimumSize().width} or + * {@code comp.getMinimumSize().height}. */ public int minimum; /** * The preferred (natural) size. - * For a component comp, this should be equal to either - * comp.getPreferredSize().width or - * comp.getPreferredSize().height. + * For a component {@code comp}, this should be equal to either + * {@code comp.getPreferredSize().width} or + * {@code comp.getPreferredSize().height}. */ public int preferred; /** * The maximum size allowed. - * For a component comp, this should be equal to either - * comp.getMaximumSize().width or - * comp.getMaximumSize().height. + * For a component {@code comp}, this should be equal to either + * {@code comp.getMaximumSize().width} or + * {@code comp.getMaximumSize().height}. */ public int maximum; --- old/src/java.desktop/share/classes/javax/swing/SizeSequence.java 2015-10-04 22:57:18.257261819 +0400 +++ new/src/java.desktop/share/classes/javax/swing/SizeSequence.java 2015-10-04 22:57:18.069261827 +0400 @@ -26,27 +26,27 @@ package javax.swing; /** - * A SizeSequence object + * A {@code SizeSequence} object * efficiently maintains an ordered list * of sizes and corresponding positions. - * One situation for which SizeSequence + * One situation for which {@code SizeSequence} * might be appropriate is in a component * that displays multiple rows of unequal size. - * In this case, a single SizeSequence + * In this case, a single {@code SizeSequence} * object could be used to track the heights * and Y positions of all rows. *

      * Another example would be a multi-column component, - * such as a JTable, + * such as a {@code JTable}, * in which the column sizes are not all equal. - * The JTable might use a single - * SizeSequence object + * The {@code JTable} might use a single + * {@code SizeSequence} object * to store the widths and X positions of all the columns. - * The JTable could then use the - * SizeSequence object + * The {@code JTable} could then use the + * {@code SizeSequence} object * to find the column corresponding to a certain position. - * The JTable could update the - * SizeSequence object + * The {@code JTable} could update the + * {@code SizeSequence} object * whenever one or more column sizes changed. * *

      @@ -64,13 +64,13 @@ * The first column's position starts at 0, * and the column occupies size0 pixels, * where size0 is the value returned by - * getSize(0). + * {@code getSize(0)}. * Thus, the first column ends at size0 - 1. * The second column then begins at * the position size0 - * and occupies size1 (getSize(1)) pixels. + * and occupies size1 ({@code getSize(1)}) pixels. *

      - * Note that a SizeSequence object simply represents intervals + * Note that a {@code SizeSequence} object simply represents intervals * along an axis. * In our examples, the intervals represent height or width in pixels. * However, any other unit of measure (for example, time in days) @@ -83,8 +83,8 @@ * one would choose between * storing the sizes or storing their positions * instead. The two common operations that are needed during - * rendering are: getIndex(position) - * and setSize(index, size). + * rendering are: {@code getIndex(position)} + * and {@code setSize(index, size)}. * Whichever choice of internal format is made one of these * operations is costly when the number of entries becomes large. * If sizes are stored, finding the index of the entry @@ -102,8 +102,8 @@ * instead of O(N), where N is the number of entries in the list. *

      * Two operations that remain O(N) in the number of entries are - * the insertEntries - * and removeEntries methods, both + * the {@code insertEntries} + * and {@code removeEntries} methods, both * of which are implemented by converting the internal array to * a set of integer sizes, copying it into the new array, and then * reforming the hybrid representation in place. @@ -126,9 +126,9 @@ private int a[]; /** - * Creates a new SizeSequence object + * Creates a new {@code SizeSequence} object * that contains no entries. To add entries, you - * can use insertEntries or setSizes. + * can use {@code insertEntries} or {@code setSizes}. * * @see #insertEntries * @see #setSizes(int[]) @@ -138,22 +138,22 @@ } /** - * Creates a new SizeSequence object + * Creates a new {@code SizeSequence} object * that contains the specified number of entries, * all initialized to have size 0. * * @param numEntries the number of sizes to track * @exception NegativeArraySizeException if - * numEntries < 0 + * {@code numEntries < 0} */ public SizeSequence(int numEntries) { this(numEntries, 0); } /** - * Creates a new SizeSequence object + * Creates a new {@code SizeSequence} object * that contains the specified number of entries, - * all initialized to have size value. + * all initialized to have size {@code value}. * * @param numEntries the number of sizes to track * @param value the initial value of each size @@ -164,11 +164,11 @@ } /** - * Creates a new SizeSequence object + * Creates a new {@code SizeSequence} object * that contains the specified sizes. * * @param sizes the array of sizes to be contained in - * the SizeSequence + * the {@code SizeSequence} */ public SizeSequence(int[] sizes) { this(); @@ -176,8 +176,8 @@ } /** - * Resets the size sequence to contain length items - * all with a size of size. + * Resets the size sequence to contain {@code length} items + * all with a size of {@code size}. */ void setSizes(int length, int size) { if (a.length != length) { @@ -196,15 +196,15 @@ } /** - * Resets this SizeSequence object, - * using the data in the sizes argument. + * Resets this {@code SizeSequence} object, + * using the data in the {@code sizes} argument. * This method reinitializes this object so that it - * contains as many entries as the sizes array. + * contains as many entries as the {@code sizes} array. * Each entry's size is initialized to the value of the - * corresponding item in sizes. + * corresponding item in {@code sizes}. * * @param sizes the array of sizes to be contained in - * this SizeSequence + * this {@code SizeSequence} */ public void setSizes(int[] sizes) { if (a.length != sizes.length) { @@ -245,14 +245,14 @@ /** * Returns the start position for the specified entry. - * For example, getPosition(0) returns 0, - * getPosition(1) is equal to - * getSize(0), - * getPosition(2) is equal to - * getSize(0) + getSize(1), + * For example, {@code getPosition(0)} returns 0, + * {@code getPosition(1)} is equal to + * {@code getSize(0)}, + * {@code getPosition(2)} is equal to + * {@code getSize(0)} + {@code getSize(1)}, * and so on. - *

      Note that if index is greater than - * length the value returned may + *

      Note that if {@code index} is greater than + * {@code length} the value returned may * be meaningless. * * @param index the index of the entry whose position is desired @@ -278,7 +278,7 @@ /** * Returns the index of the entry * that corresponds to the specified position. - * For example, getIndex(0) is 0, + * For example, {@code getIndex(0)} is 0, * since the first entry always starts at position 0. * * @param position the position of the entry @@ -304,8 +304,8 @@ /** * Returns the size of the specified entry. - * If index is out of the range - * (0 <= index < getSizes().length) + * If {@code index} is out of the range + * {@code (0 <= index < getSizes().length)} * the behavior is unspecified. * * @param index the index corresponding to the entry @@ -317,9 +317,9 @@ /** * Sets the size of the specified entry. - * Note that if the value of index + * Note that if the value of {@code index} * does not fall in the range: - * (0 <= index < getSizes().length) + * {@code (0 <= index < getSizes().length)} * the behavior is unspecified. * * @param index the index corresponding to the entry @@ -344,11 +344,11 @@ } /** - * Adds a contiguous group of entries to this SizeSequence. - * Note that the values of start and - * length must satisfy the following - * conditions: (0 <= start < getSizes().length) - * AND (length >= 0). If these conditions are + * Adds a contiguous group of entries to this {@code SizeSequence}. + * Note that the values of {@code start} and + * {@code length} must satisfy the following + * conditions: {@code (0 <= start < getSizes().length) + * AND (length >= 0)}. If these conditions are * not met, the behavior is unspecified and an exception * may be thrown. * @@ -358,7 +358,7 @@ * @param value the size to be assigned to each new entry * @exception ArrayIndexOutOfBoundsException if the parameters * are outside of the range: - * (0 <= start < (getSizes().length)) AND (length >= 0) + * ({@code 0 <= start < (getSizes().length)) AND (length >= 0)} */ public void insertEntries(int start, int length, int value) { int sizes[] = getSizes(); @@ -379,11 +379,11 @@ /** * Removes a contiguous group of entries - * from this SizeSequence. - * Note that the values of start and - * length must satisfy the following - * conditions: (0 <= start < getSizes().length) - * AND (length >= 0). If these conditions are + * from this {@code SizeSequence}. + * Note that the values of {@code start} and + * {@code length} must satisfy the following + * conditions: {@code (0 <= start < getSizes().length) + * AND (length >= 0)}. If these conditions are * not met, the behavior is unspecified and an exception * may be thrown. * --- old/src/java.desktop/share/classes/javax/swing/SortOrder.java 2015-10-04 22:57:18.789261795 +0400 +++ new/src/java.desktop/share/classes/javax/swing/SortOrder.java 2015-10-04 22:57:18.597261803 +0400 @@ -33,22 +33,22 @@ public enum SortOrder { /** * Enumeration value indicating the items are sorted in increasing order. - * For example, the set 1, 4, 0 sorted in - * ASCENDING order is 0, 1, 4. + * For example, the set {@code 1, 4, 0} sorted in + * {@code ASCENDING} order is {@code 0, 1, 4}. */ ASCENDING, /** * Enumeration value indicating the items are sorted in decreasing order. - * For example, the set 1, 4, 0 sorted in - * DESCENDING order is 4, 1, 0. + * For example, the set {@code 1, 4, 0} sorted in + * {@code DESCENDING} order is {@code 4, 1, 0}. */ DESCENDING, /** * Enumeration value indicating the items are unordered. - * For example, the set 1, 4, 0 in - * UNSORTED order is 1, 4, 0. + * For example, the set {@code 1, 4, 0} in + * {@code UNSORTED} order is {@code 1, 4, 0}. */ UNSORTED } --- old/src/java.desktop/share/classes/javax/swing/SortingFocusTraversalPolicy.java 2015-10-04 22:57:19.309261771 +0400 +++ new/src/java.desktop/share/classes/javax/swing/SortingFocusTraversalPolicy.java 2015-10-04 22:57:19.121261780 +0400 @@ -46,11 +46,11 @@ * cycle. That is, during normal focus traversal, the Component * traversed after a focus cycle root will be the focus-cycle-root's default * Component to focus. This behavior can be disabled using the - * setImplicitDownCycleTraversal method. + * {@code setImplicitDownCycleTraversal} method. *

      * By default, methods of this class with return a Component only if it is * visible, displayable, enabled, and focusable. Subclasses can modify this - * behavior by overriding the accept method. + * behavior by overriding the {@code accept} method. *

      * This policy takes into account focus traversal @@ -125,7 +125,7 @@ /** * Constructs a SortingFocusTraversalPolicy without a Comparator. - * Subclasses must set the Comparator using setComparator + * Subclasses must set the Comparator using {@code setComparator} * before installing this FocusTraversalPolicy on a focus cycle root or * KeyboardFocusManager. */ @@ -280,7 +280,7 @@ * cycle. That is, during normal focus traversal, the Component * traversed after a focus cycle root will be the focus-cycle-root's * default Component to focus. This behavior can be disabled using the - * setImplicitDownCycleTraversal method. + * {@code setImplicitDownCycleTraversal} method. *

      * If aContainer is focus * traversal policy provider, the focus is always transferred down-cycle. @@ -384,7 +384,7 @@ * cycle. That is, during normal focus traversal, the Component * traversed after a focus cycle root will be the focus-cycle-root's * default Component to focus. This behavior can be disabled using the - * setImplicitDownCycleTraversal method. + * {@code setImplicitDownCycleTraversal} method. *

      * If aContainer is focus * traversal policy provider, the focus is always transferred down-cycle. @@ -584,7 +584,7 @@ * Returns the default Component to focus. This Component will be the first * to receive focus when traversing down into a new focus traversal cycle * rooted at aContainer. The default implementation of this method - * returns the same Component as getFirstComponent. + * returns the same Component as {@code getFirstComponent}. * * @param aContainer a focus cycle root of aComponent or a focus traversal policy provider whose * default Component is to be returned @@ -599,12 +599,12 @@ /** * Sets whether this SortingFocusTraversalPolicy transfers focus down-cycle - * implicitly. If true, during normal focus traversal, + * implicitly. If {@code true}, during normal focus traversal, * the Component traversed after a focus cycle root will be the focus- - * cycle-root's default Component to focus. If false, the + * cycle-root's default Component to focus. If {@code false}, the * next Component in the focus traversal cycle rooted at the specified * focus cycle root will be traversed instead. The default value for this - * property is true. + * property is {@code true}. * * @param implicitDownCycleTraversal whether this * SortingFocusTraversalPolicy transfers focus down-cycle implicitly @@ -617,9 +617,9 @@ /** * Returns whether this SortingFocusTraversalPolicy transfers focus down- - * cycle implicitly. If true, during normal focus + * cycle implicitly. If {@code true}, during normal focus * traversal, the Component traversed after a focus cycle root will be the - * focus-cycle-root's default Component to focus. If false, + * focus-cycle-root's default Component to focus. If {@code false}, * the next Component in the focus traversal cycle rooted at the specified * focus cycle root will be traversed instead. * @@ -659,8 +659,8 @@ * * @param aComponent the Component whose fitness as a focus owner is to * be tested - * @return true if aComponent is visible, displayable, - * enabled, and focusable; false otherwise + * @return {@code true} if aComponent is visible, displayable, + * enabled, and focusable; {@code false} otherwise */ protected boolean accept(Component aComponent) { return fitnessTestPolicy.accept(aComponent); --- old/src/java.desktop/share/classes/javax/swing/SpinnerDateModel.java 2015-10-04 22:57:19.841261747 +0400 +++ new/src/java.desktop/share/classes/javax/swing/SpinnerDateModel.java 2015-10-04 22:57:19.649261756 +0400 @@ -30,51 +30,51 @@ /** - * A SpinnerModel for sequences of Dates. + * A {@code SpinnerModel} for sequences of {@code Date}s. * The upper and lower bounds of the sequence are defined by properties called - * start and end and the size - * of the increase or decrease computed by the nextValue - * and previousValue methods is defined by a property - * called calendarField. The start - * and end properties can be null to + * {@code start} and {@code end} and the size + * of the increase or decrease computed by the {@code nextValue} + * and {@code previousValue} methods is defined by a property + * called {@code calendarField}. The {@code start} + * and {@code end} properties can be {@code null} to * indicate that the sequence has no lower or upper limit. *

      - * The value of the calendarField property must be one of the - * java.util.Calendar constants that specify a field - * within a Calendar. The getNextValue - * and getPreviousValue + * The value of the {@code calendarField} property must be one of the + * {@code java.util.Calendar} constants that specify a field + * within a {@code Calendar}. The {@code getNextValue} + * and {@code getPreviousValue} * methods change the date forward or backwards by this amount. - * For example, if calendarField is Calendar.DAY_OF_WEEK, - * then nextValue produces a Date that's 24 - * hours after the current value, and previousValue - * produces a Date that's 24 hours earlier. + * For example, if {@code calendarField} is {@code Calendar.DAY_OF_WEEK}, + * then {@code nextValue} produces a {@code Date} that's 24 + * hours after the current {@code value}, and {@code previousValue} + * produces a {@code Date} that's 24 hours earlier. *

      - * The legal values for calendarField are: + * The legal values for {@code calendarField} are: *

        - *
      • Calendar.ERA - *
      • Calendar.YEAR - *
      • Calendar.MONTH - *
      • Calendar.WEEK_OF_YEAR - *
      • Calendar.WEEK_OF_MONTH - *
      • Calendar.DAY_OF_MONTH - *
      • Calendar.DAY_OF_YEAR - *
      • Calendar.DAY_OF_WEEK - *
      • Calendar.DAY_OF_WEEK_IN_MONTH - *
      • Calendar.AM_PM - *
      • Calendar.HOUR - *
      • Calendar.HOUR_OF_DAY - *
      • Calendar.MINUTE - *
      • Calendar.SECOND - *
      • Calendar.MILLISECOND + *
      • {@code Calendar.ERA} + *
      • {@code Calendar.YEAR} + *
      • {@code Calendar.MONTH} + *
      • {@code Calendar.WEEK_OF_YEAR} + *
      • {@code Calendar.WEEK_OF_MONTH} + *
      • {@code Calendar.DAY_OF_MONTH} + *
      • {@code Calendar.DAY_OF_YEAR} + *
      • {@code Calendar.DAY_OF_WEEK} + *
      • {@code Calendar.DAY_OF_WEEK_IN_MONTH} + *
      • {@code Calendar.AM_PM} + *
      • {@code Calendar.HOUR} + *
      • {@code Calendar.HOUR_OF_DAY} + *
      • {@code Calendar.MINUTE} + *
      • {@code Calendar.SECOND} + *
      • {@code Calendar.MILLISECOND} *
      * However some UIs may set the calendarField before committing the edit * to spin the field under the cursor. If you only want one field to * spin you can subclass and ignore the setCalendarField calls. *

      - * This model inherits a ChangeListener. The - * ChangeListeners are notified whenever the models - * value, calendarField, - * start, or end properties changes. + * This model inherits a {@code ChangeListener}. The + * {@code ChangeListeners} are notified whenever the models + * {@code value}, {@code calendarField}, + * {@code start}, or {@code end} properties changes. * * @see JSpinner * @see SpinnerModel @@ -119,53 +119,53 @@ /** - * Creates a SpinnerDateModel that represents a sequence of dates - * between start and end. The - * nextValue and previousValue methods + * Creates a {@code SpinnerDateModel} that represents a sequence of dates + * between {@code start} and {@code end}. The + * {@code nextValue} and {@code previousValue} methods * compute elements of the sequence by advancing or reversing - * the current date value by the - * calendarField time unit. For a precise description - * of what it means to increment or decrement a Calendar - * field, see the add method in - * java.util.Calendar. + * the current date {@code value} by the + * {@code calendarField} time unit. For a precise description + * of what it means to increment or decrement a {@code Calendar} + * {@code field}, see the {@code add} method in + * {@code java.util.Calendar}. *

      - * The start and end parameters can be - * null to indicate that the range doesn't have an - * upper or lower bound. If value or - * calendarField is null, or if both - * start and end are specified and - * minimum > maximum then an - * IllegalArgumentException is thrown. - * Similarly if (minimum <= value <= maximum) is false, + * The {@code start} and {@code end} parameters can be + * {@code null} to indicate that the range doesn't have an + * upper or lower bound. If {@code value} or + * {@code calendarField} is {@code null}, or if both + * {@code start} and {@code end} are specified and + * {@code minimum > maximum} then an + * {@code IllegalArgumentException} is thrown. + * Similarly if {@code (minimum <= value <= maximum)} is false, * an IllegalArgumentException is thrown. * - * @param value the current (non null) value of the model - * @param start the first date in the sequence or null - * @param end the last date in the sequence or null + * @param value the current (non {@code null}) value of the model + * @param start the first date in the sequence or {@code null} + * @param end the last date in the sequence or {@code null} * @param calendarField one of *

        - *
      • Calendar.ERA - *
      • Calendar.YEAR - *
      • Calendar.MONTH - *
      • Calendar.WEEK_OF_YEAR - *
      • Calendar.WEEK_OF_MONTH - *
      • Calendar.DAY_OF_MONTH - *
      • Calendar.DAY_OF_YEAR - *
      • Calendar.DAY_OF_WEEK - *
      • Calendar.DAY_OF_WEEK_IN_MONTH - *
      • Calendar.AM_PM - *
      • Calendar.HOUR - *
      • Calendar.HOUR_OF_DAY - *
      • Calendar.MINUTE - *
      • Calendar.SECOND - *
      • Calendar.MILLISECOND + *
      • {@code Calendar.ERA} + *
      • {@code Calendar.YEAR} + *
      • {@code Calendar.MONTH} + *
      • {@code Calendar.WEEK_OF_YEAR} + *
      • {@code Calendar.WEEK_OF_MONTH} + *
      • {@code Calendar.DAY_OF_MONTH} + *
      • {@code Calendar.DAY_OF_YEAR} + *
      • {@code Calendar.DAY_OF_WEEK} + *
      • {@code Calendar.DAY_OF_WEEK_IN_MONTH} + *
      • {@code Calendar.AM_PM} + *
      • {@code Calendar.HOUR} + *
      • {@code Calendar.HOUR_OF_DAY} + *
      • {@code Calendar.MINUTE} + *
      • {@code Calendar.SECOND} + *
      • {@code Calendar.MILLISECOND} *
      * - * @throws IllegalArgumentException if value or - * calendarField are null, - * if calendarField isn't valid, + * @throws IllegalArgumentException if {@code value} or + * {@code calendarField} are {@code null}, + * if {@code calendarField} isn't valid, * or if the following expression is - * false: (start <= value <= end). + * false: {@code (start <= value <= end)}. * * @see Calendar#add * @see #setValue @@ -194,10 +194,10 @@ /** - * Constructs a SpinnerDateModel whose initial - * value is the current date, calendarField - * is equal to Calendar.DAY_OF_MONTH, and for which - * there are no start/end limits. + * Constructs a {@code SpinnerDateModel} whose initial + * {@code value} is the current date, {@code calendarField} + * is equal to {@code Calendar.DAY_OF_MONTH}, and for which + * there are no {@code start}/{@code end} limits. */ public SpinnerDateModel() { this(new Date(), null, null, Calendar.DAY_OF_MONTH); @@ -206,18 +206,18 @@ /** * Changes the lower limit for Dates in this sequence. - * If start is null, + * If {@code start} is {@code null}, * then there is no lower limit. No bounds checking is done here: * the new start value may invalidate the - * (start <= value <= end) + * {@code (start <= value <= end)} * invariant enforced by the constructors. This is to simplify updating * the model. Naturally one should ensure that the invariant is true - * before calling the nextValue, previousValue, - * or setValue methods. + * before calling the {@code nextValue}, {@code previousValue}, + * or {@code setValue} methods. *

      - * Typically this property is a Date however it's possible to use - * a Comparable with a compareTo method for Dates. - * For example start might be an instance of a class like this: + * Typically this property is a {@code Date} however it's possible to use + * a {@code Comparable} with a {@code compareTo} method for Dates. + * For example {@code start} might be an instance of a class like this: *

            * MyStartDate implements Comparable {
            *     long t = 12345;
      @@ -229,12 +229,12 @@
            *     }
            * }
            * 
      - * Note that the above example will throw a ClassCastException - * if the Object passed to compareTo(Object) - * is not a Date. + * Note that the above example will throw a {@code ClassCastException} + * if the {@code Object} passed to {@code compareTo(Object)} + * is not a {@code Date}. *

      - * This method fires a ChangeEvent if the - * start has changed. + * This method fires a {@code ChangeEvent} if the + * {@code start} has changed. * * @param start defines the first date in the sequence * @see #getStart @@ -250,9 +250,9 @@ /** - * Returns the first Date in the sequence. + * Returns the first {@code Date} in the sequence. * - * @return the value of the start property + * @return the value of the {@code start} property * @see #setStart */ public Comparable getStart() { @@ -261,20 +261,20 @@ /** - * Changes the upper limit for Dates in this sequence. - * If start is null, then there is no upper + * Changes the upper limit for {@code Date}s in this sequence. + * If {@code start} is {@code null}, then there is no upper * limit. No bounds checking is done here: the new - * start value may invalidate the (start <= value <= end) + * start value may invalidate the {@code (start <= value <= end)} * invariant enforced by the constructors. This is to simplify updating * the model. Naturally, one should ensure that the invariant is true - * before calling the nextValue, previousValue, - * or setValue methods. + * before calling the {@code nextValue}, {@code previousValue}, + * or {@code setValue} methods. *

      - * Typically this property is a Date however it's possible to use - * Comparable with a compareTo method for - * Dates. See setStart for an example. + * Typically this property is a {@code Date} however it's possible to use + * {@code Comparable} with a {@code compareTo} method for + * {@code Date}s. See {@code setStart} for an example. *

      - * This method fires a ChangeEvent if the end + * This method fires a {@code ChangeEvent} if the {@code end} * has changed. * * @param end defines the last date in the sequence @@ -291,9 +291,9 @@ /** - * Returns the last Date in the sequence. + * Returns the last {@code Date} in the sequence. * - * @return the value of the end property + * @return the value of the {@code end} property * @see #setEnd */ public Comparable getEnd() { @@ -303,13 +303,13 @@ /** * Changes the size of the date value change computed - * by the nextValue and previousValue methods. - * The calendarField parameter must be one of the - * Calendar field constants like Calendar.MONTH - * or Calendar.MINUTE. - * The nextValue and previousValue methods - * simply move the specified Calendar field forward or backward - * by one unit with the Calendar.add method. + * by the {@code nextValue} and {@code previousValue} methods. + * The {@code calendarField} parameter must be one of the + * {@code Calendar} field constants like {@code Calendar.MONTH} + * or {@code Calendar.MINUTE}. + * The {@code nextValue} and {@code previousValue} methods + * simply move the specified {@code Calendar} field forward or backward + * by one unit with the {@code Calendar.add} method. * You should use this method with care as some UIs may set the * calendarField before committing the edit to spin the field under * the cursor. If you only want one field to spin you can subclass @@ -317,25 +317,25 @@ * * @param calendarField one of *

        - *
      • Calendar.ERA - *
      • Calendar.YEAR - *
      • Calendar.MONTH - *
      • Calendar.WEEK_OF_YEAR - *
      • Calendar.WEEK_OF_MONTH - *
      • Calendar.DAY_OF_MONTH - *
      • Calendar.DAY_OF_YEAR - *
      • Calendar.DAY_OF_WEEK - *
      • Calendar.DAY_OF_WEEK_IN_MONTH - *
      • Calendar.AM_PM - *
      • Calendar.HOUR - *
      • Calendar.HOUR_OF_DAY - *
      • Calendar.MINUTE - *
      • Calendar.SECOND - *
      • Calendar.MILLISECOND + *
      • {@code Calendar.ERA} + *
      • {@code Calendar.YEAR} + *
      • {@code Calendar.MONTH} + *
      • {@code Calendar.WEEK_OF_YEAR} + *
      • {@code Calendar.WEEK_OF_MONTH} + *
      • {@code Calendar.DAY_OF_MONTH} + *
      • {@code Calendar.DAY_OF_YEAR} + *
      • {@code Calendar.DAY_OF_WEEK} + *
      • {@code Calendar.DAY_OF_WEEK_IN_MONTH} + *
      • {@code Calendar.AM_PM} + *
      • {@code Calendar.HOUR} + *
      • {@code Calendar.HOUR_OF_DAY} + *
      • {@code Calendar.MINUTE} + *
      • {@code Calendar.SECOND} + *
      • {@code Calendar.MILLISECOND} *
      *

      - * This method fires a ChangeEvent if the - * calendarField has changed. + * This method fires a {@code ChangeEvent} if the + * {@code calendarField} has changed. * * @see #getCalendarField * @see #getNextValue @@ -355,10 +355,10 @@ /** - * Returns the Calendar field that is added to or subtracted from - * by the nextValue and previousValue methods. + * Returns the {@code Calendar} field that is added to or subtracted from + * by the {@code nextValue} and {@code previousValue} methods. * - * @return the value of the calendarField property + * @return the value of the {@code calendarField} property * @see #setCalendarField */ public int getCalendarField() { @@ -367,11 +367,11 @@ /** - * Returns the next Date in the sequence, or null if - * the next date is after end. + * Returns the next {@code Date} in the sequence, or {@code null} if + * the next date is after {@code end}. * - * @return the next Date in the sequence, or null if - * the next date is after end. + * @return the next {@code Date} in the sequence, or {@code null} if + * the next date is after {@code end}. * * @see SpinnerModel#getNextValue * @see #getPreviousValue @@ -387,12 +387,12 @@ /** - * Returns the previous Date in the sequence, or null - * if the previous date is before start. + * Returns the previous {@code Date} in the sequence, or {@code null} + * if the previous date is before {@code start}. * - * @return the previous Date in the sequence, or - * null if the previous date - * is before start + * @return the previous {@code Date} in the sequence, or + * {@code null} if the previous date + * is before {@code start} * * @see SpinnerModel#getPreviousValue * @see #getNextValue @@ -408,10 +408,10 @@ /** - * Returns the current element in this sequence of Dates. - * This method is equivalent to (Date)getValue. + * Returns the current element in this sequence of {@code Date}s. + * This method is equivalent to {@code (Date)getValue}. * - * @return the value property + * @return the {@code value} property * @see #setValue */ public Date getDate() { @@ -420,9 +420,9 @@ /** - * Returns the current element in this sequence of Dates. + * Returns the current element in this sequence of {@code Date}s. * - * @return the value property + * @return the {@code value} property * @see #setValue * @see #getDate */ @@ -432,23 +432,23 @@ /** - * Sets the current Date for this sequence. - * If value is null, - * an IllegalArgumentException is thrown. No bounds + * Sets the current {@code Date} for this sequence. + * If {@code value} is {@code null}, + * an {@code IllegalArgumentException} is thrown. No bounds * checking is done here: - * the new value may invalidate the (start <= value < end) + * the new value may invalidate the {@code (start <= value < end)} * invariant enforced by the constructors. Naturally, one should ensure - * that the (start <= value <= maximum) invariant is true - * before calling the nextValue, previousValue, - * or setValue methods. + * that the {@code (start <= value <= maximum)} invariant is true + * before calling the {@code nextValue}, {@code previousValue}, + * or {@code setValue} methods. *

      - * This method fires a ChangeEvent if the - * value has changed. + * This method fires a {@code ChangeEvent} if the + * {@code value} has changed. * - * @param value the current (non null) - * Date for this sequence - * @throws IllegalArgumentException if value is null - * or not a Date + * @param value the current (non {@code null}) + * {@code Date} for this sequence + * @throws IllegalArgumentException if value is {@code null} + * or not a {@code Date} * @see #getDate * @see #getValue * @see #addChangeListener --- old/src/java.desktop/share/classes/javax/swing/SpinnerListModel.java 2015-10-04 22:57:20.373261724 +0400 +++ new/src/java.desktop/share/classes/javax/swing/SpinnerListModel.java 2015-10-04 22:57:20.185261732 +0400 @@ -30,22 +30,22 @@ /** - * A simple implementation of SpinnerModel whose - * values are defined by an array or a List. + * A simple implementation of {@code SpinnerModel} whose + * values are defined by an array or a {@code List}. * For example to create a model defined by * an array of the names of the days of the week: *

        * String[] days = new DateFormatSymbols().getWeekdays();
        * SpinnerModel model = new SpinnerListModel(Arrays.asList(days).subList(1, 8));
        * 
      - * This class only stores a reference to the array or List + * This class only stores a reference to the array or {@code List} * so if an element of the underlying sequence changes, it's up - * to the application to notify the ChangeListeners by calling - * fireStateChanged. + * to the application to notify the {@code ChangeListeners} by calling + * {@code fireStateChanged}. *

      - * This model inherits a ChangeListener. - * The ChangeListeners are notified whenever the - * model's value or list properties changes. + * This model inherits a {@code ChangeListener}. + * The {@code ChangeListener}s are notified whenever the + * model's {@code value} or {@code list} properties changes. * * @see JSpinner * @see SpinnerModel @@ -64,16 +64,16 @@ /** - * Constructs a SpinnerModel whose sequence of - * values is defined by the specified List. + * Constructs a {@code SpinnerModel} whose sequence of + * values is defined by the specified {@code List}. * The initial value (current element) - * of the model will be values.get(0). - * If values is null or has zero - * size, an IllegalArugmentException is thrown. + * of the model will be {@code values.get(0)}. + * If {@code values} is {@code null} or has zero + * size, an {@code IllegalArugmentException} is thrown. * * @param values the sequence this model represents - * @throws IllegalArgumentException if values is - * null or zero size + * @throws IllegalArgumentException if {@code values} is + * {@code null} or zero size */ public SpinnerListModel(List values) { if (values == null || values.size() == 0) { @@ -85,15 +85,15 @@ /** - * Constructs a SpinnerModel whose sequence of values + * Constructs a {@code SpinnerModel} whose sequence of values * is defined by the specified array. The initial value of the model - * will be values[0]. If values is - * null or has zero length, an - * IllegalArgumentException is thrown. + * will be {@code values[0]}. If {@code values} is + * {@code null} or has zero length, an + * {@code IllegalArgumentException} is thrown. * * @param values the sequence this model represents - * @throws IllegalArgumentException if values is - * null or zero length + * @throws IllegalArgumentException if {@code values} is + * {@code null} or zero length */ public SpinnerListModel(Object[] values) { if (values == null || values.length == 0) { @@ -105,9 +105,9 @@ /** - * Constructs an effectively empty SpinnerListModel. + * Constructs an effectively empty {@code SpinnerListModel}. * The model's list will contain a single - * "empty" string element. + * {@code "empty"} string element. */ public SpinnerListModel() { this(new Object[]{"empty"}); @@ -115,9 +115,9 @@ /** - * Returns the List that defines the sequence for this model. + * Returns the {@code List} that defines the sequence for this model. * - * @return the value of the list property + * @return the value of the {@code list} property * @see #setList */ public List getList() { @@ -127,15 +127,15 @@ /** * Changes the list that defines this sequence and resets the index - * of the models value to zero. Note that list + * of the models {@code value} to zero. Note that {@code list} * is not copied, the model just stores a reference to it. *

      - * This method fires a ChangeEvent if list is + * This method fires a {@code ChangeEvent} if {@code list} is * not equal to the current list. * * @param list the sequence that this model represents - * @throws IllegalArgumentException if list is - * null or zero length + * @throws IllegalArgumentException if {@code list} is + * {@code null} or zero length * @see #getList */ public void setList(List list) { @@ -153,7 +153,7 @@ /** * Returns the current element of the sequence. * - * @return the value property + * @return the {@code value} property * @see SpinnerModel#getValue * @see #setValue */ @@ -164,10 +164,10 @@ /** * Changes the current element of the sequence and notifies - * ChangeListeners. If the specified + * {@code ChangeListeners}. If the specified * value is not equal to an element of the underlying sequence - * then an IllegalArgumentException is thrown. - * In the following example the setValue call + * then an {@code IllegalArgumentException} is thrown. + * In the following example the {@code setValue} call * would cause an exception to be thrown: *

            * String[] values = {"one", "two", "free", "four"};
      @@ -194,10 +194,10 @@
       
           /**
            * Returns the next legal value of the underlying sequence or
      -     * null if value is already the last element.
      +     * {@code null} if value is already the last element.
            *
            * @return the next legal value of the underlying sequence or
      -     *     null if value is already the last element
      +     *     {@code null} if value is already the last element
            * @see SpinnerModel#getNextValue
            * @see #getPreviousValue
            */
      @@ -208,10 +208,10 @@
       
           /**
            * Returns the previous element of the underlying sequence or
      -     * null if value is already the first element.
      +     * {@code null} if value is already the first element.
            *
            * @return the previous element of the underlying sequence or
      -     *     null if value is already the first element
      +     *     {@code null} if value is already the first element
            * @see SpinnerModel#getPreviousValue
            * @see #getNextValue
            */
      @@ -221,7 +221,7 @@
       
       
           /**
      -     * Returns the next object that starts with substring.
      +     * Returns the next object that starts with {@code substring}.
            *
            * @param substring the string to be matched
            * @return the match
      --- old/src/java.desktop/share/classes/javax/swing/SpinnerModel.java	2015-10-04 22:57:20.901261700 +0400
      +++ new/src/java.desktop/share/classes/javax/swing/SpinnerModel.java	2015-10-04 22:57:20.709261708 +0400
      @@ -31,7 +31,7 @@
       
       /**
        * A model for a potentially unbounded sequence of object values.  This model
      - * is similar to ListModel however there are some important differences:
      + * is similar to {@code ListModel} however there are some important differences:
        * 
        *
      • The number of sequence elements isn't necessarily bounded. *
      • The model doesn't support indexed random access to sequence elements. @@ -40,22 +40,22 @@ *
      • The current sequence element, can be set. *
      *

      - * A SpinnerModel has three properties, only the first is read/write. + * A {@code SpinnerModel} has three properties, only the first is read/write. *

      - *
      value + *
      {@code value} *
      The current element of the sequence. * - *
      nextValue - *
      The following element or null if value is the + *
      {@code nextValue} + *
      The following element or null if {@code value} is the * last element of the sequence. * - *
      previousValue - *
      The preceding element or null if value is the + *
      {@code previousValue} + *
      The preceding element or null if {@code value} is the * first element of the sequence. *
      - * When the value property changes, - * ChangeListeners are notified. SpinnerModel may - * choose to notify the ChangeListeners under other circumstances. + * When the {@code value} property changes, + * {@code ChangeListeners} are notified. {@code SpinnerModel} may + * choose to notify the {@code ChangeListeners} under other circumstances. * * @see JSpinner * @see AbstractSpinnerModel @@ -70,7 +70,7 @@ { /** * The current element of the sequence. This element is usually - * displayed by the editor part of a JSpinner. + * displayed by the {@code editor} part of a {@code JSpinner}. * * @return the current spinner value. * @see #setValue @@ -80,16 +80,16 @@ /** * Changes current value of the model, typically this value is displayed - * by the editor part of a JSpinner. - * If the SpinnerModel implementation doesn't support - * the specified value then an IllegalArgumentException - * is thrown. For example a SpinnerModel for numbers might + * by the {@code editor} part of a {@code JSpinner}. + * If the {@code SpinnerModel} implementation doesn't support + * the specified value then an {@code IllegalArgumentException} + * is thrown. For example a {@code SpinnerModel} for numbers might * only support values that are integer multiples of ten. In - * that case, model.setValue(new Number(11)) + * that case, {@code model.setValue(new Number(11))} * would throw an exception. * * @param value new value for the spinner - * @throws IllegalArgumentException if value isn't allowed + * @throws IllegalArgumentException if {@code value} isn't allowed * @see #getValue */ void setValue(Object value); @@ -97,8 +97,8 @@ /** * Return the object in the sequence that comes after the object returned - * by getValue(). If the end of the sequence has been reached - * then return null. Calling this method does not effect value. + * by {@code getValue()}. If the end of the sequence has been reached + * then return null. Calling this method does not effect {@code value}. * * @return the next legal value or null if one doesn't exist * @see #getValue @@ -109,8 +109,8 @@ /** * Return the object in the sequence that comes before the object returned - * by getValue(). If the end of the sequence has been reached then - * return null. Calling this method does not effect value. + * by {@code getValue()}. If the end of the sequence has been reached then + * return null. Calling this method does not effect {@code value}. * * @return the previous legal value or null if one doesn't exist * @see #getValue @@ -120,8 +120,8 @@ /** - * Adds a ChangeListener to the model's listener list. The - * ChangeListeners must be notified when models value + * Adds a {@code ChangeListener} to the model's listener list. The + * {@code ChangeListeners} must be notified when models {@code value} * changes. * * @param l the ChangeListener to add @@ -131,7 +131,7 @@ /** - * Removes a ChangeListener from the model's listener list. + * Removes a {@code ChangeListener} from the model's listener list. * * @param l the ChangeListener to remove * @see #addChangeListener --- old/src/java.desktop/share/classes/javax/swing/SpinnerNumberModel.java 2015-10-04 22:57:21.425261676 +0400 +++ new/src/java.desktop/share/classes/javax/swing/SpinnerNumberModel.java 2015-10-04 22:57:21.233261685 +0400 @@ -30,24 +30,24 @@ /** - * A SpinnerModel for sequences of numbers. + * A {@code SpinnerModel} for sequences of numbers. * The upper and lower bounds of the sequence are defined - * by properties called minimum and - * maximum. The size of the increase or decrease - * computed by the nextValue and - * previousValue methods is defined by a property called - * stepSize. The minimum and - * maximum properties can be null + * by properties called {@code minimum} and + * {@code maximum}. The size of the increase or decrease + * computed by the {@code nextValue} and + * {@code previousValue} methods is defined by a property called + * {@code stepSize}. The {@code minimum} and + * {@code maximum} properties can be {@code null} * to indicate that the sequence has no lower or upper limit. * All of the properties in this class are defined in terms of two - * generic types: Number and - * Comparable, so that all Java numeric types + * generic types: {@code Number} and + * {@code Comparable}, so that all Java numeric types * may be accommodated. Internally, there's only support for - * values whose type is one of the primitive Number types: - * Double, Float, Long, - * Integer, Short, or Byte. + * values whose type is one of the primitive {@code Number} types: + * {@code Double}, {@code Float}, {@code Long}, + * {@code Integer}, {@code Short}, or {@code Byte}. *

      - * To create a SpinnerNumberModel for the integer + * To create a {@code SpinnerNumberModel} for the integer * range zero to one hundred, with * fifty as the initial value, one could write: *

      @@ -66,10 +66,10 @@
        * SpinnerNumberModel model = new SpinnerNumberModel(50, 0, 100, 1);
        * 
      *

      - * This model inherits a ChangeListener. - * The ChangeListeners are notified - * whenever the model's value, stepSize, - * minimum, or maximum properties changes. + * This model inherits a {@code ChangeListener}. + * The {@code ChangeListeners} are notified + * whenever the model's {@code value}, {@code stepSize}, + * {@code minimum}, or {@code maximum} properties changes. * * @see JSpinner * @see SpinnerModel @@ -97,34 +97,34 @@ /** - * Constructs a SpinnerModel that represents + * Constructs a {@code SpinnerModel} that represents * a closed sequence of - * numbers from minimum to maximum. The - * nextValue and previousValue methods + * numbers from {@code minimum} to {@code maximum}. The + * {@code nextValue} and {@code previousValue} methods * compute elements of the sequence by adding or subtracting - * stepSize respectively. All of the parameters - * must be mutually Comparable, value - * and stepSize must be instances of Integer - * Long, Float, or Double. + * {@code stepSize} respectively. All of the parameters + * must be mutually {@code Comparable}, {@code value} + * and {@code stepSize} must be instances of {@code Integer} + * {@code Long}, {@code Float}, or {@code Double}. *

      - * The minimum and maximum parameters - * can be null to indicate that the range doesn't + * The {@code minimum} and {@code maximum} parameters + * can be {@code null} to indicate that the range doesn't * have an upper or lower bound. - * If value or stepSize is null, - * or if both minimum and maximum - * are specified and minimum > maximum then an - * IllegalArgumentException is thrown. - * Similarly if (minimum <= value <= maximum) is false, - * an IllegalArgumentException is thrown. - * - * @param value the current (non null) value of the model - * @param minimum the first number in the sequence or null - * @param maximum the last number in the sequence or null + * If {@code value} or {@code stepSize} is {@code null}, + * or if both {@code minimum} and {@code maximum} + * are specified and {@code minimum > maximum} then an + * {@code IllegalArgumentException} is thrown. + * Similarly if {@code (minimum <= value <= maximum}) is false, + * an {@code IllegalArgumentException} is thrown. + * + * @param value the current (non {@code null}) value of the model + * @param minimum the first number in the sequence or {@code null} + * @param maximum the last number in the sequence or {@code null} * @param stepSize the difference between elements of the sequence * * @throws IllegalArgumentException if stepSize or value is - * null or if the following expression is false: - * minimum <= value <= maximum + * {@code null} or if the following expression is false: + * {@code minimum <= value <= maximum} */ @SuppressWarnings("unchecked") // Casts to Comparable public SpinnerNumberModel(Number value, @@ -146,16 +146,16 @@ /** - * Constructs a SpinnerNumberModel with the specified - * value, minimum/maximum bounds, - * and stepSize. + * Constructs a {@code SpinnerNumberModel} with the specified + * {@code value}, {@code minimum}/{@code maximum} bounds, + * and {@code stepSize}. * * @param value the current value of the model * @param minimum the first number in the sequence * @param maximum the last number in the sequence * @param stepSize the difference between elements of the sequence * @throws IllegalArgumentException if the following expression is false: - * minimum <= value <= maximum + * {@code minimum <= value <= maximum} */ public SpinnerNumberModel(int value, int minimum, int maximum, int stepSize) { this(Integer.valueOf(value), Integer.valueOf(minimum), Integer.valueOf(maximum), Integer.valueOf(stepSize)); @@ -163,16 +163,16 @@ /** - * Constructs a SpinnerNumberModel with the specified - * value, minimum/maximum bounds, - * and stepSize. + * Constructs a {@code SpinnerNumberModel} with the specified + * {@code value}, {@code minimum}/{@code maximum} bounds, + * and {@code stepSize}. * * @param value the current value of the model * @param minimum the first number in the sequence * @param maximum the last number in the sequence * @param stepSize the difference between elements of the sequence * @throws IllegalArgumentException if the following expression is false: - * minimum <= value <= maximum + * {@code minimum <= value <= maximum} */ public SpinnerNumberModel(double value, double minimum, double maximum, double stepSize) { this(new Double(value), new Double(minimum), new Double(maximum), new Double(stepSize)); @@ -180,9 +180,9 @@ /** - * Constructs a SpinnerNumberModel with no - * minimum or maximum value, - * stepSize equal to one, and an initial value of zero. + * Constructs a {@code SpinnerNumberModel} with no + * {@code minimum} or {@code maximum} value, + * {@code stepSize} equal to one, and an initial value of zero. */ public SpinnerNumberModel() { this(Integer.valueOf(0), null, null, Integer.valueOf(1)); @@ -191,21 +191,21 @@ /** * Changes the lower bound for numbers in this sequence. - * If minimum is null, + * If {@code minimum} is {@code null}, * then there is no lower bound. No bounds checking is done here; - * the new minimum value may invalidate the - * (minimum <= value <= maximum) + * the new {@code minimum} value may invalidate the + * {@code (minimum <= value <= maximum)} * invariant enforced by the constructors. This is to simplify updating * the model, naturally one should ensure that the invariant is true - * before calling the getNextValue, - * getPreviousValue, or setValue methods. + * before calling the {@code getNextValue}, + * {@code getPreviousValue}, or {@code setValue} methods. *

      - * Typically this property is a Number of the same type - * as the value however it's possible to use any - * Comparable with a compareTo - * method for a Number with the same type as the value. - * For example if value was a Long, - * minimum might be a Date subclass defined like this: + * Typically this property is a {@code Number} of the same type + * as the {@code value} however it's possible to use any + * {@code Comparable} with a {@code compareTo} + * method for a {@code Number} with the same type as the value. + * For example if value was a {@code Long}, + * {@code minimum} might be a Date subclass defined like this: *

            * MyDate extends Date {  // Date already implements Comparable
            *     public int compareTo(Long o) {
      @@ -215,12 +215,12 @@
            * }
            * 
      *

      - * This method fires a ChangeEvent - * if the minimum has changed. + * This method fires a {@code ChangeEvent} + * if the {@code minimum} has changed. * - * @param minimum a Comparable that has a - * compareTo method for Numbers with - * the same type as value + * @param minimum a {@code Comparable} that has a + * {@code compareTo} method for {@code Number}s with + * the same type as {@code value} * @see #getMinimum * @see #setMaximum * @see SpinnerModel#addChangeListener @@ -236,7 +236,7 @@ /** * Returns the first number in this sequence. * - * @return the value of the minimum property + * @return the value of the {@code minimum} property * @see #setMinimum */ public Comparable getMinimum() { @@ -246,28 +246,28 @@ /** * Changes the upper bound for numbers in this sequence. - * If maximum is null, then there + * If {@code maximum} is {@code null}, then there * is no upper bound. No bounds checking is done here; the new - * maximum value may invalidate the - * (minimum <= value < maximum) + * {@code maximum} value may invalidate the + * {@code (minimum <= value < maximum)} * invariant enforced by the constructors. This is to simplify updating * the model, naturally one should ensure that the invariant is true - * before calling the next, previous, - * or setValue methods. + * before calling the {@code next}, {@code previous}, + * or {@code setValue} methods. *

      - * Typically this property is a Number of the same type - * as the value however it's possible to use any - * Comparable with a compareTo - * method for a Number with the same type as the value. + * Typically this property is a {@code Number} of the same type + * as the {@code value} however it's possible to use any + * {@code Comparable} with a {@code compareTo} + * method for a {@code Number} with the same type as the value. * See - * setMinimum for an example. + * {@code setMinimum} for an example. *

      - * This method fires a ChangeEvent if the - * maximum has changed. + * This method fires a {@code ChangeEvent} if the + * {@code maximum} has changed. * - * @param maximum a Comparable that has a - * compareTo method for Numbers with - * the same type as value + * @param maximum a {@code Comparable} that has a + * {@code compareTo} method for {@code Number}s with + * the same type as {@code value} * @see #getMaximum * @see #setMinimum * @see SpinnerModel#addChangeListener @@ -283,7 +283,7 @@ /** * Returns the last number in the sequence. * - * @return the value of the maximum property + * @return the value of the {@code maximum} property * @see #setMaximum */ public Comparable getMaximum() { @@ -293,15 +293,15 @@ /** * Changes the size of the value change computed by the - * getNextValue and getPreviousValue - * methods. An IllegalArgumentException - * is thrown if stepSize is null. + * {@code getNextValue} and {@code getPreviousValue} + * methods. An {@code IllegalArgumentException} + * is thrown if {@code stepSize} is {@code null}. *

      - * This method fires a ChangeEvent if the - * stepSize has changed. + * This method fires a {@code ChangeEvent} if the + * {@code stepSize} has changed. * * @param stepSize the size of the value change computed by the - * getNextValue and getPreviousValue methods + * {@code getNextValue} and {@code getPreviousValue} methods * @see #getNextValue * @see #getPreviousValue * @see #getStepSize @@ -320,10 +320,10 @@ /** * Returns the size of the value change computed by the - * getNextValue - * and getPreviousValue methods. + * {@code getNextValue} + * and {@code getPreviousValue} methods. * - * @return the value of the stepSize property + * @return the value of the {@code stepSize} property * @see #setStepSize */ public Number getStepSize() { @@ -374,8 +374,8 @@ /** * Returns the next number in the sequence. * - * @return value + stepSize or null if the sum - * exceeds maximum. + * @return {@code value + stepSize} or {@code null} if the sum + * exceeds {@code maximum}. * * @see SpinnerModel#getNextValue * @see #getPreviousValue @@ -389,9 +389,9 @@ /** * Returns the previous number in the sequence. * - * @return value - stepSize, or - * null if the sum is less - * than minimum. + * @return {@code value - stepSize}, or + * {@code null} if the sum is less + * than {@code minimum}. * * @see SpinnerModel#getPreviousValue * @see #getNextValue @@ -426,27 +426,27 @@ /** - * Sets the current value for this sequence. If value is - * null, or not a Number, an - * IllegalArgumentException is thrown. No + * Sets the current value for this sequence. If {@code value} is + * {@code null}, or not a {@code Number}, an + * {@code IllegalArgumentException} is thrown. No * bounds checking is done here; the new value may invalidate the - * (minimum <= value <= maximum) + * {@code (minimum <= value <= maximum)} * invariant enforced by the constructors. It's also possible to set * the value to be something that wouldn't naturally occur in the sequence, - * i.e. a value that's not modulo the stepSize. + * i.e. a value that's not modulo the {@code stepSize}. * This is to simplify updating the model, and to accommodate * spinners that don't want to restrict values that have been * directly entered by the user. Naturally, one should ensure that the - * (minimum <= value <= maximum) invariant is true - * before calling the next, previous, or - * setValue methods. + * {@code (minimum <= value <= maximum)} invariant is true + * before calling the {@code next}, {@code previous}, or + * {@code setValue} methods. *

      - * This method fires a ChangeEvent if the value has changed. + * This method fires a {@code ChangeEvent} if the value has changed. * - * @param value the current (non null) Number + * @param value the current (non {@code null}) {@code Number} * for this sequence - * @throws IllegalArgumentException if value is - * null or not a Number + * @throws IllegalArgumentException if {@code value} is + * {@code null} or not a {@code Number} * @see #getNumber * @see #getValue * @see SpinnerModel#addChangeListener --- old/src/java.desktop/share/classes/javax/swing/Spring.java 2015-10-04 22:57:21.957261652 +0400 +++ new/src/java.desktop/share/classes/javax/swing/Spring.java 2015-10-04 22:57:21.765261661 +0400 @@ -27,12 +27,12 @@ import java.awt.Component; /** - * An instance of the Spring class holds three properties that + * An instance of the {@code Spring} class holds three properties that * characterize its behavior: the minimum, preferred, and * maximum values. Each of these properties may be involved in * defining its fourth, value, property based on a series of rules. *

      - * An instance of the Spring class can be visualized as a + * An instance of the {@code Spring} class can be visualized as a * mechanical spring that provides a corrective force as the spring is compressed * or stretched away from its preferred value. This force is modelled * as linear function of the distance from the preferred value, but with @@ -44,27 +44,27 @@ * minimum values, therefore, represents the ease with which the * spring can be compressed and the difference between its maximum * and preferred values, indicates the ease with which the - * Spring can be extended. + * {@code Spring} can be extended. * See the {@link #sum} method for details. * *

      - * By defining simple arithmetic operations on Springs, - * the behavior of a collection of Springs - * can be reduced to that of an ordinary (non-compound) Spring. We define + * By defining simple arithmetic operations on {@code Spring}s, + * the behavior of a collection of {@code Spring}s + * can be reduced to that of an ordinary (non-compound) {@code Spring}. We define * the "+", "-", max, and min operators on - * Springs so that, in each case, the result is a Spring + * {@code Spring}s so that, in each case, the result is a {@code Spring} * whose characteristics bear a useful mathematical relationship to its constituent * springs. * *

      - * A Spring can be treated as a pair of intervals + * A {@code Spring} can be treated as a pair of intervals * with a single common point: the preferred value. * The following rules define some of the * arithmetic operators that can be applied to intervals - * ([a, b] refers to the interval - * from a - * to b, - * where a <= b). + * ({@code [a, b]} refers to the interval + * from {@code a} + * to {@code b}, + * where {@code a <= b}). * *

        *          [a1, b1] + [a2, b2] = [a1 + a2, b1 + b2]
      @@ -75,9 +75,9 @@
        *  
      *

      * - * If we denote Springs as [a, b, c], - * where a <= b <= c, we can define the same - * arithmetic operators on Springs: + * If we denote {@code Spring}s as {@code [a, b, c]}, + * where {@code a <= b <= c}, we can define the same + * arithmetic operators on {@code Spring}s: * *

        *          [a1, b1, c1] + [a2, b2, c2] = [a1 + a2, b1 + b2, c1 + c2]
      @@ -87,7 +87,7 @@
        *      max([a1, b1, c1], [a2, b2, c2]) = [max(a1, a2), max(b1, b2), max(c1, c2)]
        *  
      *

      - * With both intervals and Springs we can define "-" and min + * With both intervals and {@code Spring}s we can define "-" and min * in terms of negation: * *

      @@ -100,13 +100,13 @@
        *  operators, we do not actually perform the operation in question as
        *  that would snapshot the values of the properties of the method's arguments
        *  at the time the static method is called. Instead, the static methods
      - *  create a new Spring instance containing references to
      + *  create a new {@code Spring} instance containing references to
        *  the method's arguments so that the characteristics of the new spring track the
        *  potentially changing characteristics of the springs from which it
        *  was made. This is a little like the idea of a lazy value
        *  in a functional language.
        * 

      - * If you are implementing a SpringLayout you + * If you are implementing a {@code SpringLayout} you * can find further information and examples in * How to Use SpringLayout, @@ -118,7 +118,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. * * @see SpringLayout @@ -136,7 +136,7 @@ public static final int UNSET = Integer.MIN_VALUE; /** - * Used by factory methods to create a Spring. + * Used by factory methods to create a {@code Spring}. * * @see #constant(int) * @see #constant(int, int, int) @@ -148,39 +148,39 @@ protected Spring() {} /** - * Returns the minimum value of this Spring. + * Returns the minimum value of this {@code Spring}. * - * @return the minimumValue property of this Spring + * @return the {@code minimumValue} property of this {@code Spring} */ public abstract int getMinimumValue(); /** - * Returns the preferred value of this Spring. + * Returns the preferred value of this {@code Spring}. * - * @return the preferredValue of this Spring + * @return the {@code preferredValue} of this {@code Spring} */ public abstract int getPreferredValue(); /** - * Returns the maximum value of this Spring. + * Returns the maximum value of this {@code Spring}. * - * @return the maximumValue property of this Spring + * @return the {@code maximumValue} property of this {@code Spring} */ public abstract int getMaximumValue(); /** - * Returns the current value of this Spring. + * Returns the current value of this {@code Spring}. * - * @return the value property of this Spring + * @return the {@code value} property of this {@code Spring} * * @see #setValue */ public abstract int getValue(); /** - * Sets the current value of this Spring to value. + * Sets the current value of this {@code Spring} to {@code value}. * - * @param value the new setting of the value property + * @param value the new setting of the {@code value} property * * @see #getValue */ @@ -514,12 +514,12 @@ /** * Returns a strut -- a spring whose minimum, preferred, and - * maximum values each have the value pref. + * maximum values each have the value {@code pref}. * * @param pref the minimum, preferred, and * maximum values of the new spring * @return a spring whose minimum, preferred, and - * maximum values each have the value pref + * maximum values each have the value {@code pref} * * @see Spring */ @@ -529,15 +529,15 @@ /** * Returns a spring whose minimum, preferred, and - * maximum values have the values: min, pref, - * and max respectively. + * maximum values have the values: {@code min}, {@code pref}, + * and {@code max} respectively. * * @param min the minimum value of the new spring * @param pref the preferred value of the new spring * @param max the maximum value of the new spring * @return a spring whose minimum, preferred, and - * maximum values have the values: min, pref, - * and max respectively + * maximum values have the values: {@code min}, {@code pref}, + * and {@code max} respectively * * @see Spring */ @@ -559,9 +559,9 @@ } /** - * Returns s1+s2: a spring representing s1 and s2 - * in series. In a sum, s3, of two springs, s1 and s2, - * the strains of s1, s2, and s3 are maintained + * Returns {@code s1+s2}: a spring representing {@code s1} and {@code s2} + * in series. In a sum, {@code s3}, of two springs, {@code s1} and {@code s2}, + * the strains of {@code s1}, {@code s2}, and {@code s3} are maintained * at the same level (to within the precision implied by their integer values). * The strain of a spring in compression is: *

      @@ -575,17 +575,17 @@
            *         ------------
            *          max - pref
            * 
      - * When setValue is called on the sum spring, s3, the strain - * in s3 is calculated using one of the formulas above. Once the strain of - * the sum is known, the values of s1 and s2 are + * When {@code setValue} is called on the sum spring, {@code s3}, the strain + * in {@code s3} is calculated using one of the formulas above. Once the strain of + * the sum is known, the values of {@code s1} and {@code s2} are * then set so that they are have a strain equal to that of the sum. The formulas are * evaluated so as to take rounding errors into account and ensure that the sum of - * the values of s1 and s2 is exactly equal to - * the value of s3. + * the values of {@code s1} and {@code s2} is exactly equal to + * the value of {@code s3}. * * @param s1 a {@code Spring} object * @param s2 a {@code Spring} object - * @return s1+s2: a spring representing s1 and s2 in series + * @return {@code s1+s2}: a spring representing {@code s1} and {@code s2} in series * * @see Spring */ @@ -623,8 +623,8 @@ /** * Returns a spring whose minimum, preferred, maximum * and value properties are each multiples of the properties of the - * argument spring, s. Minimum and maximum properties are - * swapped when factor is negative (in accordance with the + * argument spring, {@code s}. Minimum and maximum properties are + * swapped when {@code factor} is negative (in accordance with the * rules of interval arithmetic). *

      * When factor is, for example, 0.5f the result represents 'the mid-point' @@ -633,9 +633,9 @@ * * @param s the spring to scale * @param factor amount to scale by. - * @return a spring whose properties are those of the input spring s - * multiplied by factor - * @throws NullPointerException if s is null + * @return a spring whose properties are those of the input spring {@code s} + * multiplied by {@code factor} + * @throws NullPointerException if {@code s} is null * @since 1.5 */ public static Spring scale(Spring s, float factor) { @@ -656,7 +656,7 @@ * @param c Component used for calculating size * @return a spring whose properties are defined by the horizontal component * of the component's size methods. - * @throws NullPointerException if c is null + * @throws NullPointerException if {@code c} is null * @since 1.5 */ public static Spring width(Component c) { @@ -677,7 +677,7 @@ * @param c Component used for calculating size * @return a spring whose properties are defined by the vertical component * of the component's size methods. - * @throws NullPointerException if c is null + * @throws NullPointerException if {@code c} is null * @since 1.5 */ public static Spring height(Component c) { @@ -687,7 +687,7 @@ /** - * If s is null, this throws an NullPointerException. + * If {@code s} is null, this throws an NullPointerException. */ private static void checkArg(Object s) { if (s == null) { --- old/src/java.desktop/share/classes/javax/swing/SpringLayout.java 2015-10-04 22:57:22.489261629 +0400 +++ new/src/java.desktop/share/classes/javax/swing/SpringLayout.java 2015-10-04 22:57:22.301261637 +0400 @@ -34,15 +34,15 @@ import java.util.*; /** - * A SpringLayout lays out the children of its associated container + * A {@code SpringLayout} lays out the children of its associated container * according to a set of constraints. * See How to Use SpringLayout * in The Java Tutorial for examples of using - * SpringLayout. + * {@code SpringLayout}. * *

      * Each constraint, - * represented by a Spring object, + * represented by a {@code Spring} object, * controls the vertical or horizontal distance * between two component edges. * The edges can belong to @@ -59,14 +59,14 @@ * and the north edge of its container. * *

      - * Every child of a SpringLayout-controlled container, + * Every child of a {@code SpringLayout}-controlled container, * as well as the container itself, * has exactly one set of constraints * associated with it. * These constraints are represented by - * a SpringLayout.Constraints object. + * a {@code SpringLayout.Constraints} object. * By default, - * SpringLayout creates constraints + * {@code SpringLayout} creates constraints * that make their associated component * have the minimum, preferred, and maximum sizes * returned by the component's @@ -74,9 +74,9 @@ * {@link java.awt.Component#getPreferredSize}, and * {@link java.awt.Component#getMaximumSize} * methods. The x and y positions are initially not - * constrained, so that until you constrain them the Component - * will be positioned at 0,0 relative to the Insets of the - * parent Container. + * constrained, so that until you constrain them the {@code Component} + * will be positioned at 0,0 relative to the {@code Insets} of the + * parent {@code Container}. * *

      * You can change @@ -87,7 +87,7 @@ * methods * to establish a spring * linking the edges of two components within the same container. - * Or you can get the appropriate SpringLayout.Constraints + * Or you can get the appropriate {@code SpringLayout.Constraints} * object using * {@link #getConstraints getConstraints} * and then modify one or more of its springs. @@ -95,14 +95,14 @@ * using {@link #getConstraint getConstraint}, * and modify it. * You can also associate - * your own SpringLayout.Constraints object + * your own {@code SpringLayout.Constraints} object * with a component by specifying the constraints object * when you add the component to its container * (using * {@link Container#add(Component, Object)}). * *

      - * The Spring object representing each constraint + * The {@code Spring} object representing each constraint * has a minimum, preferred, maximum, and current value. * The current value of the spring * is somewhere between the minimum and maximum values, @@ -113,18 +113,18 @@ * this inflexible spring is called a strut. * You can create struts using the factory method * {@link Spring#constant(int)}. - * The Spring class also provides factory methods + * The {@code Spring} class also provides factory methods * for creating other kinds of springs, * including springs that depend on other springs. * *

      - * In a SpringLayout, the position of each edge is dependent on + * In a {@code SpringLayout}, the position of each edge is dependent on * the position of just one other edge. If a constraint is subsequently added * to create a new binding for an edge, the previous binding is discarded * and the edge remains dependent on a single edge. * Springs should only be attached * between edges of the container and its immediate children; the behavior - * of the SpringLayout when presented with constraints linking + * of the {@code SpringLayout} when presented with constraints linking * the edges of components from different containers (either internal or * external) is undefined. * @@ -136,9 +136,9 @@ *


      * Note: * Unlike many layout managers, - * SpringLayout doesn't automatically set the location of + * {@code SpringLayout} doesn't automatically set the location of * the components it manages. - * If you hand-code a GUI that uses SpringLayout, + * If you hand-code a GUI that uses {@code SpringLayout}, * remember to initialize component locations by constraining the west/east * and north/south locations. *

      @@ -148,23 +148,23 @@ * * *

      - * Despite the simplicity of SpringLayout, + * Despite the simplicity of {@code SpringLayout}, * it can emulate the behavior of most other layout managers. * For some features, - * such as the line breaking provided by FlowLayout, + * such as the line breaking provided by {@code FlowLayout}, * you'll need to - * create a special-purpose subclass of the Spring class. + * create a special-purpose subclass of the {@code Spring} class. * *

      - * SpringLayout also provides a way to solve + * {@code SpringLayout} also provides a way to solve * many of the difficult layout * problems that cannot be solved by nesting combinations - * of Boxes. That said, SpringLayout honors the - * LayoutManager2 contract correctly and so can be nested with + * of {@code Box}es. That said, {@code SpringLayout} honors the + * {@code LayoutManager2} contract correctly and so can be nested with * other layout managers -- a technique that can be preferable to * creating the constraints implied by the other layout managers. *

      - * The asymptotic complexity of the layout operation of a SpringLayout + * The asymptotic complexity of the layout operation of a {@code SpringLayout} * is linear in the number of constraints (and/or components). *

      * Warning: @@ -173,7 +173,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. * * @see Spring @@ -253,25 +253,25 @@ private static String[] ALL_VERTICAL = {NORTH, HEIGHT, SOUTH, VERTICAL_CENTER, BASELINE}; /** - * A Constraints object holds the + * A {@code Constraints} object holds the * constraints that govern the way a component's size and position - * change in a container controlled by a SpringLayout. - * A Constraints object is - * like a Rectangle, in that it - * has x, y, - * width, and height properties. - * In the Constraints object, however, + * change in a container controlled by a {@code SpringLayout}. + * A {@code Constraints} object is + * like a {@code Rectangle}, in that it + * has {@code x}, {@code y}, + * {@code width}, and {@code height} properties. + * In the {@code Constraints} object, however, * these properties have - * Spring values instead of integers. + * {@code Spring} values instead of integers. * In addition, - * a Constraints object + * a {@code Constraints} object * can be manipulated as four edges * -- north, south, east, and west -- - * using the constraint property. + * using the {@code constraint} property. * *

      * The following formulas are always true - * for a Constraints object (here WEST and x are synonyms, as are and NORTH and y): + * for a {@code Constraints} object (here WEST and {@code x} are synonyms, as are and NORTH and {@code y}): * *

            *               EAST = WEST + WIDTH
      @@ -292,11 +292,11 @@
            * 

      * Note: In this document, * operators represent methods - * in the Spring class. + * in the {@code Spring} class. * For example, "a + b" is equal to - * Spring.sum(a, b), + * {@code Spring.sum(a, b)}, * and "a - b" is equal to - * Spring.sum(a, Spring.minus(b)). + * {@code Spring.sum(a, Spring.minus(b))}. * See the * {@link Spring Spring API documentation} * for further details @@ -304,14 +304,14 @@ * *

      * - * Because a Constraints object's properties -- + * Because a {@code Constraints} object's properties -- * representing its edges, size, and location -- can all be set * independently and yet are interrelated, - * a Constraints object can become over-constrained. - * For example, if the WEST, WIDTH and - * EAST edges are all set, steps must be taken to ensure that + * a {@code Constraints} object can become over-constrained. + * For example, if the {@code WEST}, {@code WIDTH} and + * {@code EAST} edges are all set, steps must be taken to ensure that * the first of the formulas above holds. To do this, the - * Constraints + * {@code Constraints} * object throws away the least recently set * constraint so as to make the formulas hold. * @since 1.4 @@ -334,17 +334,17 @@ private Component c; /** - * Creates an empty Constraints object. + * Creates an empty {@code Constraints} object. */ public Constraints() { } /** - * Creates a Constraints object with the + * Creates a {@code Constraints} object with the * specified values for its - * x and y properties. - * The height and width springs - * have null values. + * {@code x} and {@code y} properties. + * The {@code height} and {@code width} springs + * have {@code null} values. * * @param x the spring controlling the component's x value * @param y the spring controlling the component's y value @@ -355,19 +355,19 @@ } /** - * Creates a Constraints object with the + * Creates a {@code Constraints} object with the * specified values for its - * x, y, width, - * and height properties. - * Note: If the SpringLayout class - * encounters null values in the - * Constraints object of a given component, + * {@code x}, {@code y}, {@code width}, + * and {@code height} properties. + * Note: If the {@code SpringLayout} class + * encounters {@code null} values in the + * {@code Constraints} object of a given component, * it replaces them with suitable defaults. * - * @param x the spring value for the x property - * @param y the spring value for the y property - * @param width the spring value for the width property - * @param height the spring value for the height property + * @param x the spring value for the {@code x} property + * @param y the spring value for the {@code y} property + * @param width the spring value for the {@code width} property + * @param height the spring value for the {@code height} property */ public Constraints(Spring x, Spring y, Spring width, Spring height) { setX(x); @@ -377,19 +377,19 @@ } /** - * Creates a Constraints object with - * suitable x, y, width and - * height springs for component, c. - * The x and y springs are constant + * Creates a {@code Constraints} object with + * suitable {@code x}, {@code y}, {@code width} and + * {@code height} springs for component, {@code c}. + * The {@code x} and {@code y} springs are constant * springs initialised with the component's location at - * the time this method is called. The width and - * height springs are special springs, created by - * the Spring.width() and Spring.height() + * the time this method is called. The {@code width} and + * {@code height} springs are special springs, created by + * the {@code Spring.width()} and {@code Spring.height()} * methods, which track the size characteristics of the component * when they change. * * @param c the component whose characteristics will be reflected by this Constraints object - * @throws NullPointerException if c is null. + * @throws NullPointerException if {@code c} is null. * @since 1.5 */ public Constraints(Component c) { @@ -500,11 +500,11 @@ } /** - * Sets the x property, - * which controls the x value + * Sets the {@code x} property, + * which controls the {@code x} value * of a component's location. * - * @param x the spring controlling the x value + * @param x the spring controlling the {@code x} value * of a component's location * * @see #getX @@ -516,9 +516,9 @@ } /** - * Returns the value of the x property. + * Returns the value of the {@code x} property. * - * @return the spring controlling the x value + * @return the spring controlling the {@code x} value * of a component's location * * @see #setX @@ -538,11 +538,11 @@ } /** - * Sets the y property, - * which controls the y value + * Sets the {@code y} property, + * which controls the {@code y} value * of a component's location. * - * @param y the spring controlling the y value + * @param y the spring controlling the {@code y} value * of a component's location * * @see #getY @@ -554,9 +554,9 @@ } /** - * Returns the value of the y property. + * Returns the value of the {@code y} property. * - * @return the spring controlling the y value + * @return the spring controlling the {@code y} value * of a component's location * * @see #setY @@ -584,11 +584,11 @@ } /** - * Sets the width property, + * Sets the {@code width} property, * which controls the width of a component. * * @param width the spring controlling the width of this - * Constraints object + * {@code Constraints} object * * @see #getWidth * @see SpringLayout.Constraints @@ -599,7 +599,7 @@ } /** - * Returns the value of the width property. + * Returns the value of the {@code width} property. * * @return the spring controlling the width of a component * @@ -618,10 +618,10 @@ } /** - * Sets the height property, + * Sets the {@code height} property, * which controls the height of a component. * - * @param height the spring controlling the height of this Constraints + * @param height the spring controlling the height of this {@code Constraints} * object * * @see #getHeight @@ -633,7 +633,7 @@ } /** - * Returns the value of the height property. + * Returns the value of the {@code height} property. * * @return the spring controlling the height of a component * @@ -716,18 +716,18 @@ /** * Sets the spring controlling the specified edge. * The edge must have one of the following values: - * SpringLayout.NORTH, - * SpringLayout.SOUTH, - * SpringLayout.EAST, - * SpringLayout.WEST, - * SpringLayout.HORIZONTAL_CENTER, - * SpringLayout.VERTICAL_CENTER, - * SpringLayout.BASELINE, - * SpringLayout.WIDTH or - * SpringLayout.HEIGHT. - * For any other String value passed as the edge, - * no action is taken. For a null edge, a - * NullPointerException is thrown. + * {@code SpringLayout.NORTH}, + * {@code SpringLayout.SOUTH}, + * {@code SpringLayout.EAST}, + * {@code SpringLayout.WEST}, + * {@code SpringLayout.HORIZONTAL_CENTER}, + * {@code SpringLayout.VERTICAL_CENTER}, + * {@code SpringLayout.BASELINE}, + * {@code SpringLayout.WIDTH} or + * {@code SpringLayout.HEIGHT}. + * For any other {@code String} value passed as the edge, + * no action is taken. For a {@code null} edge, a + * {@code NullPointerException} is thrown. *

      * Note: This method can affect {@code x} and {@code y} values * previously set for this {@code Constraints}. @@ -735,7 +735,7 @@ * @param edgeName the edge to be set * @param s the spring controlling the specified edge * - * @throws NullPointerException if edgeName is null + * @throws NullPointerException if {@code edgeName} is {@code null} * * @see #getConstraint * @see #NORTH @@ -774,27 +774,27 @@ /** * Returns the value of the specified edge, which may be - * a derived value, or even null. + * a derived value, or even {@code null}. * The edge must have one of the following values: - * SpringLayout.NORTH, - * SpringLayout.SOUTH, - * SpringLayout.EAST, - * SpringLayout.WEST, - * SpringLayout.HORIZONTAL_CENTER, - * SpringLayout.VERTICAL_CENTER, - * SpringLayout.BASELINE, - * SpringLayout.WIDTH or - * SpringLayout.HEIGHT. - * For any other String value passed as the edge, - * null will be returned. Throws - * NullPointerException for a null edge. + * {@code SpringLayout.NORTH}, + * {@code SpringLayout.SOUTH}, + * {@code SpringLayout.EAST}, + * {@code SpringLayout.WEST}, + * {@code SpringLayout.HORIZONTAL_CENTER}, + * {@code SpringLayout.VERTICAL_CENTER}, + * {@code SpringLayout.BASELINE}, + * {@code SpringLayout.WIDTH} or + * {@code SpringLayout.HEIGHT}. + * For any other {@code String} value passed as the edge, + * {@code null} will be returned. Throws + * {@code NullPointerException} for a {@code null} edge. * * @param edgeName the edge whose value * is to be returned * - * @return the spring controlling the specified edge, may be null + * @return the spring controlling the specified edge, may be {@code null} * - * @throws NullPointerException if edgeName is null + * @throws NullPointerException if {@code edgeName} is {@code null} * * @see #setConstraint * @see #NORTH @@ -878,7 +878,7 @@ } /** - * Constructs a new SpringLayout. + * Constructs a new {@code SpringLayout}. */ public SpringLayout() {} @@ -988,8 +988,8 @@ } /** - * If constraints is an instance of - * SpringLayout.Constraints, + * If {@code constraints} is an instance of + * {@code SpringLayout.Constraints}, * associates the constraints with the specified component. * * @param component the component being added @@ -1022,8 +1022,8 @@ // End of LayoutManger2 methods /** - * Links edge e1 of component c1 to - * edge e2 of component c2, + * Links edge {@code e1} of component {@code c1} to + * edge {@code e2} of component {@code c2}, * with a fixed distance between the edges. This * constraint will cause the assignment *

      @@ -1043,19 +1043,19 @@
           }
       
           /**
      -     * Links edge e1 of component c1 to
      -     * edge e2 of component c2. As edge
      -     * (e2, c2) changes value, edge (e1, c1) will
      -     * be calculated by taking the (spring) sum of (e2, c2)
      -     * and s.
      +     * Links edge {@code e1} of component {@code c1} to
      +     * edge {@code e2} of component {@code c2}. As edge
      +     * {@code (e2, c2)} changes value, edge {@code (e1, c1)} will
      +     * be calculated by taking the (spring) sum of {@code (e2, c2)}
      +     * and {@code s}.
            * Each edge must have one of the following values:
      -     * SpringLayout.NORTH,
      -     * SpringLayout.SOUTH,
      -     * SpringLayout.EAST,
      -     * SpringLayout.WEST,
      -     * SpringLayout.VERTICAL_CENTER,
      -     * SpringLayout.HORIZONTAL_CENTER or
      -     * SpringLayout.BASELINE.
      +     * {@code SpringLayout.NORTH},
      +     * {@code SpringLayout.SOUTH},
      +     * {@code SpringLayout.EAST},
      +     * {@code SpringLayout.WEST},
      +     * {@code SpringLayout.VERTICAL_CENTER},
      +     * {@code SpringLayout.HORIZONTAL_CENTER} or
      +     * {@code SpringLayout.BASELINE}.
            *
            * @param   e1 the edge of the dependent
            * @param   c1 the component of the dependent
      @@ -1127,8 +1127,8 @@
           /**
            * Returns the constraints for the specified component.
            * Note that,
      -     * unlike the GridBagLayout
      -     * getConstraints method,
      +     * unlike the {@code GridBagLayout}
      +     * {@code getConstraints} method,
            * this method does not clone constraints.
            * If no constraints
            * have been associated with this component,
      @@ -1173,17 +1173,17 @@
            * constraints for a layout in any order. Proxies do, however,
            * provide the means to create cyclic dependencies amongst
            * the constraints of a layout. Such cycles are detected
      -     * internally by SpringLayout so that
      +     * internally by {@code SpringLayout} so that
            * the layout operation always terminates.
            *
            * @param edgeName must be one of
      -     * SpringLayout.NORTH,
      -     * SpringLayout.SOUTH,
      -     * SpringLayout.EAST,
      -     * SpringLayout.WEST,
      -     * SpringLayout.VERTICAL_CENTER,
      -     * SpringLayout.HORIZONTAL_CENTER or
      -     * SpringLayout.BASELINE
      +     * {@code SpringLayout.NORTH},
      +     * {@code SpringLayout.SOUTH},
      +     * {@code SpringLayout.EAST},
      +     * {@code SpringLayout.WEST},
      +     * {@code SpringLayout.VERTICAL_CENTER},
      +     * {@code SpringLayout.HORIZONTAL_CENTER} or
      +     * {@code SpringLayout.BASELINE}
            * @param c the component whose edge spring is desired
            *
            * @return a proxy for the spring controlling the distance between the
      --- old/src/java.desktop/share/classes/javax/swing/SwingUtilities.java	2015-10-04 22:57:23.037261604 +0400
      +++ new/src/java.desktop/share/classes/javax/swing/SwingUtilities.java	2015-10-04 22:57:22.849261612 +0400
      @@ -71,8 +71,8 @@
       
       
           /**
      -     * Returns true if setTransferHandler should change the
      -     * DropTarget.
      +     * Returns true if {@code setTransferHandler} should change the
      +     * {@code DropTarget}.
            */
           private static boolean getSuppressDropTarget() {
               if (!checkedSuppressDropSupport) {
      @@ -130,14 +130,14 @@
       
       
           /**
      -     * Returns the first Window  ancestor of c, or
      -     * {@code null} if c is not contained inside a Window.
      +     * Returns the first {@code Window} ancestor of {@code c}, or
      +     * {@code null} if {@code c} is not contained inside a {@code Window}.
            *
      -     * @param c Component to get Window ancestor
      +     * @param c {@code Component} to get {@code Window} ancestor
            *        of.
      -     * @return the first Window  ancestor of c, or
      -     *         {@code null} if c is not contained inside a
      -     *         Window.
      +     * @return the first {@code Window} ancestor of {@code c}, or
      +     *         {@code null} if {@code c} is not contained inside a
      +     *         {@code Window}.
            * @since 1.3
            */
           public static Window getWindowAncestor(Component c) {
      @@ -150,7 +150,7 @@
           }
       
           /**
      -     * Converts the location x y to the
      +     * Converts the location {@code x y} to the
            * parents coordinate system, returning the location.
            */
           static Point convertScreenLocationToParent(Container parent,int x, int y) {
      @@ -166,13 +166,13 @@
           }
       
           /**
      -     * Convert a aPoint in source coordinate system to
      -     * destination coordinate system.
      -     * If source is {@code null}, aPoint is assumed to be in destination's
      +     * Convert a {@code aPoint} in {@code source} coordinate system to
      +     * {@code destination} coordinate system.
      +     * If {@code source} is {@code null}, {@code aPoint} is assumed to be in {@code destination}'s
            * root component coordinate system.
      -     * If destination is {@code null}, aPoint will be converted to source's
      +     * If {@code destination} is {@code null}, {@code aPoint} will be converted to {@code source}'s
            * root component coordinate system.
      -     * If both source and destination are {@code null}, return aPoint
      +     * If both {@code source} and {@code destination} are {@code null}, return {@code aPoint}
            * without any conversion.
            *
            * @param source the source component
      @@ -203,13 +203,13 @@
           }
       
           /**
      -     * Convert the point (x,y) in source coordinate system to
      -     * destination coordinate system.
      -     * If source is {@code null}, (x,y) is assumed to be in destination's
      +     * Convert the point {@code (x,y)} in {@code source} coordinate system to
      +     * {@code destination} coordinate system.
      +     * If {@code source} is {@code null}, {@code (x,y)} is assumed to be in {@code destination}'s
            * root component coordinate system.
      -     * If destination is {@code null}, (x,y) will be converted to source's
      +     * If {@code destination} is {@code null}, {@code (x,y)} will be converted to {@code source}'s
            * root component coordinate system.
      -     * If both source and destination are {@code null}, return (x,y)
      +     * If both {@code source} and {@code destination} are {@code null}, return {@code (x,y)}
            * without any conversion.
            *
            * @param source the source component
      @@ -225,13 +225,13 @@
           }
       
           /**
      -     * Convert the rectangle aRectangle in source coordinate system to
      -     * destination coordinate system.
      -     * If source is {@code null}, aRectangle is assumed to be in destination's
      +     * Convert the rectangle {@code aRectangle} in {@code source} coordinate system to
      +     * {@code destination} coordinate system.
      +     * If {@code source} is {@code null}, {@code aRectangle} is assumed to be in {@code destination}'s
            * root component coordinate system.
      -     * If destination is {@code null}, aRectangle will be converted to source's
      +     * If {@code destination} is {@code null}, {@code aRectangle} will be converted to {@code source}'s
            * root component coordinate system.
      -     * If both source and destination are {@code null}, return aRectangle
      +     * If both {@code source} and {@code destination} are {@code null}, return {@code aRectangle}
            * without any conversion.
            *
            * @param source the source component
      @@ -247,9 +247,9 @@
           }
       
           /**
      -     * Convenience method for searching above comp in the
      -     * component hierarchy and returns the first object of class c it
      -     * finds. Can return {@code null}, if a class c cannot be found.
      +     * Convenience method for searching above {@code comp} in the
      +     * component hierarchy and returns the first object of class {@code c} it
      +     * finds. Can return {@code null}, if a class {@code c} cannot be found.
            *
            * @param c the class of a component
            * @param comp the component
      @@ -269,9 +269,9 @@
           }
       
           /**
      -     * Convenience method for searching above comp in the
      -     * component hierarchy and returns the first object of name it
      -     * finds. Can return {@code null}, if name cannot be found.
      +     * Convenience method for searching above {@code comp} in the
      +     * component hierarchy and returns the first object of {@code name} it
      +     * finds. Can return {@code null}, if {@code name} cannot be found.
            *
            * @param name the name of a component
            * @param comp the component
      @@ -290,12 +290,12 @@
           }
       
           /**
      -     * Returns the deepest visible descendent Component of parent
      -     * that contains the location x, y.
      -     * If parent does not contain the specified location,
      -     * then null is returned.  If parent is not a
      -     * container, or none of parent's visible descendents
      -     * contain the specified location, parent is returned.
      +     * Returns the deepest visible descendent Component of {@code parent}
      +     * that contains the location {@code x}, {@code y}.
      +     * If {@code parent} does not contain the specified location,
      +     * then {@code null} is returned.  If {@code parent} is not a
      +     * container, or none of {@code parent}'s visible descendents
      +     * contain the specified location, {@code parent} is returned.
            *
            * @param parent the root component to begin the search
            * @param x the x target location
      @@ -328,15 +328,15 @@
       
       
           /**
      -     * Returns a MouseEvent similar to sourceEvent except that its x
      -     * and y members have been converted to destination's coordinate
      -     * system.  If source is {@code null}, sourceEvent x and y members
      -     * are assumed to be into destination's root component coordinate system.
      -     * If destination is null, the
      -     * returned MouseEvent will be in source's coordinate system.
      -     * sourceEvent will not be changed. A new event is returned.
      -     * the source field of the returned event will be set
      -     * to destination if destination is non-{@code null}
      +     * Returns a MouseEvent similar to {@code sourceEvent} except that its x
      +     * and y members have been converted to {@code destination}'s coordinate
      +     * system.  If {@code source} is {@code null}, {@code sourceEvent} x and y members
      +     * are assumed to be into {@code destination}'s root component coordinate system.
      +     * If {@code destination} is {@code null}, the
      +     * returned MouseEvent will be in {@code source}'s coordinate system.
      +     * {@code sourceEvent} will not be changed. A new event is returned.
      +     * the {@code source} field of the returned event will be set
      +     * to {@code destination} if destination is non-{@code null}
            * use the translateMouseEvent() method to translate a mouse event from
            * one component to another without changing the source.
            *
      @@ -488,17 +488,17 @@
           }
       
           /**
      -     * Returns the first Window  ancestor of c, or
      -     * {@code null} if c is not contained inside a Window.
      +     * Returns the first {@code Window} ancestor of {@code c}, or
      +     * {@code null} if {@code c} is not contained inside a {@code Window}.
            * 

      * Note: This method provides the same functionality as - * getWindowAncestor. + * {@code getWindowAncestor}. * - * @param c Component to get Window ancestor + * @param c {@code Component} to get {@code Window} ancestor * of. - * @return the first Window ancestor of c, or - * {@code null} if c is not contained inside a - * Window. + * @return the first {@code Window} ancestor of {@code c}, or + * {@code null} if {@code c} is not contained inside a + * {@code Window}. */ public static Window windowForComponent(Component c) { return getWindowAncestor(c); @@ -534,7 +534,7 @@ * @param height the height of the first rectangle * @param dest the second rectangle * - * @return dest, modified to specify the intersection + * @return {@code dest}, modified to specify the intersection */ public static Rectangle computeIntersection(int x,int y,int width,int height,Rectangle dest) { int x1 = (x > dest.x) ? x : dest.x; @@ -565,7 +565,7 @@ * @param height the height of the first rectangle * @param dest the coordinates of the second rectangle; the union * of the two rectangles is returned in this rectangle - * @return the dest Rectangle + * @return the {@code dest Rectangle} */ public static Rectangle computeUnion(int x,int y,int width,int height,Rectangle dest) { int x1 = (x < dest.x) ? x : dest.x; @@ -582,7 +582,7 @@ /** * Convenience returning an array of rect representing the regions within - * rectA that do not overlap with rectB. If the + * {@code rectA} that do not overlap with {@code rectB}. If the * two Rects do not overlap, returns an empty array * * @param rectA the first rectangle @@ -1215,42 +1215,42 @@ /** - * Paints a component to the specified Graphics. + * Paints a component to the specified {@code Graphics}. * This method is primarily useful to render - * Components that don't exist as part of the visible + * {@code Component}s that don't exist as part of the visible * containment hierarchy, but are used for rendering. For * example, if you are doing your own rendering and want to render * some text (or even HTML), you could make use of - * JLabel's text rendering support and have it paint + * {@code JLabel}'s text rendering support and have it paint * directly by way of this method, without adding the label to the * visible containment hierarchy. *

      - * This method makes use of CellRendererPane to handle + * This method makes use of {@code CellRendererPane} to handle * the actual painting, and is only recommended if you use one * component for rendering. If you make use of multiple components - * to handle the rendering, as JTable does, use - * CellRendererPane directly. Otherwise, as described - * below, you could end up with a CellRendererPane - * per Component. + * to handle the rendering, as {@code JTable} does, use + * {@code CellRendererPane} directly. Otherwise, as described + * below, you could end up with a {@code CellRendererPane} + * per {@code Component}. *

      - * If c's parent is not a CellRendererPane, - * a new CellRendererPane is created, c is - * added to it, and the CellRendererPane is added to - * p. If c's parent is a - * CellRendererPane and the CellRendererPanes - * parent is not p, it is added to p. + * If {@code c}'s parent is not a {@code CellRendererPane}, + * a new {@code CellRendererPane} is created, {@code c} is + * added to it, and the {@code CellRendererPane} is added to + * {@code p}. If {@code c}'s parent is a + * {@code CellRendererPane} and the {@code CellRendererPane}s + * parent is not {@code p}, it is added to {@code p}. *

      - * The component should either descend from JComponent + * The component should either descend from {@code JComponent} * or be another kind of lightweight component. * A lightweight component is one whose "lightweight" property - * (returned by the Component - * isLightweight method) + * (returned by the {@code Component} + * {@code isLightweight} method) * is true. If the Component is not lightweight, bad things map happen: * crashes, exceptions, painting problems... * - * @param g the Graphics object to draw on - * @param c the Component to draw - * @param p the intermediate Container + * @param g the {@code Graphics} object to draw on + * @param c the {@code Component} to draw + * @param p the intermediate {@code Container} * @param x an int specifying the left side of the area draw in, in pixels, * measured from the left edge of the graphics context * @param y an int specifying the top of the area to draw in, in pixels @@ -1266,15 +1266,15 @@ } /** - * Paints a component to the specified Graphics. This + * Paints a component to the specified {@code Graphics}. This * is a cover method for * {@link #paintComponent(Graphics,Component,Container,int,int,int,int)}. * Refer to it for more information. * - * @param g the Graphics object to draw on - * @param c the Component to draw - * @param p the intermediate Container - * @param r the Rectangle to draw in + * @param g the {@code Graphics} object to draw on + * @param c the {@code Component} to draw + * @param p the intermediate {@code Container} + * @param r the {@code Rectangle} to draw in * * @see #paintComponent(Graphics,Component,Container,int,int,int,int) * @see CellRendererPane @@ -1285,8 +1285,8 @@ /* - * Ensures that cell renderer c has a - * ComponentShell parent and that + * Ensures that cell renderer {@code c} has a + * {@code ComponentShell} parent and that * the shell's parent is p. */ private static CellRendererPane getCellRendererPane(Component c, Container p) { @@ -1305,7 +1305,7 @@ /** * A simple minded look and feel change: ask each node in the tree - * to updateUI() -- that is, to initialize its UI property + * to {@code updateUI()} -- that is, to initialize its UI property * with the current look and feel. * * @param c the component @@ -1346,8 +1346,8 @@ * AWT event dispatching thread. This will happen after all * pending AWT events have been processed. This method should * be used when an application thread needs to update the GUI. - * In the following example the invokeLater call queues - * the Runnable object doHelloWorld + * In the following example the {@code invokeLater} call queues + * the {@code Runnable} object {@code doHelloWorld} * on the event dispatching thread and * then prints a message. *

      @@ -1370,7 +1370,7 @@
            * found in
            * Concurrency in Swing.
            * 

      - * As of 1.3 this method is just a cover for java.awt.EventQueue.invokeLater(). + * As of 1.3 this method is just a cover for {@code java.awt.EventQueue.invokeLater()}. *

      * Unlike the rest of Swing, this method can be invoked from any thread. * @@ -1383,14 +1383,14 @@ /** - * Causes doRun.run() to be executed synchronously on the + * Causes {@code doRun.run()} to be executed synchronously on the * AWT event dispatching thread. This call blocks until * all pending AWT events have been processed and (then) - * doRun.run() returns. This method should + * {@code doRun.run()} returns. This method should * be used when an application thread needs to update the GUI. * It shouldn't be called from the event dispatching thread. * Here's an example that creates a new application thread - * that uses invokeAndWait to print a string from the event + * that uses {@code invokeAndWait} to print a string from the event * dispatching thread and then, when that's finished, print * a string from the application thread. *

      @@ -1413,24 +1413,24 @@
            * };
            * appThread.start();
            * 
      - * Note that if the Runnable.run method throws an + * Note that if the {@code Runnable.run} method throws an * uncaught exception * (on the event dispatching thread) it's caught and rethrown, as - * an InvocationTargetException, on the caller's thread. + * an {@code InvocationTargetException}, on the caller's thread. *

      * Additional documentation and examples for this method can be * found in * Concurrency in Swing. *

      * As of 1.3 this method is just a cover for - * java.awt.EventQueue.invokeAndWait(). + * {@code java.awt.EventQueue.invokeAndWait()}. * * @param doRun the instance of {@code Runnable} * @exception InterruptedException if we're interrupted while waiting for * the event dispatching thread to finish executing - * doRun.run() + * {@code doRun.run()} * @exception InvocationTargetException if an exception is thrown - * while running doRun + * while running {@code doRun} * * @see #invokeLater */ @@ -1444,7 +1444,7 @@ * Returns true if the current thread is an AWT event dispatching thread. *

      * As of 1.3 this method is just a cover for - * java.awt.EventQueue.isDispatchThread(). + * {@code java.awt.EventQueue.isDispatchThread()}. * * @return true if the current thread is an AWT event dispatching thread */ @@ -1475,14 +1475,14 @@ } /** - * Returns the Accessible child contained at the - * local coordinate Point, if one exists. - * Otherwise returns null. + * Returns the {@code Accessible} child contained at the + * local coordinate {@code Point}, if one exists. + * Otherwise returns {@code null}. * * @param c the component * @param p the local coordinate - * @return the Accessible at the specified location, - * if it exists; otherwise null + * @return the {@code Accessible} at the specified location, + * if it exists; otherwise {@code null} */ public static Accessible getAccessibleAt(Component c, Point p) { if (c instanceof Container) { @@ -1567,18 +1567,18 @@ } /** - * Return the child Component of the specified - * Component that is the focus owner, if any. + * Return the child {@code Component} of the specified + * {@code Component} that is the focus owner, if any. * - * @param c the root of the Component hierarchy to + * @param c the root of the {@code Component} hierarchy to * search for the focus owner - * @return the focus owner, or null if there is no focus - * owner, or if the focus owner is not comp, or a - * descendant of comp + * @return the focus owner, or {@code null} if there is no focus + * owner, or if the focus owner is not {@code comp}, or a + * descendant of {@code comp} * * @see java.awt.KeyboardFocusManager#getFocusOwner * @deprecated As of 1.4, replaced by - * KeyboardFocusManager.getFocusOwner(). + * {@code KeyboardFocusManager.getFocusOwner()}. */ @Deprecated public static Component findFocusOwner(Component c) { @@ -1648,14 +1648,14 @@ } /** - * Process the key bindings for the Component associated with - * event. This method is only useful if - * event.getComponent() does not descend from - * JComponent, or your are not invoking - * super.processKeyEvent from within your - * JComponent subclass. JComponent + * Process the key bindings for the {@code Component} associated with + * {@code event}. This method is only useful if + * {@code event.getComponent()} does not descend from + * {@code JComponent}, or your are not invoking + * {@code super.processKeyEvent} from within your + * {@code JComponent} subclass. {@code JComponent} * automatically processes bindings from within its - * processKeyEvent method, hence you rarely need + * {@code processKeyEvent} method, hence you rarely need * to directly invoke this method. * * @param event KeyEvent used to identify which bindings to process, as @@ -1696,7 +1696,7 @@ } /** - * Returns true if the e is a valid KeyEvent to use in + * Returns true if the {@code e} is a valid KeyEvent to use in * processing the key bindings associated with JComponents. */ static boolean isValidKeyEventForKeyBindings(KeyEvent e) { @@ -1704,18 +1704,18 @@ } /** - * Invokes actionPerformed on action if - * action is enabled (and non-{@code null}). The command for the + * Invokes {@code actionPerformed} on {@code action} if + * {@code action} is enabled (and non-{@code null}). The command for the * ActionEvent is determined by: *

        *
      1. If the action was registered via - * registerKeyboardAction, then the command string + * {@code registerKeyboardAction}, then the command string * passed in ({@code null} will be used if {@code null} was passed in). *
      2. Action value with name Action.ACTION_COMMAND_KEY, unless {@code null}. - *
      3. String value of the KeyEvent, unless getKeyChar + *
      4. String value of the KeyEvent, unless {@code getKeyChar} * returns KeyEvent.CHAR_UNDEFINED.. *
      - * This will return true if action is non-{@code null} and + * This will return true if {@code action} is non-{@code null} and * actionPerformed is invoked on it. * * @param action an action @@ -1778,8 +1778,8 @@ /** - * Convenience method to change the UI InputMap for component - * to uiInputMap. If uiInputMap is {@code null}, + * Convenience method to change the UI InputMap for {@code component} + * to {@code uiInputMap}. If {@code uiInputMap} is {@code null}, * this removes any previously installed UI InputMap. * * @param component a component @@ -1803,8 +1803,8 @@ /** - * Convenience method to change the UI ActionMap for component - * to uiActionMap. If uiActionMap is {@code null}, + * Convenience method to change the UI ActionMap for {@code component} + * to {@code uiActionMap}. If {@code uiActionMap} is {@code null}, * this removes any previously installed UI ActionMap. * * @param component a component @@ -1828,7 +1828,7 @@ /** * Returns the InputMap provided by the UI for condition - * condition in component component. + * {@code condition} in component {@code component}. *

      This will return {@code null} if the UI has not installed an InputMap * of the specified type. * @@ -1853,7 +1853,7 @@ /** * Returns the ActionMap provided by the UI - * in component component. + * in component {@code component}. *

      This will return {@code null} if the UI has not installed an ActionMap. * * @param component a component @@ -2013,8 +2013,8 @@ } /** - * Returns true if the Icon icon is an instance of - * ImageIcon, and the image it contains is the same as image. + * Returns true if the Icon {@code icon} is an instance of + * ImageIcon, and the image it contains is the same as {@code image}. */ static boolean doesIconReferenceImage(Icon icon, Image image) { Image iconImage = (icon != null && (icon instanceof ImageIcon)) ? @@ -2023,8 +2023,8 @@ } /** - * Returns index of the first occurrence of mnemonic - * within string text. Matching algorithm is not + * Returns index of the first occurrence of {@code mnemonic} + * within string {@code text}. Matching algorithm is not * case-sensitive. * * @param text The text to search through, may be {@code null} @@ -2054,7 +2054,7 @@ /** * Stores the position and size of * the inner painting area of the specified component - * in r and returns r. + * in {@code r} and returns {@code r}. * The position and size specify the bounds of the component, * adjusted so as not to include the border area (the insets). * This method is useful for classes --- old/src/java.desktop/share/classes/javax/swing/SwingWorker.java 2015-10-04 22:57:23.605261578 +0400 +++ new/src/java.desktop/share/classes/javax/swing/SwingWorker.java 2015-10-04 22:57:23.417261587 +0400 @@ -218,7 +218,7 @@ * @param the result type returned by this {@code SwingWorker's} * {@code doInBackground} and {@code get} methods * @param the type used for carrying out intermediate results by this - * {@code SwingWorker's} {@code publish} and {@code process} methods + * {@code SwingWorker's publish} and {@code process} methods * * @since 1.6 */ --- old/src/java.desktop/share/classes/javax/swing/TablePrintable.java 2015-10-04 22:57:24.141261554 +0400 +++ new/src/java.desktop/share/classes/javax/swing/TablePrintable.java 2015-10-04 22:57:23.949261563 +0400 @@ -32,64 +32,64 @@ import java.text.MessageFormat; /** - * An implementation of Printable for printing - * JTables. + * An implementation of {@code Printable} for printing + * {@code JTable}s. *

      * This implementation spreads table rows naturally in sequence * across multiple pages, fitting as many rows as possible per page. * The distribution of columns, on the other hand, is controlled by a * printing mode parameter passed to the constructor. When - * JTable.PrintMode.NORMAL is used, the implementation + * {@code JTable.PrintMode.NORMAL} is used, the implementation * handles columns in a similar manner to how it handles rows, spreading them * across multiple pages (in an order consistent with the table's - * ComponentOrientation). - * When JTable.PrintMode.FIT_WIDTH is given, the implementation + * {@code ComponentOrientation}). + * When {@code JTable.PrintMode.FIT_WIDTH} is given, the implementation * scales the output smaller if necessary, to ensure that all columns fit on * the page. (Note that width and height are scaled equally, ensuring that the * aspect ratio remains the same). *

      * The portion of table printed on each page is headed by the - * appropriate section of the table's JTableHeader. + * appropriate section of the table's {@code JTableHeader}. *

      * Header and footer text can be added to the output by providing - * MessageFormat instances to the constructor. The + * {@code MessageFormat} instances to the constructor. The * printing code requests Strings from the formats by calling - * their format method with a single parameter: - * an Object array containing a single element of type - * Integer, representing the current page number. + * their {@code format} method with a single parameter: + * an {@code Object} array containing a single element of type + * {@code Integer}, representing the current page number. *

      - * There are certain circumstances where this Printable + * There are certain circumstances where this {@code Printable} * cannot fit items appropriately, resulting in clipped output. * These are: *

        *
      • In any mode, when the header or footer text is too wide to * fit completely in the printable area. The implementation * prints as much of the text as possible starting from the beginning, - * as determined by the table's ComponentOrientation. + * as determined by the table's {@code ComponentOrientation}. *
      • In any mode, when a row is too tall to fit in the * printable area. The upper most portion of the row * is printed and no lower border is shown. - *
      • In JTable.PrintMode.NORMAL when a column + *
      • In {@code JTable.PrintMode.NORMAL} when a column * is too wide to fit in the printable area. The center of the * column is printed and no left and right borders are shown. *
      *

      - * It is entirely valid for a developer to wrap this Printable + * It is entirely valid for a developer to wrap this {@code Printable} * inside another in order to create complex reports and documents. They may * even request that different pages be rendered into different sized * printable areas. The implementation was designed to handle this by * performing most of its calculations on the fly. However, providing different - * sizes works best when JTable.PrintMode.FIT_WIDTH is used, or + * sizes works best when {@code JTable.PrintMode.FIT_WIDTH} is used, or * when only the printable width is changed between pages. This is because when - * it is printing a set of rows in JTable.PrintMode.NORMAL and the + * it is printing a set of rows in {@code JTable.PrintMode.NORMAL} and the * implementation determines a need to distribute columns across pages, * it assumes that all of those rows will fit on each subsequent page needed * to fit the columns. *

      * It is the responsibility of the developer to ensure that the table is not - * modified in any way after this Printable is created (invalid + * modified in any way after this {@code Printable} is created (invalid * modifications include changes in: size, renderers, or underlying data). - * The behavior of this Printable is undefined if the table is + * The behavior of this {@code Printable} is undefined if the table is * changed at any time after creation. * * @author Shannon Hickey @@ -151,16 +151,16 @@ private Font footerFont; /** - * Create a new TablePrintable for the given - * JTable. Header and footer text can be specified using the - * two MessageFormat parameters. When called upon to provide + * Create a new {@code TablePrintable} for the given + * {@code JTable}. Header and footer text can be specified using the + * two {@code MessageFormat} parameters. When called upon to provide * a String, each format is given the current page number. * * @param table the table to print * @param printMode the printing mode for this printable - * @param headerFormat a MessageFormat specifying the text to + * @param headerFormat a {@code MessageFormat} specifying the text to * be used in printing a header, or null for none - * @param footerFormat a MessageFormat specifying the text to + * @param footerFormat a {@code MessageFormat} specifying the text to * be used in printing a footer, or null for none * @throws IllegalArgumentException if passed an invalid print mode */ --- old/src/java.desktop/share/classes/javax/swing/Timer.java 2015-10-04 22:57:24.669261531 +0400 +++ new/src/java.desktop/share/classes/javax/swing/Timer.java 2015-10-04 22:57:24.477261539 +0400 @@ -46,18 +46,18 @@ /** * Fires one or more {@code ActionEvent}s at specified * intervals. An example use is an animation object that uses a - * Timer as the trigger for drawing its frames. + * {@code Timer} as the trigger for drawing its frames. *

      * Setting up a timer - * involves creating a Timer object, + * involves creating a {@code Timer} object, * registering one or more action listeners on it, * and starting the timer using - * the start method. + * the {@code start} method. * For example, * the following code creates and starts a timer * that fires an action event once per second - * (as specified by the first argument to the Timer constructor). - * The second argument to the Timer constructor + * (as specified by the first argument to the {@code Timer} constructor). + * The second argument to the {@code Timer} constructor * specifies a listener to receive the timer's action events. * *

      @@ -75,36 +75,36 @@
        * to set both the initial delay and the delay between event
        * firing, in milliseconds. Once the timer has been started,
        * it waits for the initial delay before firing its
      - * first ActionEvent to registered listeners.
      + * first {@code ActionEvent} to registered listeners.
        * After this first event, it continues to fire events
        * every time the between-event delay has elapsed, until it
        * is stopped.
        * 

      * After construction, the initial delay and the between-event * delay can be changed independently, and additional - * ActionListeners may be added. + * {@code ActionListeners} may be added. *

      * If you want the timer to fire only the first time and then stop, - * invoke setRepeats(false) on the timer. + * invoke {@code setRepeats(false)} on the timer. *

      - * Although all Timers perform their waiting + * Although all {@code Timer}s perform their waiting * using a single, shared thread - * (created by the first Timer object that executes), - * the action event handlers for Timers + * (created by the first {@code Timer} object that executes), + * the action event handlers for {@code Timer}s * execute on another thread -- the event-dispatching thread. - * This means that the action handlers for Timers + * This means that the action handlers for {@code Timer}s * can safely perform operations on Swing components. * However, it also means that the handlers must execute quickly * to keep the GUI responsive. * *

      - * In v 1.3, another Timer class was added - * to the Java platform: java.util.Timer. - * Both it and javax.swing.Timer + * In v 1.3, another {@code Timer} class was added + * to the Java platform: {@code java.util.Timer}. + * Both it and {@code javax.swing.Timer} * provide the same basic functionality, - * but java.util.Timer + * but {@code java.util.Timer} * is more general and has more features. - * The javax.swing.Timer has two features + * The {@code javax.swing.Timer} has two features * that can make it a little easier to use with GUIs. * First, its event handling metaphor is familiar to GUI programmers * and can make dealing with the event-dispatching thread @@ -125,8 +125,8 @@ * target = "_top">How to Use Timers, * a section in The Java Tutorial. * For more examples and help in choosing between - * this Timer class and - * java.util.Timer, + * this {@code Timer} class and + * {@code java.util.Timer}, * see * Using Timers in Swing Applications, @@ -138,7 +138,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. * * @see java.util.Timer @@ -195,11 +195,11 @@ * Creates a {@code Timer} and initializes both the initial delay and * between-event delay to {@code delay} milliseconds. If {@code delay} * is less than or equal to zero, the timer fires as soon as it - * is started. If listener is not null, + * is started. If {@code listener} is not {@code null}, * it's registered as an action listener on the timer. * * @param delay milliseconds for the initial and between-event delay - * @param listener an initial listener; can be null + * @param listener an initial listener; can be {@code null} * * @see #addActionListener * @see #setInitialDelay @@ -261,7 +261,7 @@ } /** - * Adds an action listener to the Timer. + * Adds an action listener to the {@code Timer}. * * @param listener the listener to add * @@ -273,7 +273,7 @@ /** - * Removes the specified action listener from the Timer. + * Removes the specified action listener from the {@code Timer}. * * @param listener the listener to remove */ @@ -286,7 +286,7 @@ * Returns an array of all the action listeners registered * on this timer. * - * @return all of the timer's ActionListeners or an empty + * @return all of the timer's {@code ActionListener}s or an empty * array if no action listeners are currently registered * * @see #addActionListener @@ -322,14 +322,14 @@ /** * Returns an array of all the objects currently registered as * FooListeners - * upon this Timer. + * upon this {@code Timer}. * FooListeners * are registered using the addFooListener method. *

      - * You can specify the listenerType argument + * You can specify the {@code listenerType} argument * with a class literal, such as FooListener.class. - * For example, you can query a Timer - * instance t + * For example, you can query a {@code Timer} + * instance {@code t} * for its action listeners * with the following code: * @@ -341,15 +341,15 @@ * @param the type of {@code EventListener} class being requested * @param listenerType the type of listeners requested; * this parameter should specify an interface - * that descends from java.util.EventListener + * that descends from {@code java.util.EventListener} * @return an array of all objects registered as * FooListeners * on this timer, * or an empty array if no such * listeners have been added - * @exception ClassCastException if listenerType doesn't + * @exception ClassCastException if {@code listenerType} doesn't * specify a class or interface that implements - * java.util.EventListener + * {@code java.util.EventListener} * * @see #getActionListeners * @see #addActionListener @@ -371,9 +371,9 @@ /** * Enables or disables the timer log. When enabled, a message - * is posted to System.out whenever the timer goes off. + * is posted to {@code System.out} whenever the timer goes off. * - * @param flag true to enable logging + * @param flag {@code true} to enable logging * @see #getLogTimers */ public static void setLogTimers(boolean flag) { @@ -382,9 +382,9 @@ /** - * Returns true if logging is enabled. + * Returns {@code true} if logging is enabled. * - * @return true if logging is enabled; otherwise, false + * @return {@code true} if logging is enabled; otherwise, false * @see #setLogTimers */ public static boolean getLogTimers() { @@ -393,7 +393,7 @@ /** - * Sets the Timer's between-event delay, the number of milliseconds + * Sets the {@code Timer}'s between-event delay, the number of milliseconds * between successive action events. This does not affect the initial delay * property, which can be set by the {@code setInitialDelay} method. * @@ -425,7 +425,7 @@ /** - * Sets the Timer's initial delay, the time + * Sets the {@code Timer}'s initial delay, the time * in milliseconds to wait after the timer is started * before firing the first event. Upon construction, this * is set to be the same as the between-event delay, @@ -454,11 +454,11 @@ /** - * If flag is false, - * instructs the Timer to send only one + * If {@code flag} is {@code false}, + * instructs the {@code Timer} to send only one * action event to its listeners. * - * @param flag specify false to make the timer + * @param flag specify {@code false} to make the timer * stop after sending its first action event */ public void setRepeats(boolean flag) { @@ -467,8 +467,8 @@ /** - * Returns true (the default) - * if the Timer will send + * Returns {@code true} (the default) + * if the {@code Timer} will send * an action event * to its listeners multiple times. * @@ -482,20 +482,20 @@ /** - * Sets whether the Timer coalesces multiple pending - * ActionEvent firings. + * Sets whether the {@code Timer} coalesces multiple pending + * {@code ActionEvent} firings. * A busy application may not be able - * to keep up with a Timer's event generation, + * to keep up with a {@code Timer}'s event generation, * causing multiple * action events to be queued. When processed, * the application sends these events one after the other, causing the - * Timer's listeners to receive a sequence of + * {@code Timer}'s listeners to receive a sequence of * events with no delay between them. Coalescing avoids this situation * by reducing multiple pending events to a single event. - * Timers + * {@code Timer}s * coalesce events by default. * - * @param flag specify false to turn off coalescing + * @param flag specify {@code false} to turn off coalescing */ public void setCoalesce(boolean flag) { boolean old = coalesce; @@ -524,8 +524,8 @@ /** * Sets the string that will be delivered as the action command - * in ActionEvents fired by this timer. - * null is an acceptable value. + * in {@code ActionEvent}s fired by this timer. + * {@code null} is an acceptable value. * * @param command the action command * @since 1.6 @@ -537,8 +537,8 @@ /** * Returns the string that will be delivered as the action command - * in ActionEvents fired by this timer. May be - * null, which is also the default. + * in {@code ActionEvent}s fired by this timer. May be + * {@code null}, which is also the default. * * @return the action command used in firing events * @since 1.6 @@ -549,7 +549,7 @@ /** - * Starts the Timer, + * Starts the {@code Timer}, * causing it to start sending action events * to its listeners. * @@ -572,7 +572,7 @@ /** - * Stops the Timer, + * Stops the {@code Timer}, * causing it to stop sending action events * to its listeners. * @@ -590,7 +590,7 @@ /** - * Restarts the Timer, + * Restarts the {@code Timer}, * canceling any pending firings and causing * it to fire with its initial delay. */ @@ -608,7 +608,7 @@ /** * Resets the internal state to indicate this Timer shouldn't notify * any of its listeners. This does not stop a repeatable Timer from - * firing again, use stop for that. + * firing again, use {@code stop} for that. */ void cancelEvent() { notify.set(false); --- old/src/java.desktop/share/classes/javax/swing/ToolTipManager.java 2015-10-04 22:57:25.265261504 +0400 +++ new/src/java.desktop/share/classes/javax/swing/ToolTipManager.java 2015-10-04 22:57:25.073261512 +0400 @@ -31,21 +31,21 @@ import java.util.Objects; /** - * Manages all the ToolTips in the system. + * Manages all the {@code ToolTips} in the system. *

      * ToolTipManager contains numerous properties for configuring how long it * will take for the tooltips to become visible, and how long till they * hide. Consider a component that has a different tooltip based on where * the mouse is, such as JTree. When the mouse moves into the JTree and * over a region that has a valid tooltip, the tooltip will become - * visible after initialDelay milliseconds. After - * dismissDelay milliseconds the tooltip will be hidden. If + * visible after {@code initialDelay} milliseconds. After + * {@code dismissDelay} milliseconds the tooltip will be hidden. If * the mouse is over a region that has a valid tooltip, and the tooltip * is currently visible, when the mouse moves to a region that doesn't have * a valid tooltip the tooltip will be hidden. If the mouse then moves back - * into a region that has a valid tooltip within reshowDelay + * into a region that has a valid tooltip within {@code reshowDelay} * milliseconds, the tooltip will immediately be shown, otherwise the - * tooltip will be shown again after initialDelay milliseconds. + * tooltip will be shown again after {@code initialDelay} milliseconds. * * @see JComponent#createToolTip * @author Dave Moore @@ -126,9 +126,9 @@ } /** - * When displaying the JToolTip, the - * ToolTipManager chooses to use a lightweight - * JPanel if it fits. This method allows you to + * When displaying the {@code JToolTip}, the + * {@code ToolTipManager} chooses to use a lightweight + * {@code JPanel} if it fits. This method allows you to * disable this feature. You have to do disable it if your * application mixes light weight and heavy weights components. * @@ -140,11 +140,11 @@ } /** - * Returns true if lightweight (all-Java) Tooltips + * Returns true if lightweight (all-Java) {@code Tooltips} * are in use, or false if heavyweight (native peer) - * Tooltips are being used. + * {@code Tooltips} are being used. * - * @return true if lightweight ToolTips are in use + * @return true if lightweight {@code ToolTips} are in use */ public boolean isLightWeightPopupEnabled() { return lightWeightPopupEnabled; @@ -198,13 +198,13 @@ /** * Used to specify the amount of time before the user has to wait - * initialDelay milliseconds before a tooltip will be + * {@code initialDelay} milliseconds before a tooltip will be * shown. That is, if the tooltip is hidden, and the user moves into * a region of the same Component that has a valid tooltip within - * milliseconds milliseconds the tooltip will immediately + * {@code milliseconds} milliseconds the tooltip will immediately * be shown. Otherwise, if the user moves into a region with a valid - * tooltip after milliseconds milliseconds, the user - * will have to wait an additional initialDelay + * tooltip after {@code milliseconds} milliseconds, the user + * will have to wait an additional {@code initialDelay} * milliseconds before the tooltip is shown again. * * @param milliseconds time in milliseconds @@ -384,9 +384,9 @@ } /** - * Returns a shared ToolTipManager instance. + * Returns a shared {@code ToolTipManager} instance. * - * @return a shared ToolTipManager object + * @return a shared {@code ToolTipManager} object */ public static ToolTipManager sharedInstance() { Object value = SwingUtilities.appContextGet(TOOL_TIP_MANAGER_KEY); @@ -403,12 +403,12 @@ * Registers a component for tooltip management. *

      * This will register key bindings to show and hide the tooltip text - * only if component has focus bindings. This is done + * only if {@code component} has focus bindings. This is done * so that components that are not normally focus traversable, such - * as JLabel, are not made focus traversable as a result + * as {@code JLabel}, are not made focus traversable as a result * of invoking this method. * - * @param component a JComponent object to add + * @param component a {@code JComponent} object to add * @see JComponent#isFocusTraversable */ public void registerComponent(JComponent component) { @@ -423,7 +423,7 @@ /** * Removes a component from tooltip control. * - * @param component a JComponent object to remove + * @param component a {@code JComponent} object to remove */ public void unregisterComponent(JComponent component) { component.removeMouseListener(this); @@ -623,7 +623,7 @@ /** * Checks to see if the tooltip needs to be changed in response to - * the MouseMoved event event. + * the MouseMoved event {@code event}. */ private void checkForTipChange(MouseEvent event) { JComponent component = (JComponent)event.getSource(); --- old/src/java.desktop/share/classes/javax/swing/TransferHandler.java 2015-10-04 22:57:25.797261480 +0400 +++ new/src/java.desktop/share/classes/javax/swing/TransferHandler.java 2015-10-04 22:57:25.609261488 +0400 @@ -53,8 +53,8 @@ import sun.awt.AWTAccessor; /** - * This class is used to handle the transfer of a Transferable - * to and from Swing components. The Transferable is used to + * This class is used to handle the transfer of a {@code Transferable} + * to and from Swing components. The {@code Transferable} is used to * represent data that is exchanged via a cut, copy, or paste * to/from a clipboard. It is also used in drag-and-drop operations * to represent a drag from a component, and a drop to a component. @@ -64,15 +64,15 @@ * that automatically supports drag and drop that uses the functionality * provided by an implementation of this class. The Swing developer can * concentrate on specifying the semantics of a transfer primarily by setting - * the transferHandler property on a Swing component. + * the {@code transferHandler} property on a Swing component. *

      * This class is implemented to provide a default behavior of transferring * a component property simply by specifying the name of the property in * the constructor. For example, to transfer the foreground color from * one component to another either via the clipboard or a drag and drop operation - * a TransferHandler can be constructed with the string "foreground". The - * built in support will use the color returned by getForeground as the source - * of the transfer, and setForeground for the target of a transfer. + * a {@code TransferHandler} can be constructed with the string "foreground". The + * built in support will use the color returned by {@code getForeground} as the source + * of the transfer, and {@code setForeground} for the target of a transfer. *

      * Please see * @@ -88,32 +88,32 @@ public class TransferHandler implements Serializable { /** - * An int representing no transfer action. + * An {@code int} representing no transfer action. */ public static final int NONE = DnDConstants.ACTION_NONE; /** - * An int representing a "copy" transfer action. + * An {@code int} representing a "copy" transfer action. * This value is used when data is copied to a clipboard * or copied elsewhere in a drag and drop operation. */ public static final int COPY = DnDConstants.ACTION_COPY; /** - * An int representing a "move" transfer action. + * An {@code int} representing a "move" transfer action. * This value is used when data is moved to a clipboard (i.e. a cut) * or moved elsewhere in a drag and drop operation. */ public static final int MOVE = DnDConstants.ACTION_MOVE; /** - * An int representing a source action capability of either - * "copy" or "move". + * An {@code int} representing a source action capability of either + * "copy" or "move". */ public static final int COPY_OR_MOVE = DnDConstants.ACTION_COPY_OR_MOVE; /** - * An int representing a "link" transfer action. + * An {@code int} representing a "link" transfer action. * This value is used to specify that data should be linked in a drag * and drop operation. * @@ -142,8 +142,8 @@ *

      * Developers typically shouldn't create instances of, or extend, this * class. Instead, these are something provided by the DnD - * implementation by TransferSupport instances and by - * components with a getDropLocation() method. + * implementation by {@code TransferSupport} instances and by + * components with a {@code getDropLocation()} method. * * @see javax.swing.TransferHandler.TransferSupport#getDropLocation * @since 1.6 @@ -157,7 +157,7 @@ * @param dropPoint the drop point, representing the mouse's * current location within the component. * @throws IllegalArgumentException if the point - * is null + * is {@code null} */ protected DropLocation(Point dropPoint) { if (dropPoint == null) { @@ -204,7 +204,7 @@ *

      * Developers typically need not create instances of this * class. Instead, they are something provided by the DnD - * implementation to certain methods in TransferHandler. + * implementation to certain methods in {@code TransferHandler}. * * @see #canImport(TransferHandler.TransferSupport) * @see #importData(TransferHandler.TransferSupport) @@ -229,11 +229,11 @@ private DropLocation dropLocation; /** - * Create a TransferSupport with isDrop() - * true for the given component, event, and index. + * Create a {@code TransferSupport} with {@code isDrop()} + * {@code true} for the given component, event, and index. * * @param component the target component - * @param event a DropTargetEvent + * @param event a {@code DropTargetEvent} */ private TransferSupport(Component component, DropTargetEvent event) { @@ -243,14 +243,14 @@ } /** - * Create a TransferSupport with isDrop() - * false for the given component and - * Transferable. + * Create a {@code TransferSupport} with {@code isDrop()} + * {@code false} for the given component and + * {@code Transferable}. * * @param component the target component * @param transferable the transferable * @throws NullPointerException if either parameter - * is null + * is {@code null} */ public TransferSupport(Component component, Transferable transferable) { if (component == null) { @@ -270,7 +270,7 @@ * Allows for a single instance to be reused during DnD. * * @param component the target component - * @param event a DropTargetEvent + * @param event a {@code DropTargetEvent} */ private void setDNDVariables(Component component, DropTargetEvent event) { @@ -309,11 +309,11 @@ } /** - * Returns whether or not this TransferSupport + * Returns whether or not this {@code TransferSupport} * represents a drop operation. * - * @return true if this is a drop operation, - * false otherwise. + * @return {@code true} if this is a drop operation, + * {@code false} otherwise. */ public boolean isDrop() { return isDrop; @@ -541,7 +541,7 @@ /** * Returns whether or not the given data flavor is supported. * - * @param df the DataFlavor to test + * @param df the {@code DataFlavor} to test * @return whether or not the given flavor is supported. */ public boolean isDataFlavorSupported(DataFlavor df) { @@ -557,14 +557,14 @@ } /** - * Returns the Transferable associated with this transfer. + * Returns the {@code Transferable} associated with this transfer. *

      - * Note: Unless it is necessary to fetch the Transferable + * Note: Unless it is necessary to fetch the {@code Transferable} * directly, use one of the other methods on this class to inquire about * the transfer. This may perform better than fetching the - * Transferable and asking it directly. + * {@code Transferable} and asking it directly. * - * @return the Transferable associated with this transfer + * @return the {@code Transferable} associated with this transfer */ public Transferable getTransferable() { if (isDrop) { @@ -623,7 +623,7 @@ * operation. * * @param property the name of the property to transfer; this can - * be null if there is no property associated with the transfer + * be {@code null} if there is no property associated with the transfer * handler (a subclass that performs some other kind of transfer, for example) */ public TransferHandler(String property) { @@ -702,22 +702,22 @@ /** * Causes the Swing drag support to be initiated. This is called by - * the various UI implementations in the javax.swing.plaf.basic + * the various UI implementations in the {@code javax.swing.plaf.basic} * package if the dragEnabled property is set on the component. * This can be called by custom UI * implementations to use the Swing drag support. This method can also be called - * by a Swing extension written as a subclass of JComponent + * by a Swing extension written as a subclass of {@code JComponent} * to take advantage of the Swing drag support. *

      * The transfer will not necessarily have been completed at the * return of this call (i.e. the call does not block waiting for the drop). * The transfer will take place through the Swing implementation of the - * java.awt.dnd mechanism, requiring no further effort - * from the developer. The exportDone method will be called + * {@code java.awt.dnd} mechanism, requiring no further effort + * from the developer. The {@code exportDone} method will be called * when the transfer has completed. * * @param comp the component holding the data to be transferred; - * provided to enable sharing of TransferHandlers + * provided to enable sharing of {@code TransferHandler}s * @param e the event that triggered the transfer * @param action the transfer action initially requested; * either {@code COPY}, {@code MOVE} or {@code LINK}; @@ -752,25 +752,25 @@ * given clipboard. This method is called by the default cut and * copy actions registered in a component's action map. *

      - * The transfer will take place using the java.awt.datatransfer + * The transfer will take place using the {@code java.awt.datatransfer} * mechanism, requiring no further effort from the developer. Any data - * transfer will be complete and the exportDone + * transfer will be complete and the {@code exportDone} * method will be called with the action that occurred, before this method * returns. Should the clipboard be unavailable when attempting to place - * data on it, the IllegalStateException thrown by + * data on it, the {@code IllegalStateException} thrown by * {@link Clipboard#setContents(Transferable, ClipboardOwner)} will * be propagated through this method. However, - * exportDone will first be called with an action - * of NONE for consistency. + * {@code exportDone} will first be called with an action + * of {@code NONE} for consistency. * * @param comp the component holding the data to be transferred; - * provided to enable sharing of TransferHandlers + * provided to enable sharing of {@code TransferHandler}s * @param clip the clipboard to transfer the data into * @param action the transfer action requested; this should - * be a value of either COPY or MOVE; + * be a value of either {@code COPY} or {@code MOVE}; * the operation performed is the intersection of the transfer * capabilities given by getSourceActions and the requested action; - * the intersection may result in an action of NONE + * the intersection may result in an action of {@code NONE} * if the requested action isn't supported * @throws IllegalStateException if the clipboard is currently unavailable * @see Clipboard#setContents(Transferable, ClipboardOwner) @@ -799,9 +799,9 @@ /** * Causes a transfer to occur from a clipboard or a drag and - * drop operation. The Transferable to be + * drop operation. The {@code Transferable} to be * imported and the component to transfer to are contained - * within the TransferSupport. + * within the {@code TransferSupport}. *

      * While the drag and drop implementation calls {@code canImport} * to determine the suitability of a transfer before calling this @@ -810,15 +810,15 @@ * this method for paste. It is recommended that {@code canImport} be * explicitly called to cover this case. *

      - * Note: The TransferSupport object passed to this method + * Note: The {@code TransferSupport} object passed to this method * is only valid for the duration of the method call. It is undefined * what values it may contain after this method returns. * * @param support the object containing the details of - * the transfer, not null. + * the transfer, not {@code null}. * @return true if the data was inserted into the component, * false otherwise - * @throws NullPointerException if support is {@code null} + * @throws NullPointerException if {@code support} is {@code null} * @see #canImport(TransferHandler.TransferSupport) * @since 1.6 */ @@ -830,11 +830,11 @@ /** * Causes a transfer to a component from a clipboard or a - * DND drop operation. The Transferable represents + * DND drop operation. The {@code Transferable} represents * the data to be imported into the component. *

      - * Note: Swing now calls the newer version of importData - * that takes a TransferSupport, which in turn calls this + * Note: Swing now calls the newer version of {@code importData} + * that takes a {@code TransferSupport}, which in turn calls this * method (if the component in the {@code TransferSupport} is a * {@code JComponent}). Developers are encouraged to call and override the * newer version as it provides more information (and is the only @@ -842,7 +842,7 @@ * on a {@code JFrame} or other non-{@code JComponent}). * * @param comp the component to receive the transfer; - * provided to enable sharing of TransferHandlers + * provided to enable sharing of {@code TransferHandler}s * @param t the data to import * @return true if the data was inserted into the component, false otherwise * @see #importData(TransferHandler.TransferSupport) @@ -907,15 +907,15 @@ * explicitly call this method for such cases and that this method * be prepared to return the suitability of paste operations as well. *

      - * Note: The TransferSupport object passed to this method + * Note: The {@code TransferSupport} object passed to this method * is only valid for the duration of the method call. It is undefined * what values it may contain after this method returns. * * @param support the object containing the details of - * the transfer, not null. - * @return true if the import can happen, - * false otherwise - * @throws NullPointerException if support is {@code null} + * the transfer, not {@code null}. + * @return {@code true} if the import can happen, + * {@code false} otherwise + * @throws NullPointerException if {@code support} is {@code null} * @see #importData(TransferHandler.TransferSupport) * @see javax.swing.TransferHandler.TransferSupport#setShowDropLocation * @see javax.swing.TransferHandler.TransferSupport#setDropAction @@ -931,8 +931,8 @@ * Indicates whether a component will accept an import of the given * set of data flavors prior to actually attempting to import it. *

      - * Note: Swing now calls the newer version of canImport - * that takes a TransferSupport, which in turn calls this + * Note: Swing now calls the newer version of {@code canImport} + * that takes a {@code TransferSupport}, which in turn calls this * method (only if the component in the {@code TransferSupport} is a * {@code JComponent}). Developers are encouraged to call and override the * newer version as it provides more information (and is the only @@ -940,7 +940,7 @@ * on a {@code JFrame} or other non-{@code JComponent}). * * @param comp the component to receive the transfer; - * provided to enable sharing of TransferHandlers + * provided to enable sharing of {@code TransferHandler}s * @param transferFlavors the data formats available * @return true if the data can be inserted into the component, false otherwise * @see #canImport(TransferHandler.TransferSupport) @@ -976,9 +976,9 @@ * disables transfers from the component. * * @param c the component holding the data to be transferred; - * provided to enable sharing of TransferHandlers + * provided to enable sharing of {@code TransferHandler}s * @return {@code COPY} if the transfer property can be found, - * otherwise returns NONE + * otherwise returns {@code NONE} */ public int getSourceActions(JComponent c) { PropertyDescriptor prop = getPropertyDescriptor(c); @@ -992,21 +992,21 @@ * Returns an object that establishes the look of a transfer. This is * useful for both providing feedback while performing a drag operation and for * representing the transfer in a clipboard implementation that has a visual - * appearance. The implementation of the Icon interface should + * appearance. The implementation of the {@code Icon} interface should * not alter the graphics clip or alpha level. * The icon implementation need not be rectangular or paint all of the * bounding rectangle and logic that calls the icons paint method should - * not assume the all bits are painted. null is a valid return value + * not assume the all bits are painted. {@code null} is a valid return value * for this method and indicates there is no visual representation provided. * In that case, the calling logic is free to represent the * transferable however it wants. *

      * The default Swing logic will not do an alpha blended drag animation if - * the return is null. + * the return is {@code null}. * * @param t the data to be transferred; this value is expected to have been - * created by the createTransferable method - * @return null, indicating + * created by the {@code createTransferable} method + * @return {@code null}, indicating * there is no default visual representation */ public Icon getVisualRepresentation(Transferable t) { @@ -1014,16 +1014,16 @@ } /** - * Creates a Transferable to use as the source for + * Creates a {@code Transferable} to use as the source for * a data transfer. Returns the representation of the data to - * be transferred, or null if the component's - * property is null + * be transferred, or {@code null} if the component's + * property is {@code null} * * @param c the component holding the data to be transferred; - * provided to enable sharing of TransferHandlers + * provided to enable sharing of {@code TransferHandler}s * @return the representation of the data to be transferred, or - * null if the property associated with c - * is null + * {@code null} if the property associated with {@code c} + * is {@code null} * */ protected Transferable createTransferable(JComponent c) { @@ -1036,15 +1036,15 @@ /** * Invoked after data has been exported. This method should remove - * the data that was transferred if the action was MOVE. + * the data that was transferred if the action was {@code MOVE}. *

      - * This method is implemented to do nothing since MOVE + * This method is implemented to do nothing since {@code MOVE} * is not a supported action of this implementation - * (getSourceActions does not include MOVE). + * ({@code getSourceActions} does not include {@code MOVE}). * * @param source the component that was the source of the data * @param data The data that was transferred or possibly null - * if the action is NONE. + * if the action is {@code NONE}. * @param action the actual action that was performed */ protected void exportDone(JComponent source, Transferable data, int action) { @@ -1053,7 +1053,7 @@ /** * Fetches the property descriptor for the property assigned to this transfer * handler on the given component (transfer handler may be shared). This - * returns null if the property descriptor can't be found + * returns {@code null} if the property descriptor can't be found * or there is an error attempting to fetch the property descriptor. */ private PropertyDescriptor getPropertyDescriptor(JComponent comp) { @@ -1131,7 +1131,7 @@ // --- Transferable methods ---------------------------------------------- /** - * Returns an array of DataFlavor objects indicating the flavors the data + * Returns an array of {@code DataFlavor} objects indicating the flavors the data * can be provided in. The array should be ordered according to preference * for providing the data (from most richly descriptive to least descriptive). * @return an array of data flavors in which this data can be transferred @@ -1152,7 +1152,7 @@ * Returns whether the specified data flavor is supported for * this object. * @param flavor the requested flavor for the data - * @return true if this DataFlavor is supported, + * @return true if this {@code DataFlavor} is supported, * otherwise false */ public boolean isDataFlavorSupported(DataFlavor flavor) { @@ -1197,12 +1197,12 @@ /** * This is the default drop target for drag and drop operations if - * one isn't provided by the developer. DropTarget - * only supports one DropTargetListener and doesn't + * one isn't provided by the developer. {@code DropTarget} + * only supports one {@code DropTargetListener} and doesn't * function properly if it isn't set. * This class sets the one listener as the linkage of drop handling - * to the TransferHandler, and adds support for - * additional listeners which some of the ComponentUI + * to the {@code TransferHandler}, and adds support for + * additional listeners which some of the {@code ComponentUI} * implementations install to manipulate a drop insertion location. */ static class SwingDropTarget extends DropTarget implements UIResource { @@ -1427,7 +1427,7 @@ * The timer fired, perform autoscroll if the pointer is within the * autoscroll region. *

      - * @param e the ActionEvent + * @param e the {@code ActionEvent} */ public void actionPerformed(ActionEvent e) { updateAutoscrollRegion((JComponent)component); @@ -1584,7 +1584,7 @@ /** * This is the default drag handler for drag and drop operations that - * use the TransferHandler. + * use the {@code TransferHandler}. */ private static class DragHandler implements DragGestureListener, DragSourceListener { --- old/src/java.desktop/share/classes/javax/swing/UIDefaults.java 2015-10-04 22:57:26.353261455 +0400 +++ new/src/java.desktop/share/classes/javax/swing/UIDefaults.java 2015-10-04 22:57:26.161261464 +0400 @@ -56,7 +56,7 @@ /** * A table of defaults for Swing components. Applications can set/get - * default values via the UIManager. + * default values via the {@code UIManager}. *

      * Warning: * Serialized objects of this class will not be compatible with @@ -64,7 +64,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. * * @see UIManager @@ -135,23 +135,23 @@ /** * Returns the value for key. If the value is a - * UIDefaults.LazyValue then the real - * value is computed with LazyValue.createValue(), + * {@code UIDefaults.LazyValue} then the real + * value is computed with {@code LazyValue.createValue()}, * the table entry is replaced, and the real value is returned. - * If the value is an UIDefaults.ActiveValue + * If the value is an {@code UIDefaults.ActiveValue} * the table entry is not replaced - the value is computed - * with ActiveValue.createValue() for each - * get() call. + * with {@code ActiveValue.createValue()} for each + * {@code get()} call. * * If the key is not found in the table then it is searched for in the list * of resource bundles maintained by this object. The resource bundles are * searched most recently added first using the locale returned by - * getDefaultLocale. LazyValues and - * ActiveValues are not supported in the resource bundles. + * {@code getDefaultLocale}. {@code LazyValues} and + * {@code ActiveValues} are not supported in the resource bundles. * * @param key the desired key - * @return the value for key + * @return the value for {@code key} * @see LazyValue * @see ActiveValue * @see java.util.Hashtable#get @@ -239,23 +239,23 @@ /** * Returns the value for key associated with the given locale. - * If the value is a UIDefaults.LazyValue then the real - * value is computed with LazyValue.createValue(), + * If the value is a {@code UIDefaults.LazyValue} then the real + * value is computed with {@code LazyValue.createValue()}, * the table entry is replaced, and the real value is returned. - * If the value is an UIDefaults.ActiveValue + * If the value is an {@code UIDefaults.ActiveValue} * the table entry is not replaced - the value is computed - * with ActiveValue.createValue() for each - * get() call. + * with {@code ActiveValue.createValue()} for each + * {@code get()} call. * * If the key is not found in the table then it is searched for in the list * of resource bundles maintained by this object. The resource bundles are * searched most recently added first using the given locale. - * LazyValues and ActiveValues are not supported + * {@code LazyValues} and {@code ActiveValues} are not supported * in the resource bundles. * * @param key the desired key - * @param l the desired locale - * @return the value for key + * @param l the desired {@code locale} + * @return the value for {@code key} * @see LazyValue * @see ActiveValue * @see java.util.Hashtable#get @@ -330,16 +330,16 @@ } /** - * Sets the value of key to value for all locales. - * If key is a string and the new value isn't - * equal to the old one, fire a PropertyChangeEvent. - * If value is null, the key is removed from the table. + * Sets the value of {@code key} to {@code value} for all locales. + * If {@code key} is a string and the new value isn't + * equal to the old one, fire a {@code PropertyChangeEvent}. + * If value is {@code null}, the key is removed from the table. * - * @param key the unique Object who's value will be used + * @param key the unique {@code Object} who's value will be used * to retrieve the data value associated with it - * @param value the new Object to store as data under + * @param value the new {@code Object} to store as data under * that key - * @return the previous Object value, or null + * @return the previous {@code Object} value, or {@code null} * @see #putDefaults * @see java.util.Hashtable#put */ @@ -354,9 +354,9 @@ /** * Puts all of the key/value pairs in the database and - * unconditionally generates one PropertyChangeEvent. - * The events oldValue and newValue will be null and its - * propertyName will be "UIDefaults". The key/value pairs are + * unconditionally generates one {@code PropertyChangeEvent}. + * The events oldValue and newValue will be {@code null} and its + * {@code propertyName} will be "UIDefaults". The key/value pairs are * added for all locales. * * @param keyValueList an array of key/value pairs @@ -378,12 +378,12 @@ /** - * If the value of key is a Font return it, - * otherwise return null. + * If the value of {@code key} is a {@code Font} return it, + * otherwise return {@code null}. * @param key the desired key - * @return if the value for key is a Font, - * return the Font object; otherwise return - * null + * @return if the value for {@code key} is a {@code Font}, + * return the {@code Font} object; otherwise return + * {@code null} */ public Font getFont(Object key) { Object value = get(key); @@ -392,14 +392,14 @@ /** - * If the value of key for the given Locale - * is a Font return it, otherwise return null. + * If the value of {@code key} for the given {@code Locale} + * is a {@code Font} return it, otherwise return {@code null}. * @param key the desired key * @param l the desired locale - * @return if the value for key and Locale - * is a Font, - * return the Font object; otherwise return - * null + * @return if the value for {@code key} and {@code Locale} + * is a {@code Font}, + * return the {@code Font} object; otherwise return + * {@code null} * @since 1.4 */ public Font getFont(Object key, Locale l) { @@ -408,12 +408,12 @@ } /** - * If the value of key is a Color return it, - * otherwise return null. + * If the value of {@code key} is a {@code Color} return it, + * otherwise return {@code null}. * @param key the desired key - * @return if the value for key is a Color, - * return the Color object; otherwise return - * null + * @return if the value for {@code key} is a {@code Color}, + * return the {@code Color} object; otherwise return + * {@code null} */ public Color getColor(Object key) { Object value = get(key); @@ -422,14 +422,14 @@ /** - * If the value of key for the given Locale - * is a Color return it, otherwise return null. + * If the value of {@code key} for the given {@code Locale} + * is a {@code Color} return it, otherwise return {@code null}. * @param key the desired key * @param l the desired locale - * @return if the value for key and Locale - * is a Color, - * return the Color object; otherwise return - * null + * @return if the value for {@code key} and {@code Locale} + * is a {@code Color}, + * return the {@code Color} object; otherwise return + * {@code null} * @since 1.4 */ public Color getColor(Object key, Locale l) { @@ -439,12 +439,12 @@ /** - * If the value of key is an Icon return it, - * otherwise return null. + * If the value of {@code key} is an {@code Icon} return it, + * otherwise return {@code null}. * @param key the desired key - * @return if the value for key is an Icon, - * return the Icon object; otherwise return - * null + * @return if the value for {@code key} is an {@code Icon}, + * return the {@code Icon} object; otherwise return + * {@code null} */ public Icon getIcon(Object key) { Object value = get(key); @@ -453,14 +453,14 @@ /** - * If the value of key for the given Locale - * is an Icon return it, otherwise return null. + * If the value of {@code key} for the given {@code Locale} + * is an {@code Icon} return it, otherwise return {@code null}. * @param key the desired key * @param l the desired locale - * @return if the value for key and Locale - * is an Icon, - * return the Icon object; otherwise return - * null + * @return if the value for {@code key} and {@code Locale} + * is an {@code Icon}, + * return the {@code Icon} object; otherwise return + * {@code null} * @since 1.4 */ public Icon getIcon(Object key, Locale l) { @@ -470,12 +470,12 @@ /** - * If the value of key is a Border return it, - * otherwise return null. + * If the value of {@code key} is a {@code Border} return it, + * otherwise return {@code null}. * @param key the desired key - * @return if the value for key is a Border, - * return the Border object; otherwise return - * null + * @return if the value for {@code key} is a {@code Border}, + * return the {@code Border} object; otherwise return + * {@code null} */ public Border getBorder(Object key) { Object value = get(key); @@ -484,14 +484,14 @@ /** - * If the value of key for the given Locale - * is a Border return it, otherwise return null. + * If the value of {@code key} for the given {@code Locale} + * is a {@code Border} return it, otherwise return {@code null}. * @param key the desired key * @param l the desired locale - * @return if the value for key and Locale - * is a Border, - * return the Border object; otherwise return - * null + * @return if the value for {@code key} and {@code Locale} + * is a {@code Border}, + * return the {@code Border} object; otherwise return + * {@code null} * @since 1.4 */ public Border getBorder(Object key, Locale l) { @@ -501,12 +501,12 @@ /** - * If the value of key is a String return it, - * otherwise return null. + * If the value of {@code key} is a {@code String} return it, + * otherwise return {@code null}. * @param key the desired key - * @return if the value for key is a String, - * return the String object; otherwise return - * null + * @return if the value for {@code key} is a {@code String}, + * return the {@code String} object; otherwise return + * {@code null} */ public String getString(Object key) { Object value = get(key); @@ -514,14 +514,14 @@ } /** - * If the value of key for the given Locale - * is a String return it, otherwise return null. + * If the value of {@code key} for the given {@code Locale} + * is a {@code String} return it, otherwise return {@code null}. * @param key the desired key - * @param l the desired Locale - * @return if the value for key for the given - * Locale is a String, - * return the String object; otherwise return - * null + * @param l the desired {@code Locale} + * @return if the value for {@code key} for the given + * {@code Locale} is a {@code String}, + * return the {@code String} object; otherwise return + * {@code null} * @since 1.4 */ public String getString(Object key, Locale l) { @@ -530,10 +530,10 @@ } /** - * If the value of key is an Integer return its + * If the value of {@code key} is an {@code Integer} return its * integer value, otherwise return 0. * @param key the desired key - * @return if the value for key is an Integer, + * @return if the value for {@code key} is an {@code Integer}, * return its value, otherwise return 0 */ public int getInt(Object key) { @@ -543,12 +543,12 @@ /** - * If the value of key for the given Locale - * is an Integer return its integer value, otherwise return 0. + * If the value of {@code key} for the given {@code Locale} + * is an {@code Integer} return its integer value, otherwise return 0. * @param key the desired key * @param l the desired locale - * @return if the value for key and Locale - * is an Integer, + * @return if the value for {@code key} and {@code Locale} + * is an {@code Integer}, * return its value, otherwise return 0 * @since 1.4 */ @@ -559,11 +559,11 @@ /** - * If the value of key is boolean, return the + * If the value of {@code key} is boolean, return the * boolean value, otherwise return false. * - * @param key an Object specifying the key for the desired boolean value - * @return if the value of key is boolean, return the + * @param key an {@code Object} specifying the key for the desired boolean value + * @return if the value of {@code key} is boolean, return the * boolean value, otherwise return false. * @since 1.4 */ @@ -574,12 +574,12 @@ /** - * If the value of key for the given Locale + * If the value of {@code key} for the given {@code Locale} * is boolean, return the boolean value, otherwise return false. * - * @param key an Object specifying the key for the desired boolean value + * @param key an {@code Object} specifying the key for the desired boolean value * @param l the desired locale - * @return if the value for key and Locale + * @return if the value for {@code key} and {@code Locale} * is boolean, return the * boolean value, otherwise return false. * @since 1.4 @@ -591,12 +591,12 @@ /** - * If the value of key is an Insets return it, - * otherwise return null. + * If the value of {@code key} is an {@code Insets} return it, + * otherwise return {@code null}. * @param key the desired key - * @return if the value for key is an Insets, - * return the Insets object; otherwise return - * null + * @return if the value for {@code key} is an {@code Insets}, + * return the {@code Insets} object; otherwise return + * {@code null} */ public Insets getInsets(Object key) { Object value = get(key); @@ -605,14 +605,14 @@ /** - * If the value of key for the given Locale - * is an Insets return it, otherwise return null. + * If the value of {@code key} for the given {@code Locale} + * is an {@code Insets} return it, otherwise return {@code null}. * @param key the desired key * @param l the desired locale - * @return if the value for key and Locale - * is an Insets, - * return the Insets object; otherwise return - * null + * @return if the value for {@code key} and {@code Locale} + * is an {@code Insets}, + * return the {@code Insets} object; otherwise return + * {@code null} * @since 1.4 */ public Insets getInsets(Object key, Locale l) { @@ -622,12 +622,12 @@ /** - * If the value of key is a Dimension return it, - * otherwise return null. + * If the value of {@code key} is a {@code Dimension} return it, + * otherwise return {@code null}. * @param key the desired key - * @return if the value for key is a Dimension, - * return the Dimension object; otherwise return - * null + * @return if the value for {@code key} is a {@code Dimension}, + * return the {@code Dimension} object; otherwise return + * {@code null} */ public Dimension getDimension(Object key) { Object value = get(key); @@ -636,14 +636,14 @@ /** - * If the value of key for the given Locale - * is a Dimension return it, otherwise return null. + * If the value of {@code key} for the given {@code Locale} + * is a {@code Dimension} return it, otherwise return {@code null}. * @param key the desired key * @param l the desired locale - * @return if the value for key and Locale - * is a Dimension, - * return the Dimension object; otherwise return - * null + * @return if the value for {@code key} and {@code Locale} + * is a {@code Dimension}, + * return the {@code Dimension} object; otherwise return + * {@code null} * @since 1.4 */ public Dimension getDimension(Object key, Locale l) { @@ -653,23 +653,23 @@ /** - * The value of get(uidClassID) must be the - * String name of a - * class that implements the corresponding ComponentUI + * The value of {@code get(uidClassID)} must be the + * {@code String} name of a + * class that implements the corresponding {@code ComponentUI} * class. If the class hasn't been loaded before, this method looks - * up the class with uiClassLoader.loadClass() if a non - * null - * class loader is provided, classForName() otherwise. + * up the class with {@code uiClassLoader.loadClass()} if a non + * {@code null} + * class loader is provided, {@code classForName()} otherwise. *

      - * If a mapping for uiClassID exists or if the specified - * class can't be found, return null. + * If a mapping for {@code uiClassID} exists or if the specified + * class can't be found, return {@code null}. *

      - * This method is used by getUI, it's usually + * This method is used by {@code getUI}, it's usually * not necessary to call it directly. * * @param uiClassID a string containing the class ID * @param uiClassLoader the object which will load the class - * @return the value of Class.forName(get(uidClassID)) + * @return the value of {@code Class.forName(get(uidClassID))} * @see #getUI */ public Class @@ -710,7 +710,7 @@ * * @param uiClassID a string containing the class ID * @return the Class object returned by - * getUIClass(uiClassID, null) + * {@code getUIClass(uiClassID, null)} */ public Class getUIClass(String uiClassID) { return getUIClass(uiClassID, null); @@ -718,8 +718,8 @@ /** - * If getUI() fails for any reason, - * it calls this method before returning null. + * If {@code getUI()} fails for any reason, + * it calls this method before returning {@code null}. * Subclasses may choose to do more or less here. * * @param msg message string to print @@ -736,18 +736,18 @@ } /** - * Creates an ComponentUI implementation for the + * Creates an {@code ComponentUI} implementation for the * specified component. In other words create the look - * and feel specific delegate object for target. + * and feel specific delegate object for {@code target}. * This is done in two steps: *

      - * @param target the JComponent which needs a UI - * @return the ComponentUI object + * @param target the {@code JComponent} which needs a UI + * @return the {@code ComponentUI} object */ public ComponentUI getUI(JComponent target) { @@ -781,13 +781,13 @@ } /** - * Adds a PropertyChangeListener to the listener list. + * Adds a {@code PropertyChangeListener} to the listener list. * The listener is registered for all properties. *

      - * A PropertyChangeEvent will get fired whenever a default + * A {@code PropertyChangeEvent} will get fired whenever a default * is changed. * - * @param listener the PropertyChangeListener to be added + * @param listener the {@code PropertyChangeListener} to be added * @see java.beans.PropertyChangeSupport */ public synchronized void addPropertyChangeListener(PropertyChangeListener listener) { @@ -799,11 +799,11 @@ /** - * Removes a PropertyChangeListener from the listener list. - * This removes a PropertyChangeListener that was registered + * Removes a {@code PropertyChangeListener} from the listener list. + * This removes a {@code PropertyChangeListener} that was registered * for all properties. * - * @param listener the PropertyChangeListener to be removed + * @param listener the {@code PropertyChangeListener} to be removed * @see java.beans.PropertyChangeSupport */ public synchronized void removePropertyChangeListener(PropertyChangeListener listener) { @@ -814,10 +814,10 @@ /** - * Returns an array of all the PropertyChangeListeners added + * Returns an array of all the {@code PropertyChangeListener}s added * to this UIDefaults with addPropertyChangeListener(). * - * @return all of the PropertyChangeListeners added or an empty + * @return all of the {@code PropertyChangeListener}s added or an empty * array if no listeners have been added * @since 1.4 */ @@ -831,9 +831,9 @@ /** * Support for reporting bound property changes. If oldValue and - * newValue are not equal and the PropertyChangeEventx + * newValue are not equal and the {@code PropertyChangeEvent}x * listener list isn't empty, then fire a - * PropertyChange event to each listener. + * {@code PropertyChange} event to each listener. * * @param propertyName the programmatic name of the property * that was changed @@ -891,7 +891,7 @@ /** * Sets the default locale. The default locale is used in retrieving - * localized values via get methods that do not take a + * localized values via {@code get} methods that do not take a * locale argument. As of release 1.4, Swing UI objects should retrieve * localized values using the locale of their component rather than the * default locale. The default locale exists to provide compatibility with @@ -909,7 +909,7 @@ /** * Returns the default locale. The default locale is used in retrieving - * localized values via get methods that do not take a + * localized values via {@code get} methods that do not take a * locale argument. As of release 1.4, Swing UI objects should retrieve * localized values using the locale of their component rather than the * default locale. The default locale exists to provide compatibility with @@ -928,16 +928,16 @@ /** * This class enables one to store an entry in the defaults * table that isn't constructed until the first time it's - * looked up with one of the getXXX(key) methods. + * looked up with one of the {@code getXXX(key)} methods. * Lazy values are useful for defaults that are expensive * to construct or are seldom retrieved. The first time - * a LazyValue is retrieved its "real value" is computed - * by calling LazyValue.createValue() and the real - * value is used to replace the LazyValue in the - * UIDefaults + * a {@code LazyValue} is retrieved its "real value" is computed + * by calling {@code LazyValue.createValue()} and the real + * value is used to replace the {@code LazyValue} in the + * {@code UIDefaults} * table. Subsequent lookups for the same key return - * the real value. Here's an example of a LazyValue - * that constructs a Border: + * the real value. Here's an example of a {@code LazyValue} + * that constructs a {@code Border}: *

            *  Object borderLazyValue = new UIDefaults.LazyValue() {
            *      public Object createValue(UIDefaults table) {
      @@ -952,14 +952,14 @@
            */
           public interface LazyValue {
               /**
      -         * Creates the actual value retrieved from the UIDefaults
      +         * Creates the actual value retrieved from the {@code UIDefaults}
                * table. When an object that implements this interface is
                * retrieved from the table, this method is used to create
                * the real value, which is then stored in the table and
                * returned to the calling method.
                *
      -         * @param table  a UIDefaults table
      -         * @return the created Object
      +         * @param table  a {@code UIDefaults} table
      +         * @return the created {@code Object}
                */
               Object createValue(UIDefaults table);
           }
      @@ -968,9 +968,9 @@
           /**
            * This class enables one to store an entry in the defaults
            * table that's constructed each time it's looked up with one of
      -     * the getXXX(key) methods. Here's an example of
      -     * an ActiveValue that constructs a
      -     * DefaultListCellRenderer:
      +     * the {@code getXXX(key)} methods. Here's an example of
      +     * an {@code ActiveValue} that constructs a
      +     * {@code DefaultListCellRenderer}:
            * 
            *  Object cellRendererActiveValue = new UIDefaults.ActiveValue() {
            *      public Object createValue(UIDefaults table) {
      @@ -985,24 +985,24 @@
            */
           public interface ActiveValue {
               /**
      -         * Creates the value retrieved from the UIDefaults table.
      +         * Creates the value retrieved from the {@code UIDefaults} table.
                * The object is created each time it is accessed.
                *
      -         * @param table  a UIDefaults table
      -         * @return the created Object
      +         * @param table  a {@code UIDefaults} table
      +         * @return the created {@code Object}
                */
               Object createValue(UIDefaults table);
           }
       
           /**
      -     * This class provides an implementation of LazyValue
      +     * This class provides an implementation of {@code LazyValue}
            * which can be
            * used to delay loading of the Class for the instance to be created.
            * It also avoids creation of an anonymous inner class for the
      -     * LazyValue
      +     * {@code LazyValue}
            * subclass.  Both of these improve performance at the time that a
            * a Look and Feel is loaded, at the cost of a slight performance
      -     * reduction the first time createValue is called
      +     * reduction the first time {@code createValue} is called
            * (since Reflection APIs are used).
            * @since 1.3
            */
      @@ -1013,52 +1013,52 @@
               private Object[] args;
       
               /**
      -         * Creates a LazyValue which will construct an instance
      +         * Creates a {@code LazyValue} which will construct an instance
                * when asked.
                *
      -         * @param c    a String specifying the classname
      +         * @param c    a {@code String} specifying the classname
                *             of the instance to be created on demand
                */
               public ProxyLazyValue(String c) {
                   this(c, (String)null);
               }
               /**
      -         * Creates a LazyValue which will construct an instance
      +         * Creates a {@code LazyValue} which will construct an instance
                * when asked.
                *
      -         * @param c    a String specifying the classname of
      +         * @param c    a {@code String} specifying the classname of
                *              the class
                *              containing a static method to be called for
                *              instance creation
      -         * @param m    a String specifying the static
      +         * @param m    a {@code String} specifying the static
                *              method to be called on class c
                */
               public ProxyLazyValue(String c, String m) {
                   this(c, m, null);
               }
               /**
      -         * Creates a LazyValue which will construct an instance
      +         * Creates a {@code LazyValue} which will construct an instance
                * when asked.
                *
      -         * @param c    a String specifying the classname
      +         * @param c    a {@code String} specifying the classname
                *              of the instance to be created on demand
      -         * @param o    an array of Objects to be passed as
      +         * @param o    an array of {@code Objects} to be passed as
                *              paramaters to the constructor in class c
                */
               public ProxyLazyValue(String c, Object[] o) {
                   this(c, null, o);
               }
               /**
      -         * Creates a LazyValue which will construct an instance
      +         * Creates a {@code LazyValue} which will construct an instance
                * when asked.
                *
      -         * @param c    a String specifying the classname
      +         * @param c    a {@code String} specifying the classname
                *              of the class
                *              containing a static method to be called for
                *              instance creation.
      -         * @param m    a String specifying the static method
      +         * @param m    a {@code String} specifying the static method
                *              to be called on class c
      -         * @param o    an array of Objects to be passed as
      +         * @param o    an array of {@code Objects} to be passed as
                *              paramaters to the static method in class c
                */
               public ProxyLazyValue(String c, String m, Object[] o) {
      @@ -1071,11 +1071,11 @@
               }
       
               /**
      -         * Creates the value retrieved from the UIDefaults table.
      +         * Creates the value retrieved from the {@code UIDefaults} table.
                * The object is created each time it is accessed.
                *
      -         * @param table  a UIDefaults table
      -         * @return the created Object
      +         * @param table  a {@code UIDefaults} table
      +         * @return the created {@code Object}
                */
               public Object createValue(final UIDefaults table) {
                   // In order to pick up the security policy in effect at the
      @@ -1129,7 +1129,7 @@
                * looks the way the Reflection APIs expect.  This is done
                * by substituting primitive types for their Object counterparts,
                * and superclasses for subclasses used to add the
      -         * UIResource tag.
      +         * {@code UIResource} tag.
                */
               private Class[] getClassArray(Object[] args) {
                   Class[] types = null;
      @@ -1177,14 +1177,14 @@
       
       
           /**
      -     * LazyInputMap will create a InputMap
      -     * in its createValue
      +     * {@code LazyInputMap} will create a {@code InputMap}
      +     * in its {@code createValue}
            * method. The bindings are passed in the constructor.
            * The bindings are an array with
      -     * the even number entries being string KeyStrokes
      +     * the even number entries being string {@code KeyStrokes}
            * (eg "alt SPACE") and
            * the odd number entries being the value to use in the
      -     * InputMap (and the key in the ActionMap).
      +     * {@code InputMap} (and the key in the {@code ActionMap}).
            * @since 1.3
            */
           public static class LazyInputMap implements LazyValue {
      @@ -1200,11 +1200,11 @@
               }
       
               /**
      -         * Creates an InputMap with the bindings that are
      +         * Creates an {@code InputMap} with the bindings that are
                * passed in.
                *
      -         * @param table a UIDefaults table
      -         * @return the InputMap
      +         * @param table a {@code UIDefaults} table
      +         * @return the {@code InputMap}
                */
               public Object createValue(UIDefaults table) {
                   if (bindings != null) {
      @@ -1216,14 +1216,14 @@
           }
       
           /**
      -     * TextAndMnemonicHashMap stores swing resource strings. Many of strings
      +     * {@code TextAndMnemonicHashMap} stores swing resource strings. Many of strings
            * can have a mnemonic. For example:
            *   FileChooser.saveButton.textAndMnemonic=&Save
            * For this case method get returns "Save" for the key "FileChooser.saveButtonText" and
            * mnemonic "S" for the key "FileChooser.saveButtonMnemonic"
            *
            * There are several patterns for the text and mnemonic suffixes which are checked by the
      -     * TextAndMnemonicHashMap class.
      +     * {@code TextAndMnemonicHashMap} class.
            * Patterns which are converted to the xxx.textAndMnemonic key:
            * (xxxNameText, xxxNameMnemonic)
            * (xxxNameText, xxxMnemonic)
      --- old/src/java.desktop/share/classes/javax/swing/UIManager.java	2015-10-04 22:57:26.909261430 +0400
      +++ new/src/java.desktop/share/classes/javax/swing/UIManager.java	2015-10-04 22:57:26.717261439 +0400
      @@ -98,15 +98,15 @@
        * The class used for the default look and feel is chosen in the following
        * manner:
        * 
        - *
      1. If the system property swing.defaultlaf is + *
      2. If the system property {@code swing.defaultlaf} is * {@code non-null}, use its value as the default look and feel class * name. - *
      3. If the {@link java.util.Properties} file swing.properties - * exists and contains the key swing.defaultlaf, + *
      4. If the {@link java.util.Properties} file {@code swing.properties} + * exists and contains the key {@code swing.defaultlaf}, * use its value as the default look and feel class name. The location - * that is checked for swing.properties may vary depending + * that is checked for {@code swing.properties} may vary depending * upon the implementation of the Java platform. Typically the - * swing.properties file is located in the conf + * {@code swing.properties} file is located in the {@code conf} * subdirectory of the Java installation directory. * Refer to the release notes of the implementation being used for * further details. @@ -168,7 +168,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. * * @author Thomas Ball @@ -179,13 +179,13 @@ public class UIManager implements Serializable { /** - * This class defines the state managed by the UIManager. For + * This class defines the state managed by the {@code UIManager}. For * Swing applications the fields in this class could just as well - * be static members of UIManager however we give them + * be static members of {@code UIManager} however we give them * "AppContext" * scope instead so that applets (and potentially multiple lightweight * applications running in a single VM) have their own state. For example, - * an applet can alter its look and feel, see setLookAndFeel. + * an applet can alter its look and feel, see {@code setLookAndFeel}. * Doing so has no affect on other applets (or the browser). */ private static class LAFState @@ -211,9 +211,9 @@ /** * Returns the SwingPropertyChangeSupport for the current - * AppContext. If create is a true, a non-null - * SwingPropertyChangeSupport will be returned, if - * create is false and this has not been invoked + * AppContext. If {@code create} is a true, a non-null + * {@code SwingPropertyChangeSupport} will be returned, if + * {@code create} is false and this has not been invoked * with true, null will be returned. */ public synchronized SwingPropertyChangeSupport @@ -234,8 +234,8 @@ private static final Object classLock = new Object(); /** - * Return the LAFState object, lazily create one if necessary. - * All access to the LAFState fields is done via this method, + * Return the {@code LAFState} object, lazily create one if necessary. + * All access to the {@code LAFState} fields is done via this method, * for example: *
              *     getLAFState().initialized = true;
        @@ -259,7 +259,7 @@
             }
         
         
        -    /* Keys used in the swing.properties properties file.
        +    /* Keys used in the {@code swing.properties} properties file.
              * See loadUserProperties(), initialize().
              */
         
        @@ -270,7 +270,7 @@
             private static final String disableMnemonicKey = "swing.disablenavaids";
         
             /**
        -     * Return a swing.properties file key for the attribute of specified
        +     * Return a {@code swing.properties} file key for the attribute of specified
              * look and feel.  The attr is either "name" or "class", a typical
              * key would be: "swing.installedlaf.windows.name"
              */
        @@ -279,11 +279,11 @@
             }
         
             /**
        -     * The location of the swing.properties property file is
        +     * The location of the {@code swing.properties} property file is
              * implementation-specific.
        -     * It is typically located in the conf subdirectory of the Java
        +     * It is typically located in the {@code conf} subdirectory of the Java
              * installation directory. This method returns a bogus filename
        -     * if java.home isn't defined.
        +     * if {@code java.home} isn't defined.
              */
             private static String makeSwingPropertiesFilename() {
                 String sep = File.separator;
        @@ -299,7 +299,7 @@
         
             /**
              * Provides a little information about an installed
        -     * LookAndFeel for the sake of configuring a menu or
        +     * {@code LookAndFeel} for the sake of configuring a menu or
              * for initial application set up.
              *
              * @see UIManager#getInstalledLookAndFeels
        @@ -310,12 +310,12 @@
                 private String className;
         
                 /**
        -         * Constructs a UIManagers
        -         * LookAndFeelInfo object.
        +         * Constructs a {@code UIManager}s
        +         * {@code LookAndFeelInfo} object.
                  *
        -         * @param name      a String specifying the name of
        +         * @param name      a {@code String} specifying the name of
                  *                      the look and feel
        -         * @param className a String specifying the name of
        +         * @param className a {@code String} specifying the name of
                  *                      the class that implements the look and feel
                  */
                 public LookAndFeelInfo(String name, String className) {
        @@ -326,7 +326,7 @@
                 /**
                  * Returns the name of the look and feel in a form suitable
                  * for a menu or other presentation
        -         * @return a String containing the name
        +         * @return a {@code String} containing the name
                  * @see LookAndFeel#getName
                  */
                 public String getName() {
        @@ -336,7 +336,7 @@
                 /**
                  * Returns the name of the class that implements this look and feel.
                  * @return the name of the class that implements this
        -         *              LookAndFeel
        +         *              {@code LookAndFeel}
                  * @see LookAndFeel
                  */
                 public String getClassName() {
        @@ -347,7 +347,7 @@
                  * Returns a string that displays and identifies this
                  * object's properties.
                  *
        -         * @return a String representation of this object
        +         * @return a {@code String} representation of this object
                  */
                 public String toString() {
                     return getClass().getName() + "[" + getName() + " " + getClassName() + "]";
        @@ -356,8 +356,8 @@
         
         
             /**
        -     * The default value of installedLAFS is used when no
        -     * swing.properties
        +     * The default value of {@code installedLAFS} is used when no
        +     * {@code swing.properties}
              * file is available or if the file doesn't contain a "swing.installedlafs"
              * property.
              *
        @@ -400,7 +400,7 @@
             /**
              * Returns an array of {@code LookAndFeelInfo}s representing the
              * {@code LookAndFeel} implementations currently available. The
        -     * LookAndFeelInfo objects can be used by an
        +     * {@code LookAndFeelInfo} objects can be used by an
              * application to construct a menu of look and feel options for
              * the user, or to determine which look and feel to set at startup
              * time. To avoid the penalty of creating numerous {@code
        @@ -414,7 +414,7 @@
              *   UIManager.setLookAndFeel(info.getClassName());
              * 
        * - * @return an array of LookAndFeelInfo objects + * @return an array of {@code LookAndFeelInfo} objects * @see #setLookAndFeel */ public static LookAndFeelInfo[] getInstalledLookAndFeels() { @@ -435,7 +435,7 @@ * {@code non-null}, it is strongly recommended that only {@code non-null} * values are supplied in the {@code infos} array. * - * @param infos set of LookAndFeelInfo objects specifying + * @param infos set of {@code LookAndFeelInfo} objects specifying * the available look and feels * * @see #getInstalledLookAndFeels @@ -453,10 +453,10 @@ /** * Adds the specified look and feel to the set of available look - * and feels. While this method allows a {@code null} {@code info}, + * and feels. While this method allows a {@code null info}, * it is strongly recommended that a {@code non-null} value be used. * - * @param info a LookAndFeelInfo object that names the + * @param info a {@code LookAndFeelInfo} object that names the * look and feel and identifies the class that implements it * @see #setInstalledLookAndFeels */ @@ -485,9 +485,9 @@ /** - * Returns the current look and feel or null. + * Returns the current look and feel or {@code null}. * - * @return current look and feel, or null + * @return current look and feel, or {@code null} * @see #setLookAndFeel */ public static LookAndFeel getLookAndFeel() { @@ -498,7 +498,7 @@ /** * Sets the current look and feel to {@code newLookAndFeel}. - * If the current look and feel is {@code non-null} {@code + * If the current look and feel is {@code non-null * uninitialize} is invoked on it. If {@code newLookAndFeel} is * {@code non-null}, {@code initialize} is invoked on it followed * by {@code getDefaults}. The defaults returned from {@code @@ -560,13 +560,13 @@ * * @param className a string specifying the name of the class that implements * the look and feel - * @exception ClassNotFoundException if the LookAndFeel + * @exception ClassNotFoundException if the {@code LookAndFeel} * class could not be found * @exception InstantiationException if a new instance of the class * couldn't be created * @exception IllegalAccessException if the class or initializer isn't accessible * @exception UnsupportedLookAndFeelException if - * lnf.isSupportedLookAndFeel() is false + * {@code lnf.isSupportedLookAndFeel()} is false * @throws ClassCastException if {@code className} does not identify * a class that extends {@code LookAndFeel} */ @@ -587,13 +587,13 @@ } /** - * Returns the name of the LookAndFeel class that implements + * Returns the name of the {@code LookAndFeel} class that implements * the native system look and feel if there is one, otherwise - * the name of the default cross platform LookAndFeel + * the name of the default cross platform {@code LookAndFeel} * class. This value can be overriden by setting the - * swing.systemlaf system property. + * {@code swing.systemlaf} system property. * - * @return the String of the LookAndFeel + * @return the {@code String} of the {@code LookAndFeel} * class * * @see #setLookAndFeel @@ -632,10 +632,10 @@ /** - * Returns the name of the LookAndFeel class that implements + * Returns the name of the {@code LookAndFeel} class that implements * the default cross platform look and feel -- the Java * Look and Feel (JLF). This value can be overriden by setting the - * swing.crossplatformlaf system property. + * {@code swing.crossplatformlaf} system property. * * @return a string with the JLF implementation-class * @see #setLookAndFeel @@ -655,7 +655,7 @@ * Returns the defaults. The returned defaults resolve using the * logic specified in the class documentation. * - * @return a UIDefaults object containing the default values + * @return a {@code UIDefaults} object containing the default values */ public static UIDefaults getDefaults() { maybeInitialize(); @@ -666,8 +666,8 @@ * Returns a font from the defaults. If the value for {@code key} is * not a {@code Font}, {@code null} is returned. * - * @param key an Object specifying the font - * @return the Font object + * @param key an {@code Object} specifying the font + * @return the {@code Font} object * @throws NullPointerException if {@code key} is {@code null} */ public static Font getFont(Object key) { @@ -679,11 +679,11 @@ * for the given locale. If the value for {@code key} is * not a {@code Font}, {@code null} is returned. * - * @param key an Object specifying the font - * @param l the Locale for which the font is desired; refer + * @param key an {@code Object} specifying the font + * @param l the {@code Locale} for which the font is desired; refer * to {@code UIDefaults} for details on how a {@code null} * {@code Locale} is handled - * @return the Font object + * @return the {@code Font} object * @throws NullPointerException if {@code key} is {@code null} * @since 1.4 */ @@ -695,8 +695,8 @@ * Returns a color from the defaults. If the value for {@code key} is * not a {@code Color}, {@code null} is returned. * - * @param key an Object specifying the color - * @return the Color object + * @param key an {@code Object} specifying the color + * @return the {@code Color} object * @throws NullPointerException if {@code key} is {@code null} */ public static Color getColor(Object key) { @@ -708,11 +708,11 @@ * for the given locale. If the value for {@code key} is * not a {@code Color}, {@code null} is returned. * - * @param key an Object specifying the color - * @param l the Locale for which the color is desired; refer + * @param key an {@code Object} specifying the color + * @param l the {@code Locale} for which the color is desired; refer * to {@code UIDefaults} for details on how a {@code null} * {@code Locale} is handled - * @return the Color object + * @return the {@code Color} object * @throws NullPointerException if {@code key} is {@code null} * @since 1.4 */ @@ -721,11 +721,11 @@ } /** - * Returns an Icon from the defaults. If the value for + * Returns an {@code Icon} from the defaults. If the value for * {@code key} is not an {@code Icon}, {@code null} is returned. * - * @param key an Object specifying the icon - * @return the Icon object + * @param key an {@code Object} specifying the icon + * @return the {@code Icon} object * @throws NullPointerException if {@code key} is {@code null} */ public static Icon getIcon(Object key) { @@ -733,15 +733,15 @@ } /** - * Returns an Icon from the defaults that is appropriate + * Returns an {@code Icon} from the defaults that is appropriate * for the given locale. If the value for * {@code key} is not an {@code Icon}, {@code null} is returned. * - * @param key an Object specifying the icon - * @param l the Locale for which the icon is desired; refer + * @param key an {@code Object} specifying the icon + * @param l the {@code Locale} for which the icon is desired; refer * to {@code UIDefaults} for details on how a {@code null} * {@code Locale} is handled - * @return the Icon object + * @return the {@code Icon} object * @throws NullPointerException if {@code key} is {@code null} * @since 1.4 */ @@ -753,8 +753,8 @@ * Returns a border from the defaults. If the value for * {@code key} is not a {@code Border}, {@code null} is returned. * - * @param key an Object specifying the border - * @return the Border object + * @param key an {@code Object} specifying the border + * @return the {@code Border} object * @throws NullPointerException if {@code key} is {@code null} */ public static Border getBorder(Object key) { @@ -766,11 +766,11 @@ * for the given locale. If the value for * {@code key} is not a {@code Border}, {@code null} is returned. * - * @param key an Object specifying the border - * @param l the Locale for which the border is desired; refer + * @param key an {@code Object} specifying the border + * @param l the {@code Locale} for which the border is desired; refer * to {@code UIDefaults} for details on how a {@code null} * {@code Locale} is handled - * @return the Border object + * @return the {@code Border} object * @throws NullPointerException if {@code key} is {@code null} * @since 1.4 */ @@ -782,8 +782,8 @@ * Returns a string from the defaults. If the value for * {@code key} is not a {@code String}, {@code null} is returned. * - * @param key an Object specifying the string - * @return the String + * @param key an {@code Object} specifying the string + * @return the {@code String} * @throws NullPointerException if {@code key} is {@code null} */ public static String getString(Object key) { @@ -795,11 +795,11 @@ * given locale. If the value for * {@code key} is not a {@code String}, {@code null} is returned. * - * @param key an Object specifying the string - * @param l the Locale for which the string is desired; refer + * @param key an {@code Object} specifying the string + * @param l the {@code Locale} for which the string is desired; refer * to {@code UIDefaults} for details on how a {@code null} * {@code Locale} is handled - * @return the String + * @return the {@code String} * @since 1.4 * @throws NullPointerException if {@code key} is {@code null} */ @@ -812,11 +812,11 @@ * given locale. If the value for * {@code key} is not a {@code String}, {@code null} is returned. * - * @param key an Object specifying the string + * @param key an {@code Object} specifying the string * @param c {@code Component} used to determine the locale; * {@code null} implies the default locale as * returned by {@code Locale.getDefault()} - * @return the String + * @return the {@code String} * @throws NullPointerException if {@code key} is {@code null} */ static String getString(Object key, Component c) { @@ -829,7 +829,7 @@ * {@code key} is not an {@code Integer}, or does not exist, * {@code 0} is returned. * - * @param key an Object specifying the int + * @param key an {@code Object} specifying the int * @return the int * @throws NullPointerException if {@code key} is {@code null} */ @@ -843,8 +843,8 @@ * {@code key} is not an {@code Integer}, or does not exist, * {@code 0} is returned. * - * @param key an Object specifying the int - * @param l the Locale for which the int is desired; refer + * @param key an {@code Object} specifying the int + * @param l the {@code Locale} for which the int is desired; refer * to {@code UIDefaults} for details on how a {@code null} * {@code Locale} is handled * @return the int @@ -860,7 +860,7 @@ * the key value. If the key is not found or the key doesn't represent * a boolean value then {@code false} is returned. * - * @param key an Object specifying the key for the desired boolean value + * @param key an {@code Object} specifying the key for the desired boolean value * @return the boolean value corresponding to the key * @throws NullPointerException if {@code key} is {@code null} * @since 1.4 @@ -871,13 +871,13 @@ /** * Returns a boolean from the defaults which is associated with - * the key value and the given Locale. If the key is not + * the key value and the given {@code Locale}. If the key is not * found or the key doesn't represent * a boolean value then {@code false} will be returned. * - * @param key an Object specifying the key for the desired + * @param key an {@code Object} specifying the key for the desired * boolean value - * @param l the Locale for which the boolean is desired; refer + * @param l the {@code Locale} for which the boolean is desired; refer * to {@code UIDefaults} for details on how a {@code null} * {@code Locale} is handled * @return the boolean value corresponding to the key @@ -889,11 +889,11 @@ } /** - * Returns an Insets object from the defaults. If the value + * Returns an {@code Insets} object from the defaults. If the value * for {@code key} is not an {@code Insets}, {@code null} is returned. * - * @param key an Object specifying the Insets object - * @return the Insets object + * @param key an {@code Object} specifying the {@code Insets} object + * @return the {@code Insets} object * @throws NullPointerException if {@code key} is {@code null} */ public static Insets getInsets(Object key) { @@ -901,15 +901,15 @@ } /** - * Returns an Insets object from the defaults that is + * Returns an {@code Insets} object from the defaults that is * appropriate for the given locale. If the value * for {@code key} is not an {@code Insets}, {@code null} is returned. * - * @param key an Object specifying the Insets object - * @param l the Locale for which the object is desired; refer + * @param key an {@code Object} specifying the {@code Insets} object + * @param l the {@code Locale} for which the object is desired; refer * to {@code UIDefaults} for details on how a {@code null} * {@code Locale} is handled - * @return the Insets object + * @return the {@code Insets} object * @throws NullPointerException if {@code key} is {@code null} * @since 1.4 */ @@ -921,8 +921,8 @@ * Returns a dimension from the defaults. If the value * for {@code key} is not a {@code Dimension}, {@code null} is returned. * - * @param key an Object specifying the dimension object - * @return the Dimension object + * @param key an {@code Object} specifying the dimension object + * @return the {@code Dimension} object * @throws NullPointerException if {@code key} is {@code null} */ public static Dimension getDimension(Object key) { @@ -934,11 +934,11 @@ * for the given locale. If the value * for {@code key} is not a {@code Dimension}, {@code null} is returned. * - * @param key an Object specifying the dimension object - * @param l the Locale for which the object is desired; refer + * @param key an {@code Object} specifying the dimension object + * @param l the {@code Locale} for which the object is desired; refer * to {@code UIDefaults} for details on how a {@code null} * {@code Locale} is handled - * @return the Dimension object + * @return the {@code Dimension} object * @throws NullPointerException if {@code key} is {@code null} * @since 1.4 */ @@ -949,8 +949,8 @@ /** * Returns an object from the defaults. * - * @param key an Object specifying the desired object - * @return the Object + * @param key an {@code Object} specifying the desired object + * @return the {@code Object} * @throws NullPointerException if {@code key} is {@code null} */ public static Object get(Object key) { @@ -961,11 +961,11 @@ * Returns an object from the defaults that is appropriate for * the given locale. * - * @param key an Object specifying the desired object - * @param l the Locale for which the object is desired; refer + * @param key an {@code Object} specifying the desired object + * @param l the {@code Locale} for which the object is desired; refer * to {@code UIDefaults} for details on how a {@code null} * {@code Locale} is handled - * @return the Object + * @return the {@code Object} * @throws NullPointerException if {@code key} is {@code null} * @since 1.4 */ @@ -978,11 +978,11 @@ * for {@code getDefaults().put(key, value)}. This only effects the * developer defaults, not the system or look and feel defaults. * - * @param key an Object specifying the retrieval key - * @param value the Object to store; refer to + * @param key an {@code Object} specifying the retrieval key + * @param value the {@code Object} to store; refer to * {@code UIDefaults} for details on how {@code null} is * handled - * @return the Object returned by {@link UIDefaults#put} + * @return the {@code Object} returned by {@link UIDefaults#put} * @throws NullPointerException if {@code key} is {@code null} * @see UIDefaults#put */ @@ -998,9 +998,9 @@ * {@code getUI(target)} on the multiplexing look and feel's * defaults, and returns that value if it is {@code non-null}. * - * @param target the JComponent to return the + * @param target the {@code JComponent} to return the * {@code ComponentUI} for - * @return the ComponentUI object for {@code target} + * @return the {@code ComponentUI} object for {@code target} * @throws NullPointerException if {@code target} is {@code null} * @see UIDefaults#getUI */ @@ -1030,7 +1030,7 @@ * certain values to exist, altering the {@code UIDefaults} returned * from this method could have unexpected results. * - * @return UIDefaults from the current look and feel + * @return {@code UIDefaults} from the current look and feel * @see #getDefaults * @see #setLookAndFeel(LookAndFeel) * @see LookAndFeel#getDefaults @@ -1041,7 +1041,7 @@ } /** - * Finds the Multiplexing LookAndFeel. + * Finds the Multiplexing {@code LookAndFeel}. */ private static LookAndFeel getMultiLookAndFeel() { LookAndFeel multiLookAndFeel = getLAFState().multiLookAndFeel; @@ -1059,16 +1059,16 @@ } /** - * Adds a LookAndFeel to the list of auxiliary look and feels. + * Adds a {@code LookAndFeel} to the list of auxiliary look and feels. * The auxiliary look and feels tell the multiplexing look and feel what - * other LookAndFeel classes for a component instance are to be used - * in addition to the default LookAndFeel class when creating a + * other {@code LookAndFeel} classes for a component instance are to be used + * in addition to the default {@code LookAndFeel} class when creating a * multiplexing UI. The change will only take effect when a new * UI class is created or when the default look and feel is changed * on a component instance. *

        Note these are not the same as the installed look and feels. * - * @param laf the LookAndFeel object + * @param laf the {@code LookAndFeel} object * @see #removeAuxiliaryLookAndFeel * @see #setLookAndFeel * @see #getAuxiliaryLookAndFeels @@ -1099,17 +1099,17 @@ } /** - * Removes a LookAndFeel from the list of auxiliary look and feels. + * Removes a {@code LookAndFeel} from the list of auxiliary look and feels. * The auxiliary look and feels tell the multiplexing look and feel what - * other LookAndFeel classes for a component instance are to be used - * in addition to the default LookAndFeel class when creating a + * other {@code LookAndFeel} classes for a component instance are to be used + * in addition to the default {@code LookAndFeel} class when creating a * multiplexing UI. The change will only take effect when a new * UI class is created or when the default look and feel is changed * on a component instance. *

        Note these are not the same as the installed look and feels. * * @param laf the {@code LookAndFeel} to be removed - * @return true if the LookAndFeel was removed from the list + * @return true if the {@code LookAndFeel} was removed from the list * @see #removeAuxiliaryLookAndFeel * @see #getAuxiliaryLookAndFeels * @see #setLookAndFeel @@ -1140,14 +1140,14 @@ } /** - * Returns the list of auxiliary look and feels (can be null). + * Returns the list of auxiliary look and feels (can be {@code null}). * The auxiliary look and feels tell the multiplexing look and feel what - * other LookAndFeel classes for a component instance are + * other {@code LookAndFeel} classes for a component instance are * to be used in addition to the default LookAndFeel class when creating a * multiplexing UI. *

        Note these are not the same as the installed look and feels. * - * @return list of auxiliary LookAndFeels or null + * @return list of auxiliary {@code LookAndFeel}s or {@code null} * @see #addAuxiliaryLookAndFeel * @see #removeAuxiliaryLookAndFeel * @see #setLookAndFeel @@ -1171,10 +1171,10 @@ /** - * Adds a PropertyChangeListener to the listener list. + * Adds a {@code PropertyChangeListener} to the listener list. * The listener is registered for all properties. * - * @param listener the PropertyChangeListener to be added + * @param listener the {@code PropertyChangeListener} to be added * @see java.beans.PropertyChangeSupport */ public static void addPropertyChangeListener(PropertyChangeListener listener) @@ -1187,11 +1187,11 @@ /** - * Removes a PropertyChangeListener from the listener list. - * This removes a PropertyChangeListener that was registered + * Removes a {@code PropertyChangeListener} from the listener list. + * This removes a {@code PropertyChangeListener} that was registered * for all properties. * - * @param listener the PropertyChangeListener to be removed + * @param listener the {@code PropertyChangeListener} to be removed * @see java.beans.PropertyChangeSupport */ public static void removePropertyChangeListener(PropertyChangeListener listener) @@ -1204,10 +1204,10 @@ /** - * Returns an array of all the PropertyChangeListeners added + * Returns an array of all the {@code PropertyChangeListener}s added * to this UIManager with addPropertyChangeListener(). * - * @return all of the PropertyChangeListeners added or an empty + * @return all of the {@code PropertyChangeListener}s added or an empty * array if no listeners have been added * @since 1.4 */ @@ -1278,9 +1278,9 @@ /** - * If a swing.properties file exist and it has a - * swing.installedlafs property - * then initialize the installedLAFs field. + * If a {@code swing.properties} file exist and it has a + * {@code swing.installedlafs} property + * then initialize the {@code installedLAFs} field. * * @see #getInstalledLookAndFeels */ @@ -1419,7 +1419,7 @@ /* * This method is called before any code that depends on the - * AppContext specific LAFState object runs. When the AppContext + * {@code AppContext} specific LAFState object runs. When the AppContext * corresponds to a set of applets it's possible for this method * to be re-entered, which is why we grab a lock before calling * initialize(). --- old/src/java.desktop/share/classes/javax/swing/UnsupportedLookAndFeelException.java 2015-10-04 22:57:27.469261405 +0400 +++ new/src/java.desktop/share/classes/javax/swing/UnsupportedLookAndFeelException.java 2015-10-04 22:57:27.277261414 +0400 @@ -34,7 +34,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. * * @author unattributed --- old/src/java.desktop/share/classes/javax/swing/ViewportLayout.java 2015-10-04 22:57:27.989261382 +0400 +++ new/src/java.desktop/share/classes/javax/swing/ViewportLayout.java 2015-10-04 22:57:27.801261390 +0400 @@ -36,8 +36,8 @@ import java.io.Serializable; /** - * The default layout manager for JViewport. - * ViewportLayout defines + * The default layout manager for {@code JViewport}. + * {@code ViewportLayout} defines * a policy for layout that should be useful for most applications. * The viewport makes its view the same size as the viewport, * however it will not make the view smaller than its minimum size. @@ -51,7 +51,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. * * @author Hans Muller @@ -82,7 +82,7 @@ * Returns the preferred dimensions for this layout given the components * in the specified target container. * @param parent the component which needs to be laid out - * @return a Dimension object containing the + * @return a {@code Dimension} object containing the * preferred dimensions * @see #minimumLayoutSize */ @@ -105,7 +105,7 @@ * contained in the specified target container. * * @param parent the component which needs to be laid out - * @return a Dimension object containing the minimum + * @return a {@code Dimension} object containing the minimum * dimensions * @see #preferredLayoutSize */ @@ -120,7 +120,7 @@ * @param parent the container to lay out * * @throws AWTError if the target isn't the container specified to the - * BoxLayout constructor + * {@code BoxLayout} constructor */ public void layoutContainer(Container parent) { --- old/src/java.desktop/share/classes/javax/swing/WindowConstants.java 2015-10-04 22:57:28.513261358 +0400 +++ new/src/java.desktop/share/classes/javax/swing/WindowConstants.java 2015-10-04 22:57:28.321261367 +0400 @@ -28,11 +28,11 @@ /** * Constants used to control the window-closing operation. - * The setDefaultCloseOperation and - * getDefaultCloseOperation methods - * provided by JFrame, - * JInternalFrame, and - * JDialog + * The {@code setDefaultCloseOperation} and + * {@code getDefaultCloseOperation} methods + * provided by {@code JFrame}, + * {@code JInternalFrame}, and + * {@code JDialog} * use these constants. * For examples of setting the default window-closing operation, see * JFrame, may throw a SecurityException based - * on the SecurityManager. + * {@code JFrame}, may throw a {@code SecurityException} based + * on the {@code SecurityManager}. * It is recommended you only use this in an application. * * @since 1.4 --- old/src/java.desktop/share/classes/javax/swing/border/AbstractBorder.java 2015-10-04 22:57:29.045261334 +0400 +++ new/src/java.desktop/share/classes/javax/swing/border/AbstractBorder.java 2015-10-04 22:57:28.849261343 +0400 @@ -41,7 +41,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. * * @author David Kloba @@ -79,7 +79,7 @@ * Reinitializes the insets parameter with this Border's current Insets. * @param c the component for which this border insets value applies * @param insets the object to be reinitialized - * @return the insets object + * @return the {@code insets} object */ public Insets getBorderInsets(Component c, Insets insets) { insets.left = insets.top = insets.right = insets.bottom = 0; @@ -99,7 +99,7 @@ * @param y the y position of the border * @param width the width of the border * @param height the height of the border - * @return a Rectangle containing the interior coordinates + * @return a {@code Rectangle} containing the interior coordinates */ public Rectangle getInteriorRectangle(Component c, int x, int y, int width, int height) { return getInteriorRectangle(c, this, x, y, width, height); @@ -110,12 +110,12 @@ * insets of the border. This is useful for determining the area * that components should draw in that will not intersect the border. * @param c the component for which this border is being computed - * @param b the Border object + * @param b the {@code Border} object * @param x the x position of the border * @param y the y position of the border * @param width the width of the border * @param height the height of the border - * @return a Rectangle containing the interior coordinates + * @return a {@code Rectangle} containing the interior coordinates */ public static Rectangle getInteriorRectangle(Component c, Border b, int x, int y, int width, int height) { Insets insets; @@ -136,10 +136,10 @@ * The default implementation returns -1. Subclasses that support * baseline should override appropriately. If a value >= 0 is * returned, then the component has a valid baseline for any - * size >= the minimum size and getBaselineResizeBehavior + * size >= the minimum size and {@code getBaselineResizeBehavior} * can be used to determine how the baseline changes with size. * - * @param c Component baseline is being requested for + * @param c {@code Component} baseline is being requested for * @param width the width to get the baseline for * @param height the height to get the baseline for * @return the baseline or < 0 indicating there is no reasonable @@ -163,17 +163,17 @@ * layout managers and GUI builders. *

        * The default implementation returns - * BaselineResizeBehavior.OTHER, subclasses that support + * {@code BaselineResizeBehavior.OTHER}, subclasses that support * baseline should override appropriately. Subclasses should - * never return null; if the baseline can not be - * calculated return BaselineResizeBehavior.OTHER. Callers + * never return {@code null}; if the baseline can not be + * calculated return {@code BaselineResizeBehavior.OTHER}. Callers * should first ask for the baseline using - * getBaseline and if a value >= 0 is returned use + * {@code getBaseline} and if a value >= 0 is returned use * this method. It is acceptable for this method to return a - * value other than BaselineResizeBehavior.OTHER even if - * getBaseline returns a value less than 0. + * value other than {@code BaselineResizeBehavior.OTHER} even if + * {@code getBaseline} returns a value less than 0. * - * @param c Component to return baseline resize behavior for + * @param c {@code Component} to return baseline resize behavior for * @return an enum indicating how the baseline changes as the border is * resized * @see java.awt.Component#getBaseline(int,int) --- old/src/java.desktop/share/classes/javax/swing/border/BevelBorder.java 2015-10-04 22:57:29.569261311 +0400 +++ new/src/java.desktop/share/classes/javax/swing/border/BevelBorder.java 2015-10-04 22:57:29.381261319 +0400 @@ -39,7 +39,7 @@ * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ - * has been added to the java.beans package. + * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. * * @author David Kloba --- old/src/java.desktop/share/classes/javax/swing/border/Border.java 2015-10-04 22:57:30.121261286 +0400 +++ new/src/java.desktop/share/classes/javax/swing/border/Border.java 2015-10-04 22:57:29.905261295 +0400 @@ -43,7 +43,7 @@ * Usage Notes: *