Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 98927186 authored by Jonathan Basseri's avatar Jonathan Basseri
Browse files

Never return a reference to sDefaults.

Final static fields in Java are still mutable, so CarrierConfigManager
should not give callers the opportunity to mutate them.

Change-Id: I413597fc5f59c249997967bb0aad2d09b54fa613
parent 3e452a9b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -208,13 +208,13 @@ public class CarrierConfigManager {
    }

    /**
     * Returns a bundle with the default value for every supported configuration variable.
     * Returns a new bundle with the default value for every supported configuration variable.
     *
     * @hide
     */
    @SystemApi
    public static Bundle getDefaultConfig() {
        return sDefaults;
        return new Bundle(sDefaults);
    }

    /** @hide */