--- old/src/java.desktop/share/classes/java/awt/font/LineBreakMeasurer.java 2018-01-08 12:01:57.404832000 +0530 +++ new/src/java.desktop/share/classes/java/awt/font/LineBreakMeasurer.java 2018-01-08 12:01:56.948832000 +0530 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -487,6 +487,8 @@ * @param newParagraph the text after the insertion * @param insertPos the position in the text at which the character * is inserted + * @throws IllegalArgumentException if multiple characters are inserted + * in the text represented by {@code newParagraph} * @throws IndexOutOfBoundsException if {@code insertPos} is less * than the start of {@code newParagraph} or greater than * or equal to the end of {@code newParagraph} @@ -513,6 +515,8 @@ * @param newParagraph the text after the deletion * @param deletePos the position in the text at which the character * is deleted + * @throws IllegalArgumentException if multiple characters are deleted from + * the text represented by {@code newParagraph} * @throws IndexOutOfBoundsException if {@code deletePos} is * less than the start of {@code newParagraph} or greater * than the end of {@code newParagraph}