On Thu, 21 Jul 2022 18:37:25 GMT, Naoto Sato wrote:
>> Brian Burkhalter has updated the pull request incrementally with one
>> additional commit since the last revision:
>>
>> 8290047: Ensure that colon is not at the last index
>
> src/java.base/unix/classes/sun/nio/ch/UnixAsynchronousSocketC
On Thu, 21 Jul 2022 18:29:03 GMT, Brian Burkhalter wrote:
>> For a `String` “s”, `s.indexOf(int)` can never return a value `>=
>> s.length()` so change the check
>>
>> int pos = syntaxAndInput.indexOf(':');
>> if (pos <= 0 || pos == syntaxAndInput.length())
>>
>> to
>>
>>
On Thu, 21 Jul 2022 18:36:57 GMT, Naoto Sato wrote:
>> Brian Burkhalter has updated the pull request incrementally with one
>> additional commit since the last revision:
>>
>> 8290047: Ensure that colon is not at the last index
>
> src/java.base/unix/classes/sun/nio/ch/UnixAsynchronousSocketC
On Thu, 21 Jul 2022 18:29:03 GMT, Brian Burkhalter wrote:
>> For a `String` “s”, `s.indexOf(int)` can never return a value `>=
>> s.length()` so change the check
>>
>> int pos = syntaxAndInput.indexOf(':');
>> if (pos <= 0 || pos == syntaxAndInput.length())
>>
>> to
>>
>>
On Thu, 21 Jul 2022 17:13:58 GMT, Brian Burkhalter wrote:
>> src/java.base/share/classes/jdk/internal/jrtfs/JrtFileSystem.java line 178:
>>
>>> 176: public PathMatcher getPathMatcher(String syntaxAndInput) {
>>> 177: int pos = syntaxAndInput.indexOf(':');
>>> 178: if (pos <=
> For a `String` “s”, `s.indexOf(int)` can never return a value `>= s.length()`
> so change the check
>
> int pos = syntaxAndInput.indexOf(':');
> if (pos <= 0 || pos == syntaxAndInput.length())
>
> to
>
> if (pos <= 0)
Brian Burkhalter has updated the pull request incr
On Thu, 21 Jul 2022 15:29:10 GMT, Brian Burkhalter wrote:
> For a `String` “s”, `s.indexOf(int)` can never return a value `>= s.length()`
> so change the check
>
> int pos = syntaxAndInput.indexOf(':');
> if (pos <= 0 || pos == syntaxAndInput.length())
>
> to
>
> if (p
On Thu, 21 Jul 2022 17:10:12 GMT, Roger Riggs wrote:
>> For a `String` “s”, `s.indexOf(int)` can never return a value `>=
>> s.length()` so change the check
>>
>> int pos = syntaxAndInput.indexOf(':');
>> if (pos <= 0 || pos == syntaxAndInput.length())
>>
>> to
>>
>> i
On Thu, 21 Jul 2022 15:29:10 GMT, Brian Burkhalter wrote:
> For a `String` “s”, `s.indexOf(int)` can never return a value `>= s.length()`
> so change the check
>
> int pos = syntaxAndInput.indexOf(':');
> if (pos <= 0 || pos == syntaxAndInput.length())
>
> to
>
> if (p
For a `String` “s”, `s.indexOf(int)` can never return a value `>= s.length()`
so change the check
int pos = syntaxAndInput.indexOf(':');
if (pos <= 0 || pos == syntaxAndInput.length())
to
if (pos <= 0)
-
Commit messages:
- 8290047: (fs) FileSystem.getPathM
10 matches
Mail list logo