Skip to content

Commit 42ff2df

Browse files
committed
modify ReportClient change msgid from int to long
1 parent aef6bc5 commit 42ff2df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/cn/jpush/api/report/ReportClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ public static void checkMsgids(String msgIds) {
103103
for (String s : splits) {
104104
s = s.trim();
105105
if (!StringUtils.isEmpty(s)) {
106-
Integer.parseInt(s);
106+
Long.parseLong(s);
107107
}
108108
}
109109
} catch (NumberFormatException e) {
110-
throw new IllegalArgumentException("Every msg_id should be valid Integer number which splits by ','");
110+
throw new IllegalArgumentException("Every msg_id should be valid Long number which splits by ','");
111111
}
112112
}
113113

0 commit comments

Comments
 (0)