mirror of https://github.com/shred/acme4j
Minor optimizations
parent
2cff3a5c90
commit
ae37fe9004
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue