8175066: Compilation error due to tag in JDK-8162959
authorpkbalakr
Thu, 16 Feb 2017 16:30:43 +0530
changeset 44134 0821d790675b
parent 44133 9f5e29c3c4b4
child 44135 84ca73957ced
8175066: Compilation error due to tag in JDK-8162959 Reviewed-by: aghaisas, psadhukhan
jdk/src/java.desktop/share/classes/java/awt/Robot.java
--- a/jdk/src/java.desktop/share/classes/java/awt/Robot.java	Wed Feb 15 23:43:50 2017 -0800
+++ b/jdk/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