From a312832462aba301802bf586a2c0fa38139722b1 Mon Sep 17 00:00:00 2001 From: Heinrich Vogel Date: Wed, 18 Dec 2024 10:42:25 +0100 Subject: [PATCH] Refactor SignatureUtil to use Long.toString() instead of deprecated Long constructor --- src/main/java/com/pusher/rest/SignatureUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/pusher/rest/SignatureUtil.java b/src/main/java/com/pusher/rest/SignatureUtil.java index 3a044b6..4a28081 100644 --- a/src/main/java/com/pusher/rest/SignatureUtil.java +++ b/src/main/java/com/pusher/rest/SignatureUtil.java @@ -36,7 +36,7 @@ public static URI uri(final String method, final Map allParams = new HashMap(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)); }