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

changeset 1529
950d8195a5a4
parent 1409
33abf479f202
child 1679
b402b93cbe38
     1.1 --- a/src/share/classes/com/sun/tools/javac/parser/JavadocTokenizer.java	Sun Jan 27 19:38:44 2013 +0000
     1.2 +++ b/src/share/classes/com/sun/tools/javac/parser/JavadocTokenizer.java	Wed Jan 30 09:40:54 2013 -0800
     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