Address Checkstyle violations

This commit is contained in:
Andrew Gaul 2013-05-26 21:03:10 -07:00
parent 8aeed868f4
commit b3a320e015
4 changed files with 8 additions and 6 deletions

View File

@ -37,7 +37,9 @@ public class UpdateDomainsToJSON implements MapBinder {
@Override
public <R extends HttpRequest> R bindToRequest(R request, Map<String, Object> postParams) {
Iterable<Integer> ids = Iterable.class.cast(postParams.get("ids"));
String key, value, updateTemplate;
String key;
String value;
String updateTemplate;
if (postParams.get("emailAddress") != null) {
updateTemplate = "{\"id\":%s,\"%s\":\"%s\"}";

View File

@ -117,7 +117,7 @@ public class Record {
return string().toString();
}
public final static class Builder {
public static final class Builder {
private String name;
private String type;
private Optional<Integer> ttl = Optional.absent();

View File

@ -134,7 +134,7 @@ public class RecordDetail {
return string().toString();
}
public final static class Builder {
public static final class Builder {
private String id;
private Date created;
private Date updated;

View File

@ -40,7 +40,7 @@ public class RecordSet extends ForwardingList<Value> {
private final String type;
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) {
this.type = checkNotNull(type, "type");
@ -124,7 +124,7 @@ public class RecordSet extends ForwardingList<Value> {
return new Builder().from(this);
}
public final static class Builder {
public static final class Builder {
private Optional<String> label = Optional.absent();
private Optional<Integer> weight = Optional.absent();
private Map<String, Object> rdata;
@ -191,7 +191,7 @@ public class RecordSet extends ForwardingList<Value> {
return new Builder().from(this);
}
public final static class Builder {
public static final class Builder {
private String type;
private int ttl = -1;
private ImmutableList.Builder<Value> values = ImmutableList.builder();