mirror of https://github.com/apache/jclouds.git
Merge pull request #939 from andrewgaul/checkstyle-empty-statement
Enforce no empty statements via Checkstyle
This commit is contained in:
commit
d4c01e6c2e
|
@ -58,7 +58,6 @@ public class UnwrapLoadBalancers implements Function<HttpResponse, Set<LoadBalan
|
|||
Map<String, Set<LB>> map = json.apply(arg0);
|
||||
if (map.size() == 0)
|
||||
return ImmutableSet.<LoadBalancer> of();
|
||||
;
|
||||
return ImmutableSet.copyOf(Iterables.transform(Iterables.get(map.values(), 0), convertLB));
|
||||
}
|
||||
|
||||
|
|
|
@ -54,9 +54,9 @@ public class BatchResponseHandler<V> extends ParseSax.HandlerForGeneratedRequest
|
|||
|
||||
protected BatchResponseHandler(String resultElement, HandlerForGeneratedRequestWithResult<Map.Entry<String, V>> resultHandler,
|
||||
BatchErrorHandler errorHandler) {
|
||||
this.resultElement = checkNotNull(resultElement, "resultElement");;
|
||||
this.resultHandler = checkNotNull(resultHandler, "resultHandler");;
|
||||
this.errorHandler = checkNotNull(errorHandler, "errorHandler");;
|
||||
this.resultElement = checkNotNull(resultElement, "resultElement");
|
||||
this.resultHandler = checkNotNull(resultHandler, "resultHandler");
|
||||
this.errorHandler = checkNotNull(errorHandler, "errorHandler");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -72,8 +72,8 @@ public class ParseFirstJsonValueNamed<T> implements Function<HttpResponse, T> {
|
|||
AtomicReference<String> name = new AtomicReference<String>();
|
||||
JsonToken token = reader.peek();
|
||||
for (; token != JsonToken.END_DOCUMENT && nnn(this.name, reader, token, name); token = skipAndPeek(token,
|
||||
reader))
|
||||
;
|
||||
reader)) {
|
||||
}
|
||||
if (name.get() == null) {
|
||||
logger.trace("did not object named %s in json from response %s", this.name, arg0);
|
||||
return nothing();
|
||||
|
|
|
@ -107,7 +107,7 @@ public class Operation {
|
|||
* @see Operation#getHttpStatusCode()
|
||||
*/
|
||||
public Builder httpStatusCode(Integer httpStatusCode) {
|
||||
this.httpStatusCode = Optional.fromNullable(httpStatusCode);;
|
||||
this.httpStatusCode = Optional.fromNullable(httpStatusCode);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
@ -139,7 +139,7 @@ public class Operation {
|
|||
this.id = checkNotNull(id, "id");
|
||||
this.rawStatus = checkNotNull(rawStatus, "rawStatus for %s", id);
|
||||
this.status = checkNotNull(status, "status for %s", id);
|
||||
this.httpStatusCode = checkNotNull(httpStatusCode, "httpStatusCode for %s", id);;
|
||||
this.httpStatusCode = checkNotNull(httpStatusCode, "httpStatusCode for %s", id);
|
||||
this.error = checkNotNull(error, "error for %s", id);
|
||||
}
|
||||
|
||||
|
|
|
@ -124,7 +124,7 @@ public class Vdc extends Entity {
|
|||
* @see Vdc#getAvailableNetworks()
|
||||
*/
|
||||
public B network(Reference availableNetwork) {
|
||||
this.availableNetworks.add(checkNotNull(availableNetwork, "availableNetwork"));;
|
||||
this.availableNetworks.add(checkNotNull(availableNetwork, "availableNetwork"));
|
||||
return self();
|
||||
}
|
||||
|
||||
|
|
|
@ -127,7 +127,7 @@ public class RasdItem extends ResourceAllocationSettingData {
|
|||
super(builder);
|
||||
this.type = builder.type;
|
||||
this.href = builder.href;
|
||||
this.links = builder.links != null && builder.links.isEmpty() ? null : builder.links;;
|
||||
this.links = builder.links != null && builder.links.isEmpty() ? null : builder.links;
|
||||
}
|
||||
|
||||
protected RasdItem() {
|
||||
|
|
|
@ -142,7 +142,7 @@ public class OperatingSystemSection extends org.jclouds.dmtf.ovf.OperatingSystem
|
|||
this.osType = builder.osType;
|
||||
this.href = builder.href;
|
||||
this.type = builder.type;
|
||||
this.links = builder.links != null && builder.links.isEmpty() ? null : builder.links;;
|
||||
this.links = builder.links != null && builder.links.isEmpty() ? null : builder.links;
|
||||
}
|
||||
|
||||
protected OperatingSystemSection() {
|
||||
|
|
|
@ -132,7 +132,7 @@ public class VirtualHardwareSection extends org.jclouds.dmtf.ovf.VirtualHardware
|
|||
super(builder);
|
||||
this.type = builder.type;
|
||||
this.href = builder.href;
|
||||
this.links = builder.links != null && builder.links.isEmpty() ? null : builder.links;;
|
||||
this.links = builder.links != null && builder.links.isEmpty() ? null : builder.links;
|
||||
}
|
||||
|
||||
protected VirtualHardwareSection() {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
<property name="severity" value="warning"/>
|
||||
<module name="NewlineAtEndOfFile"/>
|
||||
<module name="TreeWalker">
|
||||
<module name="EmptyStatement"/>
|
||||
<module name="LineLength">
|
||||
<property name="ignorePattern" value="^import\s.*;$"/>
|
||||
<property name="max" value="120"/>
|
||||
|
|
Loading…
Reference in New Issue