Skip to content

Commit

Permalink
Use String#isEmpty()
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Nov 28, 2023
1 parent efe2598 commit ed1c1d6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ static String getResponseFor(final String message, final String username, final
final String host, final String domain) throws NTLMEngineException {

final String response;
if (message == null || message.trim().equals("")) {
if (message == null || message.trim().isEmpty()) {
response = getType1Message(host, domain);
} else {
final Type2Message t2m = new Type2Message(message);
Expand Down Expand Up @@ -190,7 +190,7 @@ static String getResponseFor(final String message, final String username, final
final String host, final String domain, final Certificate peerServerCertificate) throws NTLMEngineException {

final String response;
if (message == null || message.trim().equals("")) {
if (message == null || message.trim().isEmpty()) {
response = new Type1Message(host, domain).getResponse();
} else {
final Type1Message t1m = new Type1Message(host, domain);
Expand Down

0 comments on commit ed1c1d6

Please sign in to comment.