Skip to content

Commit 8169558

Browse files
authored
Add missing deprecation annotation to synchronous setDefaults method (#752)
* Add missing deprecation annotation to synchronous setDefaults method
1 parent c4d7bba commit 8169558

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

firebase-config/api.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ package com.google.firebase.remoteconfig {
2323
method @Deprecated public void setConfigSettings(@NonNull com.google.firebase.remoteconfig.FirebaseRemoteConfigSettings);
2424
method @NonNull public Task<Void> setConfigSettingsAsync(@NonNull com.google.firebase.remoteconfig.FirebaseRemoteConfigSettings);
2525
method @Deprecated public void setDefaults(@NonNull Map<String,Object>);
26-
method public void setDefaults(int);
26+
method @Deprecated public void setDefaults(int);
2727
method @NonNull public Task<Void> setDefaultsAsync(@NonNull Map<String,Object>);
2828
method @NonNull public Task<Void> setDefaultsAsync(int);
2929
field public static final boolean DEFAULT_VALUE_FOR_BOOLEAN = false;

firebase-config/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# limitations under the License.
1515
#
1616

17-
version=18.0.1
17+
version=18.0.2
1818
latestReleasedVersion=18.0.0
1919
android.enableUnitTestBinaryResources=true
2020

firebase-config/src/main/java/com/google/firebase/remoteconfig/FirebaseRemoteConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,9 @@ public Task<Void> setDefaultsAsync(@NonNull Map<String, Object> defaults) {
582582
*
583583
* @param resourceId Id for the XML resource, which should be in your application's {@code
584584
* res/xml} folder.
585+
* @deprecated Use {@link #setDefaultsAsync} instead.
585586
*/
587+
@Deprecated
586588
public void setDefaults(@XmlRes int resourceId) {
587589
Map<String, String> xmlDefaults = DefaultsXmlParser.getDefaultsFromXml(context, resourceId);
588590
setDefaultsWithStringsMap(xmlDefaults);

0 commit comments

Comments
 (0)