Skip to content

Commit

Permalink
update default value of number
Browse files Browse the repository at this point in the history
  • Loading branch information
KunMinX committed Feb 2, 2023
1 parent 2706cd0 commit 3c96158
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ buildscript {
ext {
appTargetSdk = 32
appMinSdk = 14
appVersionCode = 306000
appVersionName = "3.6.0-beta"
appVersionCode = 307000
appVersionName = "3.7.0-beta"
}
repositories {
gradlePluginPortal()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ public void put(@NonNull final String key, final int value, final boolean isComm
* Return the int value in sp.
*
* @param key The key of sp.
* @return the int value if sp exists or {@code -1} otherwise
* @return the int value if sp exists or {@code 0} otherwise
*/
public int getInt(@NonNull final String key) {
return getInt(key, -1);
return getInt(key, 0);
}

/**
Expand Down Expand Up @@ -222,10 +222,10 @@ public void put(@NonNull final String key, final long value, final boolean isCom
* Return the long value in sp.
*
* @param key The key of sp.
* @return the long value if sp exists or {@code -1} otherwise
* @return the long value if sp exists or {@code 0} otherwise
*/
public long getLong(@NonNull final String key) {
return getLong(key, -1L);
return getLong(key, 0L);
}

/**
Expand Down Expand Up @@ -269,10 +269,10 @@ public void put(@NonNull final String key, final float value, final boolean isCo
* Return the float value in sp.
*
* @param key The key of sp.
* @return the float value if sp exists or {@code -1f} otherwise
* @return the float value if sp exists or {@code 0f} otherwise
*/
public float getFloat(@NonNull final String key) {
return getFloat(key, -1f);
return getFloat(key, 0f);
}

/**
Expand Down

0 comments on commit 3c96158

Please sign in to comment.