mirror of
https://github.com/apache/jclouds.git
synced 2025-02-16 15:08:28 +00:00
Address Checkstyle violations
This commit is contained in:
parent
8aeed868f4
commit
b3a320e015
@ -37,7 +37,9 @@ public class UpdateDomainsToJSON implements MapBinder {
|
|||||||
@Override
|
@Override
|
||||||
public <R extends HttpRequest> R bindToRequest(R request, Map<String, Object> postParams) {
|
public <R extends HttpRequest> R bindToRequest(R request, Map<String, Object> postParams) {
|
||||||
Iterable<Integer> ids = Iterable.class.cast(postParams.get("ids"));
|
Iterable<Integer> ids = Iterable.class.cast(postParams.get("ids"));
|
||||||
String key, value, updateTemplate;
|
String key;
|
||||||
|
String value;
|
||||||
|
String updateTemplate;
|
||||||
|
|
||||||
if (postParams.get("emailAddress") != null) {
|
if (postParams.get("emailAddress") != null) {
|
||||||
updateTemplate = "{\"id\":%s,\"%s\":\"%s\"}";
|
updateTemplate = "{\"id\":%s,\"%s\":\"%s\"}";
|
||||||
|
@ -117,7 +117,7 @@ public class Record {
|
|||||||
return string().toString();
|
return string().toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public final static class Builder {
|
public static final class Builder {
|
||||||
private String name;
|
private String name;
|
||||||
private String type;
|
private String type;
|
||||||
private Optional<Integer> ttl = Optional.absent();
|
private Optional<Integer> ttl = Optional.absent();
|
||||||
|
@ -134,7 +134,7 @@ public class RecordDetail {
|
|||||||
return string().toString();
|
return string().toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public final static class Builder {
|
public static final class Builder {
|
||||||
private String id;
|
private String id;
|
||||||
private Date created;
|
private Date created;
|
||||||
private Date updated;
|
private Date updated;
|
||||||
|
@ -40,7 +40,7 @@ public class RecordSet extends ForwardingList<Value> {
|
|||||||
|
|
||||||
private final String type;
|
private final String type;
|
||||||
private final int ttl;
|
private final int ttl;
|
||||||
private transient final List<Value> values;
|
private final transient List<Value> values;
|
||||||
|
|
||||||
private RecordSet(String type, int ttl, List<Value> values) {
|
private RecordSet(String type, int ttl, List<Value> values) {
|
||||||
this.type = checkNotNull(type, "type");
|
this.type = checkNotNull(type, "type");
|
||||||
@ -124,7 +124,7 @@ public class RecordSet extends ForwardingList<Value> {
|
|||||||
return new Builder().from(this);
|
return new Builder().from(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public final static class Builder {
|
public static final class Builder {
|
||||||
private Optional<String> label = Optional.absent();
|
private Optional<String> label = Optional.absent();
|
||||||
private Optional<Integer> weight = Optional.absent();
|
private Optional<Integer> weight = Optional.absent();
|
||||||
private Map<String, Object> rdata;
|
private Map<String, Object> rdata;
|
||||||
@ -191,7 +191,7 @@ public class RecordSet extends ForwardingList<Value> {
|
|||||||
return new Builder().from(this);
|
return new Builder().from(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public final static class Builder {
|
public static final class Builder {
|
||||||
private String type;
|
private String type;
|
||||||
private int ttl = -1;
|
private int ttl = -1;
|
||||||
private ImmutableList.Builder<Value> values = ImmutableList.builder();
|
private ImmutableList.Builder<Value> values = ImmutableList.builder();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user