Skip to content

Commit

Permalink
Fix java language level error
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 725732479
Change-Id: Ib89ab5e55d0487c9b5456d2dfb38a867703e3593
  • Loading branch information
ted-xie authored and copybara-github committed Feb 11, 2025
1 parent 83bd87d commit 271896a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@ public Optional<String> getCompatSdkProviderClassName() {
}

@Override
@SuppressWarnings("PatternMatchingInstanceof")
public boolean equals(Object object) {
if (object instanceof SdkInfo that) {
if (object instanceof SdkInfo) {
SdkInfo that = (SdkInfo) object;
return this.packageName.equals(that.packageName)
&& this.version.equals(that.version)
&& this.certificateDigest.equals(that.certificateDigest)
Expand Down

0 comments on commit 271896a

Please sign in to comment.