Use String#isEmpty()
This commit is contained in:
parent
efe2598a30
commit
ed1c1d61f2
|
@ -161,7 +161,7 @@ final class NTLMEngineImpl implements NTLMEngine {
|
||||||
final String host, final String domain) throws NTLMEngineException {
|
final String host, final String domain) throws NTLMEngineException {
|
||||||
|
|
||||||
final String response;
|
final String response;
|
||||||
if (message == null || message.trim().equals("")) {
|
if (message == null || message.trim().isEmpty()) {
|
||||||
response = getType1Message(host, domain);
|
response = getType1Message(host, domain);
|
||||||
} else {
|
} else {
|
||||||
final Type2Message t2m = new Type2Message(message);
|
final Type2Message t2m = new Type2Message(message);
|
||||||
|
@ -190,7 +190,7 @@ final class NTLMEngineImpl implements NTLMEngine {
|
||||||
final String host, final String domain, final Certificate peerServerCertificate) throws NTLMEngineException {
|
final String host, final String domain, final Certificate peerServerCertificate) throws NTLMEngineException {
|
||||||
|
|
||||||
final String response;
|
final String response;
|
||||||
if (message == null || message.trim().equals("")) {
|
if (message == null || message.trim().isEmpty()) {
|
||||||
response = new Type1Message(host, domain).getResponse();
|
response = new Type1Message(host, domain).getResponse();
|
||||||
} else {
|
} else {
|
||||||
final Type1Message t1m = new Type1Message(host, domain);
|
final Type1Message t1m = new Type1Message(host, domain);
|
||||||
|
|
Loading…
Reference in New Issue