Skip to content

Commit 2e4a9e8

Browse files
committed
Refactor: Use Strings.isNullOrEmpty
1 parent 3a028c1 commit 2e4a9e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

oauth2_http/java/com/google/auth/oauth2/CertificateIdentityPoolSubjectTokenSupplier.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
import java.util.List;
5151
import java.util.regex.Matcher;
5252
import java.util.regex.Pattern;
53+
import jdk.internal.joptsimple.internal.Strings;
5354

5455
/**
5556
* Provider for retrieving the subject tokens for {@link IdentityPoolCredentials} by reading an
@@ -224,7 +225,7 @@ static List<X509Certificate> readTrustChain(String trustChainPath)
224225
List<X509Certificate> certificateTrustChain = new ArrayList<>();
225226

226227
// If no trust chain path is provided, return an empty list.
227-
if (trustChainPath == null || trustChainPath.isEmpty()) {
228+
if (Strings.isNullOrEmpty(trustChainPath)) {
228229
return certificateTrustChain;
229230
}
230231

0 commit comments

Comments
 (0)