Re: RFR: 8265746: Update java.time to use instanceof pattern variable (part II) [v2]

2021-04-26 Thread Patrick Concannon
On Fri, 23 Apr 2021 14:29:36 GMT, Chris Hegarty  wrote:

>> Patrick Concannon has updated the pull request with a new target base due to 
>> a merge or a rebase. The incremental webrev excludes the unrelated changes 
>> brought in by the merge/rebase. The pull request contains three additional 
>> commits since the last revision:
>> 
>>  - Removed redundant braces
>>  - Merge remote-tracking branch 'origin/master' into JDK-8265746
>>  - 8265746: Update java.time to use instanceof pattern variable (part II)
>
> src/java.base/share/classes/java/time/Clock.java line 623:
> 
>> 621: return (obj instanceof FixedClock other
>> 622: && instant.equals(other.instant)
>> 623: && zone.equals(other.zone));
> 
> The outer set of braces is redundant.

Braces removed in 7f32ddb

> src/java.base/share/classes/java/time/ZonedDateTime.java line 2191:
> 
>> 2189: && dateTime.equals(other.dateTime)
>> 2190: && offset.equals(other.offset)
>> 2191: && zone.equals(other.zone));
> 
> same here.

See 7f32ddb

-

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


Re: RFR: 8265746: Update java.time to use instanceof pattern variable (part II) [v2]

2021-04-23 Thread Lance Andersen
On Fri, 23 Apr 2021 15:38:53 GMT, Patrick Concannon  
wrote:

>> Hi,
>> 
>> Could someone please review the second half of my update for the `java.time` 
>> package to make use of the `instanceof` pattern variable?
>> 
>> This PR was split into two parts due to the large number of files affected.
>> 
>> Kind regards,
>> 
>> Patrick
>
> Patrick Concannon has updated the pull request with a new target base due to 
> a merge or a rebase. The incremental webrev excludes the unrelated changes 
> brought in by the merge/rebase. The pull request contains three additional 
> commits since the last revision:
> 
>  - Removed redundant braces
>  - Merge remote-tracking branch 'origin/master' into JDK-8265746
>  - 8265746: Update java.time to use instanceof pattern variable (part II)

Marked as reviewed by lancea (Reviewer).

-

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


Re: RFR: 8265746: Update java.time to use instanceof pattern variable (part II) [v2]

2021-04-23 Thread Roger Riggs
On Fri, 23 Apr 2021 15:38:53 GMT, Patrick Concannon  
wrote:

>> Hi,
>> 
>> Could someone please review the second half of my update for the `java.time` 
>> package to make use of the `instanceof` pattern variable?
>> 
>> This PR was split into two parts due to the large number of files affected.
>> 
>> Kind regards,
>> 
>> Patrick
>
> Patrick Concannon has updated the pull request with a new target base due to 
> a merge or a rebase. The incremental webrev excludes the unrelated changes 
> brought in by the merge/rebase. The pull request contains three additional 
> commits since the last revision:
> 
>  - Removed redundant braces
>  - Merge remote-tracking branch 'origin/master' into JDK-8265746
>  - 8265746: Update java.time to use instanceof pattern variable (part II)

Marked as reviewed by rriggs (Reviewer).

-

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


Re: RFR: 8265746: Update java.time to use instanceof pattern variable (part II) [v2]

2021-04-23 Thread Naoto Sato
On Fri, 23 Apr 2021 15:38:53 GMT, Patrick Concannon  
wrote:

>> Hi,
>> 
>> Could someone please review the second half of my update for the `java.time` 
>> package to make use of the `instanceof` pattern variable?
>> 
>> This PR was split into two parts due to the large number of files affected.
>> 
>> Kind regards,
>> 
>> Patrick
>
> Patrick Concannon has updated the pull request with a new target base due to 
> a merge or a rebase. The incremental webrev excludes the unrelated changes 
> brought in by the merge/rebase. The pull request contains three additional 
> commits since the last revision:
> 
>  - Removed redundant braces
>  - Merge remote-tracking branch 'origin/master' into JDK-8265746
>  - 8265746: Update java.time to use instanceof pattern variable (part II)

Marked as reviewed by naoto (Reviewer).

-

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


Re: RFR: 8265746: Update java.time to use instanceof pattern variable (part II) [v2]

2021-04-23 Thread Chris Hegarty
On Fri, 23 Apr 2021 15:38:53 GMT, Patrick Concannon  
wrote:

>> Hi,
>> 
>> Could someone please review the second half of my update for the `java.time` 
>> package to make use of the `instanceof` pattern variable?
>> 
>> This PR was split into two parts due to the large number of files affected.
>> 
>> Kind regards,
>> 
>> Patrick
>
> Patrick Concannon has updated the pull request with a new target base due to 
> a merge or a rebase. The incremental webrev excludes the unrelated changes 
> brought in by the merge/rebase. The pull request contains three additional 
> commits since the last revision:
> 
>  - Removed redundant braces
>  - Merge remote-tracking branch 'origin/master' into JDK-8265746
>  - 8265746: Update java.time to use instanceof pattern variable (part II)

