Skip to content

Commit

Permalink
Replace deprecated getPassword() with getSecretPassword() (#1189)
Browse files Browse the repository at this point in the history
Also replaces a StringUtils use with a Java String call.
  • Loading branch information
MarkEWaite authored Sep 18, 2024
1 parent 8a4161f commit 69ef499
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2166,7 +2166,7 @@ private String launchCommandWithCredentials(
String userInfo = null;
if (StringUtils.isNotEmpty(proxy.getUserName())) {
userInfo = proxy.getUserName();
if (StringUtils.isNotEmpty(proxy.getPassword())) {
if (!Secret.toString(proxy.getSecretPassword()).isEmpty()) {
userInfo += ":" + proxy.getSecretPassword();
}
}
Expand Down

0 comments on commit 69ef499

Please sign in to comment.