Minor optimizations

pull/98/head
Richard Körber 2020-10-24 19:42:20 +02:00
parent 2cff3a5c90
commit ae37fe9004
No known key found for this signature in database
GPG Key ID: AAB9FD19C78AA3E0
2 changed files with 3 additions and 3 deletions

View File

@ -183,7 +183,7 @@ public class Identifier implements Serializable {
@Override
public boolean equals(Object obj) {
if (obj == null || !(obj instanceof Identifier)) {
if (!(obj instanceof Identifier)) {
return false;
}

View File

@ -14,7 +14,7 @@
package org.shredzone.acme4j.it;
import java.io.IOException;
import java.util.Arrays;
import java.util.Collections;
import java.util.Objects;
import org.apache.http.HttpResponse;
@ -86,7 +86,7 @@ public class BammBammClient {
public void dnsAddARecord(String domain, String ip) throws IOException {
JSONBuilder jb = new JSONBuilder();
jb.put("host", domain);
jb.array("addresses", Arrays.asList(ip));
jb.array("addresses", Collections.singletonList(ip));
sendRequest("add-a", jb.toString());
}