Skip to content

Commit 675a1d9

Browse files
authored
[CQ] Declaration Redundancy: remove unnecessary final method modifiers (#7999)
Methods in `final` classes don't need the extra annotation.
1 parent 102ed67 commit 675a1d9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

flutter-idea/src/io/flutter/module/settings/InitializeOnceBoolValueProperty.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ protected void setDirectly(@NotNull Boolean value) {
4545
myValue = value;
4646
}
4747

48-
public final void initialize(@NotNull Boolean value) {
48+
public void initialize(@NotNull Boolean value) {
4949
if (isSet) {
5050
return;
5151
}
5252
setDirectly(value);
5353
isSet = true;
5454
}
5555

56-
public final void set(@NotNull Boolean value) {
56+
public void set(@NotNull Boolean value) {
5757
if (!isValueEqual(value)) {
5858
//setNotificationsEnabled(false);
5959
setDirectly(value);
@@ -71,12 +71,12 @@ public String toString() {
7171
return get().toString();
7272
}
7373

74-
public final void addConstraint(Object constraint) {
74+
public void addConstraint(Object constraint) {
7575
// This is only a partial implementation of the Android Studio class. If someone tries to use constraints more implementation is needed.
7676
throw new Error("constraints not supported");
7777
}
7878

79-
public final void addListener(Object listener) {
79+
public void addListener(Object listener) {
8080
// This is only a partial implementation of the Android Studio class. If someone tries to use listeners more implementation is needed.
8181
throw new Error("listeners not supported");
8282
}

0 commit comments

Comments
 (0)