src/share/classes/com/sun/tools/javac/parser/JavadocTokenizer.java

changeset 1571
af8417e590f4
parent 1529
950d8195a5a4
child 1679
b402b93cbe38
     1.1 --- a/src/share/classes/com/sun/tools/javac/parser/JavadocTokenizer.java	Mon Feb 04 18:08:53 2013 -0500
     1.2 +++ b/src/share/classes/com/sun/tools/javac/parser/JavadocTokenizer.java	Sun Feb 17 16:44:55 2013 -0500
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -236,7 +236,7 @@
    1.11              // relative to the best match found in the array.
    1.12              if (pos == Position.NOPOS)
    1.13                  return Position.NOPOS;
    1.14 -            if (pos < 0 || pos >= docComment.length())
    1.15 +            if (pos < 0 || pos > docComment.length())
    1.16                  throw new StringIndexOutOfBoundsException(String.valueOf(pos));
    1.17              if (docPosns == null)
    1.18                  return Position.NOPOS;

mercurial