Skip to content

Commit e21335c

Browse files
authored
[CQ] InitializeOnceBoolValueProperty: visibility/null fixes (#8024)
Another opportunistic cleanup: fix visibility (the class is final) and null-safety.
1 parent 4df8de5 commit e21335c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ public InitializeOnceBoolValueProperty() {
3838

3939
@NotNull
4040
public Boolean get() {
41+
assert myValue != null;
4142
return myValue;
4243
}
4344

44-
protected void setDirectly(@NotNull Boolean value) {
45+
void setDirectly(@NotNull Boolean value) {
4546
myValue = value;
4647
}
4748

@@ -62,7 +63,7 @@ public void set(@NotNull Boolean value) {
6263
}
6364
}
6465

65-
protected boolean isValueEqual(@Nullable Boolean value) {
66+
boolean isValueEqual(@Nullable Boolean value) {
6667
return Objects.equal(get(), value);
6768
}
6869

0 commit comments

Comments
 (0)