mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8289274: Cleanup unnecessary null comparison before instanceof check in security modules
Reviewed-by: mullan
This commit is contained in:
parent
81ee7d28f8
commit
87aa3ce03e
14 changed files with 54 additions and 94 deletions
|
@ -170,9 +170,7 @@ public class BitArray {
|
|||
|
||||
public boolean equals(Object obj) {
|
||||
if (obj == this) return true;
|
||||
if (obj == null || !(obj instanceof BitArray)) return false;
|
||||
|
||||
BitArray ba = (BitArray) obj;
|
||||
if (!(obj instanceof BitArray ba)) return false;
|
||||
|
||||
if (ba.length != length) return false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue