RFR: JDK-8287838: Update Float and Double to use snippets [v2]

Alan Bateman alanb at openjdk.java.net
Mon Jun 6 20:55:57 UTC 2022


On Mon, 6 Jun 2022 20:37:07 GMT, Joe Darcy <darcy at openjdk.org> wrote:

>> Various code blocks in Float and Double would be better as snippets.
>
> Joe Darcy has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - Use idiom for shorter lines
>  - Respond to review feedback.

src/java.base/share/classes/java/lang/Double.java line 683:

> 681:      *       "[\\x00-\\x20]*");// Optional trailing "whitespace"
> 682:      *
> 683:      *  if (Pattern.matches(fpRegex, myString)) // @link substring="Pattern.matches" target ="java.util.regex.Pattern#matches"

If you want to avoid the annoyingly long line then you can put the "// @link ..." on the previous line if you want.

-------------

PR: https://git.openjdk.java.net/jdk/pull/9034


More information about the core-libs-dev mailing list