Add missing @Override annotations

Also remove bogus inheritDoc on base methods.
This commit is contained in:
Andrew Gaul 2014-08-31 20:00:52 -07:00
parent 1f44b9d822
commit ee31c02454
20 changed files with 15 additions and 54 deletions

View File

@ -59,6 +59,7 @@ public abstract class AbstractDisk extends Resource {
/**
* {@inheritDoc}
*/
@Override
protected MoreObjects.ToStringHelper string() {
return super.string()
.omitNullValues()

View File

@ -100,6 +100,7 @@ public final class Address extends Resource {
/**
* {@inheritDoc}
*/
@Override
protected MoreObjects.ToStringHelper string() {
return super.string()
.omitNullValues()

View File

@ -105,9 +105,6 @@ public class Deprecated {
&& equal(this.deleted, that.deleted);
}
/**
* {@inheritDoc}
*/
protected MoreObjects.ToStringHelper string() {
return toStringHelper(this)
.omitNullValues()

View File

@ -69,6 +69,7 @@ public final class Disk extends AbstractDisk {
/**
* {@inheritDoc}
*/
@Override
protected MoreObjects.ToStringHelper string() {
return super.string()
.omitNullValues()

View File

@ -114,6 +114,7 @@ public final class Firewall extends Resource {
/**
* {@inheritDoc}
*/
@Override
protected MoreObjects.ToStringHelper string() {
return super.string()
.add("network", network)
@ -303,9 +304,6 @@ public final class Firewall extends Resource {
&& equal(this.ports, that.ports);
}
/**
* {@inheritDoc}
*/
public MoreObjects.ToStringHelper string() {
return toStringHelper(this)
.add("IpProtocol", ipProtocol).add("ports", ports);

View File

@ -78,6 +78,7 @@ public final class Image extends Resource {
/**
* {@inheritDoc}
*/
@Override
protected MoreObjects.ToStringHelper string() {
return super.string()
.omitNullValues()
@ -215,9 +216,6 @@ public final class Image extends Resource {
&& equal(this.sha1Checksum, that.sha1Checksum);
}
/**
* {@inheritDoc}
*/
protected MoreObjects.ToStringHelper string() {
return toStringHelper(this)
.omitNullValues()

View File

@ -167,6 +167,7 @@ public class Instance extends Resource {
/**
* {@inheritDoc}
*/
@Override
protected MoreObjects.ToStringHelper string() {
return super.string()
.omitNullValues()
@ -387,9 +388,6 @@ public class Instance extends Resource {
&& equal(this.fingerprint, that.fingerprint);
}
/**
* {@inheritDoc}
*/
protected MoreObjects.ToStringHelper string() {
return toStringHelper(this)
.add("items", items)
@ -493,9 +491,6 @@ public class Instance extends Resource {
return equal(this.index, that.index);
}
/**
* {@inheritDoc}
*/
protected MoreObjects.ToStringHelper string() {
return toStringHelper(this).add("index", index);
}
@ -594,6 +589,7 @@ public class Instance extends Resource {
/**
* {@inheritDoc}
*/
@Override
protected MoreObjects.ToStringHelper string() {
return toStringHelper(this).add("boot", boot);
}
@ -744,9 +740,6 @@ public class Instance extends Resource {
&& equal(this.network, that.network);
}
/**
* {@inheritDoc}
*/
protected MoreObjects.ToStringHelper string() {
return toStringHelper(this)
.add("name", name)
@ -898,9 +891,6 @@ public class Instance extends Resource {
&& equal(this.natIP, that.natIP);
}
/**
* {@inheritDoc}
*/
protected MoreObjects.ToStringHelper string() {
return toStringHelper(this)
.add("name", name).add("type", type).add("natIP", natIP);
@ -1016,9 +1006,6 @@ public class Instance extends Resource {
return equal(this.selfLink, that.selfLink);
}
/**
* {@inheritDoc}
*/
protected MoreObjects.ToStringHelper string() {
return toStringHelper(this).add("selfLink", selfLink).add("contents", contents);
}
@ -1124,9 +1111,6 @@ public class Instance extends Resource {
&& equal(this.scopes, that.scopes);
}
/**
* {@inheritDoc}
*/
protected MoreObjects.ToStringHelper string() {
return toStringHelper(this).add("email", email).add("scopes", scopes);
}

View File

@ -418,9 +418,6 @@ public class InstanceTemplate {
return Objects.hashCode(description, image, disks, networkInterfaces, metadata, serviceAccounts);
}
/**
* {@inheritDoc}
*/
protected MoreObjects.ToStringHelper string() {
MoreObjects.ToStringHelper toString = MoreObjects.toStringHelper("")
.omitNullValues();

View File

@ -96,9 +96,6 @@ public class ListPage<T> extends IterableWithMarker<T> {
&& equal(this.id, that.id);
}
/**
* {@inheritDoc}
*/
protected MoreObjects.ToStringHelper string() {
return toStringHelper(this)
.omitNullValues()

View File

@ -142,6 +142,7 @@ public final class MachineType extends Resource {
/**
* {@inheritDoc}
*/
@Override
protected MoreObjects.ToStringHelper string() {
return super.string()
.add("guestCpus", guestCpus)
@ -313,9 +314,6 @@ public final class MachineType extends Resource {
return equal(this.diskGb, that.diskGb);
}
/**
* {@inheritDoc}
*/
protected MoreObjects.ToStringHelper string() {
return toStringHelper(this)
.add("diskGb", diskGb);

View File

@ -78,9 +78,6 @@ public class Metadata {
&& equal(this.fingerprint, that.fingerprint);
}
/**
* {@inheritDoc}
*/
protected MoreObjects.ToStringHelper string() {
return toStringHelper(this)
.add("items", items)

View File

@ -71,6 +71,7 @@ public final class Network extends Resource {
/**
* {@inheritDoc}
*/
@Override
protected MoreObjects.ToStringHelper string() {
return super.string()
.omitNullValues()

View File

@ -204,6 +204,7 @@ public class Operation extends Resource {
/**
* {@inheritDoc}
*/
@Override
protected MoreObjects.ToStringHelper string() {
return super.string()
.omitNullValues()
@ -487,9 +488,6 @@ public class Operation extends Resource {
&& equal(this.message, that.message);
}
/**
* {@inheritDoc}
*/
protected MoreObjects.ToStringHelper string() {
return toStringHelper(this)
.omitNullValues()

View File

@ -74,6 +74,7 @@ public class Project extends Resource {
/**
* {@inheritDoc}
*/
@Override
protected MoreObjects.ToStringHelper string() {
return super.string()
.add("commonInstanceMetadata", commonInstanceMetadata)

View File

@ -85,9 +85,6 @@ public class Quota {
return Objects.equal(this.metric, that.metric);
}
/**
* {@inheritDoc}
*/
public ToStringHelper string() {
return MoreObjects.toStringHelper(this)
.omitNullValues()

View File

@ -85,6 +85,7 @@ public final class Region extends Resource {
/**
* {@inheritDoc}
*/
@Override
protected MoreObjects.ToStringHelper string() {
return super.string()
.add("status", status)

View File

@ -169,9 +169,6 @@ public class Resource {
&& equal(this.name, that.name);
}
/**
* {@inheritDoc}
*/
protected ToStringHelper string() {
return toStringHelper(this)
.omitNullValues()

View File

@ -141,6 +141,7 @@ public final class Route extends Resource {
/**
* {@inheritDoc}
*/
@Override
protected MoreObjects.ToStringHelper string() {
return super.string()
.add("network", network)
@ -357,9 +358,6 @@ public final class Route extends Resource {
&& equal(this.data, that.data);
}
/**
* {@inheritDoc}
*/
protected MoreObjects.ToStringHelper string() {
return toStringHelper(this)
.add("code", code)

View File

@ -70,6 +70,7 @@ public final class Snapshot extends AbstractDisk {
/**
* {@inheritDoc}
*/
@Override
protected MoreObjects.ToStringHelper string() {
return super.string()
.omitNullValues()

View File

@ -91,6 +91,7 @@ public final class Zone extends Resource {
/**
* {@inheritDoc}
*/
@Override
protected MoreObjects.ToStringHelper string() {
return super.string()
.add("status", status)
@ -251,9 +252,6 @@ public final class Zone extends Resource {
&& equal(this.endTime, that.endTime);
}
/**
* {@inheritDoc}
*/
protected MoreObjects.ToStringHelper string() {
return toStringHelper(this)
.omitNullValues()