Marked as reviewed by chegar (Reviewer).

-

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


Re: RFR: 8265746: Update java.time to use instanceof pattern variable (part II) [v2]

2021-04-23 Thread Patrick Concannon
> Hi,
> 
> Could someone please review the second half of my update for the `java.time` 
> package to make use of the `instanceof` pattern variable?
> 
> This PR was split into two parts due to the large number of files affected.
> 
> Kind regards,
> 
> Patrick

Patrick Concannon has updated the pull request with a new target base due to a 
merge or a rebase. The incremental webrev excludes the unrelated changes 
brought in by the merge/rebase. The pull request contains three additional 
commits since the last revision:

 - Removed redundant braces
 - Merge remote-tracking branch 'origin/master' into JDK-8265746
 - 8265746: Update java.time to use instanceof pattern variable (part II)

-

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/3650/files
  - new: https://git.openjdk.java.net/jdk/pull/3650/files/974ccbf0..7f32ddbe

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

  Stats: 519 lines in 11 files changed: 275 ins; 177 del; 67 mod
  Patch: https://git.openjdk.java.net/jdk/pull/3650.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/3650/head:pull/3650

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


Re: RFR: 8265746: Update java.time to use instanceof pattern variable (part II)

2021-04-23 Thread Chris Hegarty
On Fri, 23 Apr 2021 10:44:30 GMT, Patrick Concannon  
wrote:

> Hi,
> 
> Could someone please review the second half of my update for the `java.time` 
> package to make use of the `instanceof` pattern variable?
> 
> This PR was split into two parts due to the large number of files affected.
> 
> Kind regards,
> 
> Patrick

Marked as reviewed by chegar (Reviewer).

src/java.base/share/classes/java/time/Clock.java line 623:

> 621: return (obj instanceof FixedClock other
> 622: && instant.equals(other.instant)
> 623: && zone.equals(other.zone));

The outer set of braces is redundant.

src/java.base/share/classes/java/time/Clock.java line 673:

> 671: return (obj instanceof OffsetClock other
> 672: && baseClock.equals(other.baseClock)
> 673: && offset.equals(other.offset));

The outer set of braces is redundant.

src/java.base/share/classes/java/time/ZonedDateTime.java line 2191:

> 2189: && dateTime.equals(other.dateTime)
> 2190: && offset.equals(other.offset)
> 2191: && zone.equals(other.zone));

same here.

-

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


Re: RFR: 8265746: Update java.time to use instanceof pattern variable (part II)

2021-04-23 Thread Roger Riggs
On Fri, 23 Apr 2021 10:44:30 GMT, Patrick Concannon  
wrote:

> Hi,
> 
> Could someone please review the second half of my update for the `java.time` 
> package to make use of the `instanceof` pattern variable?
> 
> This PR was split into two parts due to the large number of files affected.
> 
> Kind regards,
> 
> Patrick

Marked as reviewed by rriggs (Reviewer).

-

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


Re: RFR: 8265746: Update java.time to use instanceof pattern variable (part II)

2021-04-23 Thread Lance Andersen
On Fri, 23 Apr 2021 10:44:30 GMT, Patrick Concannon  
wrote:

> Hi,
> 
> Could someone please review the second half of my update for the `java.time` 
> package to make use of the `instanceof` pattern variable?
> 
> This PR was split into two parts due to the large number of files affected.
> 
> Kind regards,
> 
> Patrick

Looks good.  Thank you for the updates

-

Marked as reviewed by lancea (Reviewer).

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


Re: RFR: 8265746: Update java.time to use instanceof pattern variable (part II)

2021-04-23 Thread Daniel Fuchs
On Fri, 23 Apr 2021 10:44:30 GMT, Patrick Concannon  
wrote:

> Hi,
> 
> Could someone please review the second half of my update for the `java.time` 
> package to make use of the `instanceof` pattern variable?
> 
> This PR was split into two parts due to the large number of files affected.
> 
> Kind regards,
> 
> Patrick

LGTM!

-

Marked as reviewed by dfuchs (Reviewer).

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


RFR: 8265746: Update java.time to use instanceof pattern variable (part II)

2021-04-23 Thread Patrick Concannon
Hi,

Could someone please review the second half of my update for the `java.time` 
package to make use of the `instanceof` pattern variable?

This PR was split into two parts due to the large number of files affected.

Kind regards,

Patrick

-

Commit messages:
 - 8265746: Update java.time to use instanceof pattern variable (part II)

Changes: https://git.openjdk.java.net/jdk/pull/3650/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk=3650=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8265746
  Stats: 152 lines in 20 files changed: 0 ins; 48 del; 104 mod
  Patch: https://git.openjdk.java.net/jdk/pull/3650.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/3650/head:pull/3650

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