changeset 16826:88cb99cf7c28

8175066: Compilation error due to tag in JDK-8162959 Reviewed-by: aghaisas, psadhukhan
author pkbalakr
date Thu, 16 Feb 2017 16:30:43 +0530
parents c89cba3ceeec
children 094ebbe85b36
files src/java.desktop/share/classes/java/awt/Robot.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/share/classes/java/awt/Robot.java	Wed Feb 15 23:43:50 2017 -0800
+++ b/src/java.desktop/share/classes/java/awt/Robot.java	Thu Feb 16 16:30:43 2017 +0530
@@ -440,7 +440,7 @@
      * </ul>
      * <p>
      * Example:
-     * <pre>
+     * <pre>{@code
      *      Image nativeResImage;
      *      MultiResolutionImage mrImage = robot.createMultiResolutionScreenCapture(frame.getBounds());
      *      List<Image> resolutionVariants = mrImage.getResolutionVariants();
@@ -448,7 +448,8 @@
      *          nativeResImage = resolutionVariants.get(1);
      *      } else {
      *          nativeResImage = resolutionVariants.get(0);
-     *      } </pre>
+     *      }
+     * }</pre>
      * @param   screenRect     Rect to capture in screen coordinates
      * @return  The captured image
      * @throws  IllegalArgumentException if {@code screenRect} width and height are not greater than zero