mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8263668: Update java.time to use instanceof pattern variable
Reviewed-by: lancea, ryadav, naoto, rriggs, dfuchs, scolebourne, chegar
This commit is contained in:
parent
a93d911954
commit
28af31db34
34 changed files with 129 additions and 176 deletions
|
@ -393,12 +393,11 @@ public final class ValueRange implements Serializable {
|
|||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (obj instanceof ValueRange) {
|
||||
ValueRange other = (ValueRange) obj;
|
||||
return minSmallest == other.minSmallest && minLargest == other.minLargest &&
|
||||
maxSmallest == other.maxSmallest && maxLargest == other.maxLargest;
|
||||
}
|
||||
return false;
|
||||
return (obj instanceof ValueRange other)
|
||||
&& minSmallest == other.minSmallest
|
||||
&& minLargest == other.minLargest
|
||||
&& maxSmallest == other.maxSmallest
|
||||
&& maxLargest == other.maxLargest;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue