Index: common/java/awt/Font.java =================================================================== --- common/java/awt/Font.java (revision 448875) +++ common/java/awt/Font.java (working copy) @@ -692,28 +692,16 @@ public Rectangle2D getStringBounds(String str, int start, int end, FontRenderContext frc) { - if (start < 0) { - throw new IndexOutOfBoundsException("Wrong start index: " + start); - } - if ( end > str.length()) { - throw new IndexOutOfBoundsException("Wrong finish index: " + end); - } - if (start > end) { - throw new IndexOutOfBoundsException("Wrong range length: " + - (end-start)); - } return this.getStringBounds((str.substring(start, end)), frc); } public Rectangle2D getStringBounds(char[] chars, int start, int end, FontRenderContext frc) { - int finish = chars.length; - if (start < 0) { throw new IndexOutOfBoundsException("Wrong start index: " + start); } - if ( end > finish) { + if ( end > chars.length) { throw new IndexOutOfBoundsException("Wrong finish index: " + end); } if (start > end) {