Import pattern matching changes for java.util.BitSet

Bug: 248243024
Test: treehugger
Change-Id: I4e2265a5443e5d4ad83e6904ab4a43cf698f2fac
diff --git a/ojluni/src/main/java/java/util/BitSet.java b/ojluni/src/main/java/java/util/BitSet.java
index c72970d..0e676ac 100644
--- a/ojluni/src/main/java/java/util/BitSet.java
+++ b/ojluni/src/main/java/java/util/BitSet.java
@@ -1064,13 +1064,11 @@
      * @see    #size()
      */
     public boolean equals(Object obj) {
-        if (!(obj instanceof BitSet))
+        if (!(obj instanceof BitSet set))
             return false;
         if (this == obj)
             return true;
 
-        BitSet set = (BitSet) obj;
-
         checkInvariants();
         set.checkInvariants();