8175066: Compilation error due to tag in JDK-8162959
Reviewed-by: aghaisas, psadhukhan
--- 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