# HG changeset patch # User rupashka # Date 1267269964 -10800 # Node ID 782d808b538ff0e6789ec330a86b63cf0c8d7356 # Parent 99ac74ca2f2f360f24c9d2555f5061a7c30b9ae3 6913758: Specification for SynthViewportUI.paintBorder(...) should mention that this method is never called Reviewed-by: peterz diff -r 99ac74ca2f2f -r 782d808b538f jdk/src/share/classes/javax/swing/plaf/synth/SynthViewportUI.java --- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthViewportUI.java Thu Feb 18 17:46:40 2010 +0300 +++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthViewportUI.java Sat Feb 27 14:26:04 2010 +0300 @@ -173,13 +173,20 @@ } /** - * @inheritDoc + * Paints the border. The method is never called, + * because the {@code JViewport} class does not support a border. + * This implementation does nothing. + * + * @param context a component context + * @param g the {@code Graphics} to paint on + * @param x the X coordinate + * @param y the Y coordinate + * @param w width of the border + * @param h height of the border */ @Override public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h) { - // This does nothing on purpose, JViewport doesn't allow a border - // and therefor this will NEVER be called. } /**