From a09361032cd318f5c063d0e9773a4723e9779608 Mon Sep 17 00:00:00 2001 From: benoit Date: Fri, 27 Nov 2020 14:01:10 +0100 Subject: [PATCH] use the primitive type as the return value could not be null --- CHANGELOG.md | 3 +++ src/main/java/com/braintreegateway/util/Crypto.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 078eab4e..63276996 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 3.3.1 +* Fix Crypto#secureCompare to use the primitive type as the return value could not be null + ## 3.3.0 * Add `acquirerReferenceNumber` to `Transaction` * Add `billingAgreementId` to `PayPalDetails` diff --git a/src/main/java/com/braintreegateway/util/Crypto.java b/src/main/java/com/braintreegateway/util/Crypto.java index 4761d342..aaed2dac 100644 --- a/src/main/java/com/braintreegateway/util/Crypto.java +++ b/src/main/java/com/braintreegateway/util/Crypto.java @@ -1,7 +1,7 @@ package com.braintreegateway.util; public class Crypto { - public Boolean secureCompare(String left, String right) { + public boolean secureCompare(String left, String right) { if (left == null || right == null || (left.length() != right.length())) { return false; }