[10] RFR 8185754 : Typo in java.util.regex.Pattern javadoc: no slash in \p class

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[10] RFR 8185754 : Typo in java.util.regex.Pattern javadoc: no slash in \p class

Ivan Gerasimov
Hello!

A couple of typos was spotted in the javadoc.

Would you please help review the fix?

diff --git a/src/java.base/share/classes/java/util/regex/Pattern.java
b/src/java.base/share/classes/java/util/regex/Pattern.java
--- a/src/java.base/share/classes/java/util/regex/Pattern.java
+++ b/src/java.base/share/classes/java/util/regex/Pattern.java
@@ -667,11 +667,11 @@
   * <tr><td>{@code \p{Alpha}}</td>
   *     <td>An alphabetic character:{@code \p{IsAlphabetic}}</td></tr>
   * <tr><td>{@code \p{Digit}}</td>
- *     <td>A decimal digit character:{@code p{IsDigit}}</td></tr>
+ *     <td>A decimal digit character:{@code \p{IsDigit}}</td></tr>
   * <tr><td>{@code \p{Alnum}}</td>
   *     <td>An alphanumeric character:{@code
[\p{IsAlphabetic}\p{IsDigit}]}</td></tr>
   * <tr><td>{@code \p{Punct}}</td>
- *     <td>A punctuation character:{@code p{IsPunctuation}}</td></tr>
+ *     <td>A punctuation character:{@code \p{IsPunctuation}}</td></tr>
   * <tr><td>{@code \p{Graph}}</td>
   *     <td>A visible character: {@code
[^\p{IsWhite_Space}\p{gc=Cc}\p{gc=Cs}\p{gc=Cn}]}</td></tr>
   * <tr><td>{@code \p{Print}}</td>


--
With kind regards,
Ivan Gerasimov

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [10] RFR 8185754 : Typo in java.util.regex.Pattern javadoc: no slash in \p class

Brian Burkhalter-2
Hi Ivan,

These look fine.

Brian

On Aug 2, 2017, at 3:36 PM, Ivan Gerasimov <[hidden email]> wrote:

> Would you please help review the fix?
>
> --- a/src/java.base/share/classes/java/util/regex/Pattern.java
> +++ b/src/java.base/share/classes/java/util/regex/Pattern.java
> @@ -667,11 +667,11 @@
>  […]
> - *     <td>A decimal digit character:{@code p{IsDigit}}</td></tr>
> + *     <td>A decimal digit character:{@code \p{IsDigit}}</td></tr>
> […]
> - *     <td>A punctuation character:{@code p{IsPunctuation}}</td></tr>
> + *     <td>A punctuation character:{@code \p{IsPunctuation}}</td>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [10] RFR 8185754 : Typo in java.util.regex.Pattern javadoc: no slash in \p class

Ivan Gerasimov
Thanks!

Pushed.


On 8/2/17 4:00 PM, Brian Burkhalter wrote:

> Hi Ivan,
>
> These look fine.
>
> Brian
>
> On Aug 2, 2017, at 3:36 PM, Ivan Gerasimov <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>> Would you please help review the fix?
>>
>> --- a/src/java.base/share/classes/java/util/regex/Pattern.java
>> +++ b/src/java.base/share/classes/java/util/regex/Pattern.java
>> @@ -667,11 +667,11 @@
>>  […]
>> - *     <td>A decimal digit character:{@code p{IsDigit}}</td></tr>
>> + *     <td>A decimal digit character:{@code \p{IsDigit}}</td></tr>
>> […]
>> - *     <td>A punctuation character:{@code p{IsPunctuation}}</td></tr>
>> + *     <td>A punctuation character:{@code \p{IsPunctuation}}</td>
>

--
With kind regards,
Ivan Gerasimov

Loading...