Re: RFR: 8273430: Suspicious duplicate condition in java.util.regex.Grapheme#isExcludedSpacingMark [v2]

2021-09-10 Thread Naoto Sato
On Fri, 10 Sep 2021 20:57:34 GMT, Ian Graves  wrote:

>> The duplicate condition in this chain of expressions needs to be shrunk to 
>> drop a couple of character that are not excluded spacing marks.
>
> Ian Graves has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   Refactoring test to whitebox

Looks good. Nice cleanup!

-

Marked as reviewed by naoto (Reviewer).

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


Re: RFR: 8273430: Suspicious duplicate condition in java.util.regex.Grapheme#isExcludedSpacingMark [v2]

2021-09-10 Thread Ian Graves
On Fri, 10 Sep 2021 20:57:34 GMT, Ian Graves  wrote:

>> The duplicate condition in this chain of expressions needs to be shrunk to 
>> drop a couple of character that are not excluded spacing marks.
>
> Ian Graves has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   Refactoring test to whitebox

Updating the tests here. Existing ones included code copy/pasted directly from 
the unit under test. Refactored to a whitebox-style testing that injects 
accessors into `java.util.regex` so we don't have to modify code in two places 
to keep it in sync. Also relaxed two private static methods in 
`java.util.regex.Grapheme` to package-private so the injected accessor class 
can reach them and expose them for the test.

-

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


Re: RFR: 8273430: Suspicious duplicate condition in java.util.regex.Grapheme#isExcludedSpacingMark [v2]

2021-09-10 Thread Ian Graves
> The duplicate condition in this chain of expressions needs to be shrunk to 
> drop a couple of character that are not excluded spacing marks.

Ian Graves has updated the pull request incrementally with one additional 
commit since the last revision:

  Refactoring test to whitebox

-

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/5425/files
  - new: https://git.openjdk.java.net/jdk/pull/5425/files/ed2e4d2a..c60523af

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk=5425=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk=5425=00-01

  Stats: 545 lines in 4 files changed: 147 ins; 395 del; 3 mod
  Patch: https://git.openjdk.java.net/jdk/pull/5425.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/5425/head:pull/5425

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