mirror of https://github.com/shred/acme4j
Minor optimizations
parent
2cff3a5c90
commit
ae37fe9004
|
@ -183,7 +183,7 @@ public class Identifier implements Serializable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object obj) {
|
public boolean equals(Object obj) {
|
||||||
if (obj == null || !(obj instanceof Identifier)) {
|
if (!(obj instanceof Identifier)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
package org.shredzone.acme4j.it;
|
package org.shredzone.acme4j.it;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.Arrays;
|
import java.util.Collections;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
import org.apache.http.HttpResponse;
|
import org.apache.http.HttpResponse;
|
||||||
|
@ -86,7 +86,7 @@ public class BammBammClient {
|
||||||
public void dnsAddARecord(String domain, String ip) throws IOException {
|
public void dnsAddARecord(String domain, String ip) throws IOException {
|
||||||
JSONBuilder jb = new JSONBuilder();
|
JSONBuilder jb = new JSONBuilder();
|
||||||
jb.put("host", domain);
|
jb.put("host", domain);
|
||||||
jb.array("addresses", Arrays.asList(ip));
|
jb.array("addresses", Collections.singletonList(ip));
|
||||||
sendRequest("add-a", jb.toString());
|
sendRequest("add-a", jb.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue