提交 335f51e9 编写于 作者: D darcy

8020095: Fix doclint warnings in java.util.regex

Reviewed-by: mchung
上级 4d81c909
/* /*
* Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -77,7 +77,7 @@ public interface MatchResult { ...@@ -77,7 +77,7 @@ public interface MatchResult {
public int start(int group); public int start(int group);
/** /**
* Returns the offset after the last character matched. </p> * Returns the offset after the last character matched.
* *
* @return The offset after the last character matched * @return The offset after the last character matched
* *
......
/* /*
* Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -28,8 +28,8 @@ package java.util.regex; ...@@ -28,8 +28,8 @@ package java.util.regex;
import java.util.Objects; import java.util.Objects;
/** /**
* An engine that performs match operations on a {@link java.lang.CharSequence * An engine that performs match operations on a {@linkplain java.lang.CharSequence
* </code>character sequence<code>} by interpreting a {@link Pattern}. * character sequence} by interpreting a {@link Pattern}.
* *
* <p> A matcher is created from a pattern by invoking the pattern's {@link * <p> A matcher is created from a pattern by invoking the pattern's {@link
* Pattern#matcher matcher} method. Once created, a matcher can be used to * Pattern#matcher matcher} method. Once created, a matcher can be used to
...@@ -330,7 +330,7 @@ public final class Matcher implements MatchResult { ...@@ -330,7 +330,7 @@ public final class Matcher implements MatchResult {
} }
/** /**
* Returns the start index of the previous match. </p> * Returns the start index of the previous match.
* *
* @return The index of the first character matched * @return The index of the first character matched
* *
...@@ -402,7 +402,7 @@ public final class Matcher implements MatchResult { ...@@ -402,7 +402,7 @@ public final class Matcher implements MatchResult {
} }
/** /**
* Returns the offset after the last character matched. </p> * Returns the offset after the last character matched.
* *
* @return The offset after the last character matched * @return The offset after the last character matched
* *
...@@ -647,6 +647,7 @@ public final class Matcher implements MatchResult { ...@@ -647,6 +647,7 @@ public final class Matcher implements MatchResult {
* invocations of the {@link #find()} method will start at the first * invocations of the {@link #find()} method will start at the first
* character not matched by this match. </p> * character not matched by this match. </p>
* *
* @param start the index to start searching for a match
* @throws IndexOutOfBoundsException * @throws IndexOutOfBoundsException
* If start is less than zero or if start is greater than the * If start is less than zero or if start is greater than the
* length of the input sequence. * length of the input sequence.
...@@ -736,8 +737,8 @@ public final class Matcher implements MatchResult { ...@@ -736,8 +737,8 @@ public final class Matcher implements MatchResult {
* captured during the previous match: Each occurrence of * captured during the previous match: Each occurrence of
* <tt>${</tt><i>name</i><tt>}</tt> or <tt>$</tt><i>g</i> * <tt>${</tt><i>name</i><tt>}</tt> or <tt>$</tt><i>g</i>
* will be replaced by the result of evaluating the corresponding * will be replaced by the result of evaluating the corresponding
* {@link #group(String) group(name)} or {@link #group(int) group(g)</tt>} * {@link #group(String) group(name)} or {@link #group(int) group(g)}
* respectively. For <tt>$</tt><i>g</i><tt></tt>, * respectively. For <tt>$</tt><i>g</i>,
* the first number after the <tt>$</tt> is always treated as part of * the first number after the <tt>$</tt> is always treated as part of
* the group reference. Subsequent numbers are incorporated into g if * the group reference. Subsequent numbers are incorporated into g if
* they would form a legal group reference. Only the numerals '0' * they would form a legal group reference. Only the numerals '0'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册