From 37e737490255eb35a5b880995b4a94269807b899 Mon Sep 17 00:00:00 2001 From: Jia Hao Goh Date: Tue, 7 Nov 2023 14:25:29 +0800 Subject: [PATCH] Fix ImmutableEnum lint This was introduced in https://github.com/flutter/engine/pull/47315. Internally, this lint breaks the build. See also https://errorprone.info/bugpattern/ImmutableEnumChecker. Fixes: b/309552840 --- .../platform/android/io/flutter/embedding/android/KeyData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/platform/android/io/flutter/embedding/android/KeyData.java b/shell/platform/android/io/flutter/embedding/android/KeyData.java index 776372c801169..ef3b8eb6d8e72 100644 --- a/shell/platform/android/io/flutter/embedding/android/KeyData.java +++ b/shell/platform/android/io/flutter/embedding/android/KeyData.java @@ -75,7 +75,7 @@ public enum DeviceType { kJoystick(3), kHdmi(4); - private long value; + private final long value; private DeviceType(long value) { this.value = value;