Merge "Mark FeatureFlags impl member as final" into main am: 8d3b98e1ca
Original change: https://android-review.googlesource.com/c/platform/build/+/2832886 Change-Id: I6608de0fa79d2719ab50b83f7aab9ca3ca9da8ae Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -482,7 +482,7 @@ mod tests {
|
||||
.unwrap();
|
||||
let expect_flags_content = EXPECTED_FLAG_COMMON_CONTENT.to_string()
|
||||
+ r#"
|
||||
private static FeatureFlags FEATURE_FLAGS = new FeatureFlagsImpl();
|
||||
private static final FeatureFlags FEATURE_FLAGS = new FeatureFlagsImpl();
|
||||
}"#;
|
||||
|
||||
let expect_featureflagsimpl_content = r#"
|
||||
@@ -670,7 +670,7 @@ mod tests {
|
||||
public static boolean enabledRoExported() {
|
||||
return FEATURE_FLAGS.enabledRoExported();
|
||||
}
|
||||
private static FeatureFlags FEATURE_FLAGS = new FeatureFlagsImpl();
|
||||
private static final FeatureFlags FEATURE_FLAGS = new FeatureFlagsImpl();
|
||||
}
|
||||
"#;
|
||||
|
||||
@@ -1092,7 +1092,7 @@ mod tests {
|
||||
public static boolean enabledRw() {
|
||||
return FEATURE_FLAGS.enabledRw();
|
||||
}
|
||||
private static FeatureFlags FEATURE_FLAGS = new FeatureFlagsImpl();
|
||||
private static final FeatureFlags FEATURE_FLAGS = new FeatureFlagsImpl();
|
||||
}"#;
|
||||
|
||||
let expect_customfeatureflags_content = r#"
|
||||
|
@@ -33,8 +33,11 @@ public final class Flags \{
|
||||
public static void unsetFeatureFlags() \{
|
||||
Flags.FEATURE_FLAGS = null;
|
||||
}
|
||||
|
||||
private static FeatureFlags FEATURE_FLAGS;
|
||||
{{ -else }}
|
||||
|
||||
private static final FeatureFlags FEATURE_FLAGS = new FeatureFlagsImpl();
|
||||
{{ -endif }}
|
||||
|
||||
private static FeatureFlags FEATURE_FLAGS{{ -if not is_test_mode }} = new FeatureFlagsImpl(){{ -endif- }};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user