Merge "aconfig: make java cached indicator volatile" into main
This commit is contained in:
@@ -518,8 +518,8 @@ mod tests {
|
||||
let expected_featureflagsmpl_content_1 = r#"
|
||||
/** @hide */
|
||||
public final class FeatureFlagsImpl implements FeatureFlags {
|
||||
private static boolean aconfig_test_is_cached = false;
|
||||
private static boolean other_namespace_is_cached = false;
|
||||
private static volatile boolean aconfig_test_is_cached = false;
|
||||
private static volatile boolean other_namespace_is_cached = false;
|
||||
private static boolean disabledRw = false;
|
||||
private static boolean disabledRwExported = false;
|
||||
private static boolean disabledRwInOtherNamespace = false;
|
||||
@@ -886,7 +886,7 @@ mod tests {
|
||||
import android.provider.DeviceConfig.Properties;
|
||||
/** @hide */
|
||||
public final class FeatureFlagsImpl implements FeatureFlags {
|
||||
private static boolean aconfig_test_is_cached = false;
|
||||
private static volatile boolean aconfig_test_is_cached = false;
|
||||
private static boolean disabledRwExported = false;
|
||||
private static boolean enabledFixedRoExported = false;
|
||||
private static boolean enabledRoExported = false;
|
||||
|
@@ -22,7 +22,7 @@ import android.util.Log;
|
||||
public final class FeatureFlagsImpl implements FeatureFlags \{
|
||||
{{ -if runtime_lookup_required }}
|
||||
{{ -for namespace_with_flags in namespace_flags }}
|
||||
private static boolean {namespace_with_flags.namespace}_is_cached = false;
|
||||
private static volatile boolean {namespace_with_flags.namespace}_is_cached = false;
|
||||
{{ -endfor- }}
|
||||
|
||||
{{ for flag in flag_elements }}
|
||||
|
Reference in New Issue
Block a user