Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 99149d5

Browse files
authored
Fix ImmutableEnum lint (#47739)
This was introduced in #47315. Internally, this lint breaks the build with the following error: ``` shell/platform/android/io/flutter/embedding/android/KeyData.java:78: Error: DeviceType is an enum, which should be immutable, but field DeviceType.value is not final [ImmutableEnum] private long value; ~~~~~~~~~~~~~~~~~~~ ``` See also https://errorprone.info/bugpattern/ImmutableEnumChecker. Fixes: b/309552840 [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
1 parent 7f4d56a commit 99149d5

File tree

1 file changed

+1
-1
lines changed
  • shell/platform/android/io/flutter/embedding/android

1 file changed

+1
-1
lines changed

shell/platform/android/io/flutter/embedding/android/KeyData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public enum DeviceType {
7575
kJoystick(3),
7676
kHdmi(4);
7777

78-
private long value;
78+
private final long value;
7979

8080
private DeviceType(long value) {
8181
this.value = value;

0 commit comments

Comments
 (0)