mirror of
https://github.com/shred/acme4j.git
synced 2025-12-16 11:24:01 +08:00
Minor optimizations
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user