Skip to content

Commit

Permalink
Refactor SignatureUtil to use Long.toString() instead of deprecated L…
Browse files Browse the repository at this point in the history
…ong constructor
  • Loading branch information
hnhv committed Dec 18, 2024
1 parent 44f8532 commit a312832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/pusher/rest/SignatureUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static URI uri(final String method,
final Map<String, String> allParams = new HashMap<String, String>(extraParams);
allParams.put("auth_key", key);
allParams.put("auth_version", "1.0");
allParams.put("auth_timestamp", new Long(System.currentTimeMillis() / 1000).toString());
allParams.put("auth_timestamp", Long.toString(System.currentTimeMillis() / 1000));
if (body != null) {
allParams.put("body_md5", bodyMd5(body));
}
Expand Down

0 comments on commit a312832

Please sign in to comment.