Fix compilation error

Patterns in instanceof are not supported on Java 8.

PiperOrigin-RevId: 750147834
This commit is contained in:
kimvde 2025-04-22 05:11:26 -07:00 committed by Copybara-Service
parent 4d9f47920a
commit ba97999657

View File

@ -340,9 +340,10 @@ public final class VideoEncoderSettings {
if (this == o) { if (this == o) {
return true; return true;
} }
if (!(o instanceof VideoEncoderSettings that)) { if (!(o instanceof VideoEncoderSettings)) {
return false; return false;
} }
VideoEncoderSettings that = (VideoEncoderSettings) o;
return bitrate == that.bitrate return bitrate == that.bitrate
&& bitrateMode == that.bitrateMode && bitrateMode == that.bitrateMode
&& profile == that.profile && profile == that.profile