mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8258422: Cleanup unnecessary null comparison before instanceof check in java.base
Reviewed-by: chegar, aefimov
This commit is contained in:
parent
ff54b77b76
commit
022bc9f0cb
22 changed files with 69 additions and 81 deletions
|
@ -342,9 +342,8 @@ public final class AclEntry {
|
|||
public boolean equals(Object ob) {
|
||||
if (ob == this)
|
||||
return true;
|
||||
if (ob == null || !(ob instanceof AclEntry))
|
||||
if (!(ob instanceof AclEntry other))
|
||||
return false;
|
||||
AclEntry other = (AclEntry)ob;
|
||||
if (this.type != other.type)
|
||||
return false;
|
||||
if (!this.who.equals(other.who))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue