Skip to content

Commit f9d6837

Browse files
committed
Fixed code smell
1 parent 6697ce8 commit f9d6837

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/mastercard/developer/encryption/jwe/JweObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ private static String serialize(String header, String encryptedKey, String iv, S
9595
*/
9696
private static String base64UrlEncode(byte[] bytes) {
9797
return Base64.getUrlEncoder().encodeToString(bytes)
98-
.replaceAll("=", ""); // Remove any trailing '='s
98+
.replace("=", ""); // Remove any trailing '='s
9999
}
100100

101101
public static JweObject parse(String encryptedPayload, JsonEngine jsonEngine) {

0 commit comments

Comments
 (0)