Skip to content

Commit 7a28b89

Browse files
fix for [438426692](getDouble() logs a malformed warning on type conversion failure)
Using getDouble on a string parameter value, returns the appropriate default static value but logs a warning which looks incorrect ("%s" in the warning message?).
1 parent 23b1b95 commit 7a28b89

File tree

1 file changed

+2
-2
lines changed
  • src/main/java/com/google/firebase/remoteconfig

1 file changed

+2
-2
lines changed

src/main/java/com/google/firebase/remoteconfig/Value.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ long asLong() {
100100
try {
101101
return Long.parseLong(value);
102102
} catch (NumberFormatException e) {
103-
logger.warn("Unable to convert %s to long type.", value);
103+
logger.warn("Unable to convert {} to long type.", value);
104104
return DEFAULT_VALUE_FOR_LONG;
105105
}
106106
}
@@ -118,7 +118,7 @@ long asLong() {
118118
try {
119119
return Double.parseDouble(this.value);
120120
} catch (NumberFormatException e) {
121-
logger.warn("Unable to convert %s to double type.", value);
121+
logger.warn("Unable to convert {} to double type.", value);
122122
return DEFAULT_VALUE_FOR_DOUBLE;
123123
}
124124
}

0 commit comments

Comments
 (0)