Skip to content

Commit aefdbef

Browse files
Joerogerhu
Joe
authored andcommitted
Fix DefaultLocale lint errors (#23)
1 parent 142774e commit aefdbef

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ParseLiveQuery/src/main/java/com/parse/LiveQueryException.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package com.parse;
22

3+
import java.util.Locale;
4+
35
public abstract class LiveQueryException extends Exception {
46

57
private LiveQueryException() {
@@ -53,7 +55,7 @@ public static class InvalidJSONException extends LiveQueryException {
5355
private final String expectedKey;
5456

5557
/* package */ InvalidJSONException(String json, String expectedKey) {
56-
super(String.format("Invalid JSON; expectedKey: %s, json: %s", expectedKey, json));
58+
super(String.format(Locale.US, "Invalid JSON; expectedKey: %s, json: %s", expectedKey, json));
5759
this.json = json;
5860
this.expectedKey = expectedKey;
5961
}
@@ -77,7 +79,7 @@ public static class ServerReportedException extends LiveQueryException {
7779
private final boolean reconnect;
7880

7981
public ServerReportedException(int code, String error, boolean reconnect) {
80-
super(String.format("Server reported error; code: %d, error: %s, reconnect: %b", code, error, reconnect));
82+
super(String.format(Locale.US, "Server reported error; code: %d, error: %s, reconnect: %b", code, error, reconnect));
8183
this.code = code;
8284
this.error = error;
8385
this.reconnect = reconnect;

0 commit comments

Comments
 (0)