Suppressed all compiler warnings in the generated code

This commit is contained in:
Trustin Lee 2009-01-08 00:29:09 +00:00
parent 7a9c72fd76
commit d88246fbda

View File

@ -2,6 +2,7 @@
package org.jboss.netty.example.localtime;
@SuppressWarnings("all")
public final class LocalTimeProtocol {
private LocalTimeProtocol() {}
public static void registerAllExtensions(
@ -178,8 +179,12 @@ public final class LocalTimeProtocol {
@Override
public final boolean isInitialized() {
if (!hasContinent) return false;
if (!hasCity) return false;
if (!hasContinent) {
return false;
}
if (!hasCity) {
return false;
}
return true;
}
@ -199,7 +204,9 @@ public final class LocalTimeProtocol {
@Override
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
if (size != -1) {
return size;
}
size = 0;
if (hasContinent()) {
@ -335,14 +342,16 @@ public final class LocalTimeProtocol {
}
public Builder mergeFrom(org.jboss.netty.example.localtime.LocalTimeProtocol.Location other) {
if (other == org.jboss.netty.example.localtime.LocalTimeProtocol.Location.getDefaultInstance()) return this;
if (other == org.jboss.netty.example.localtime.LocalTimeProtocol.Location.getDefaultInstance()) {
return this;
}
if (other.hasContinent()) {
setContinent(other.getContinent());
}
if (other.hasCity()) {
setCity(other.getCity());
}
this.mergeUnknownFields(other.getUnknownFields());
mergeUnknownFields(other.getUnknownFields());
return this;
}
@ -361,17 +370,17 @@ public final class LocalTimeProtocol {
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder(
this.getUnknownFields());
getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
setUnknownFields(unknownFields.build());
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
setUnknownFields(unknownFields.build());
return this;
}
break;
@ -476,7 +485,9 @@ public final class LocalTimeProtocol {
@Override
public final boolean isInitialized() {
for (org.jboss.netty.example.localtime.LocalTimeProtocol.Location element : getLocationList()) {
if (!element.isInitialized()) return false;
if (!element.isInitialized()) {
return false;
}
}
return true;
}
@ -494,7 +505,9 @@ public final class LocalTimeProtocol {
@Override
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
if (size != -1) {
return size;
}
size = 0;
for (org.jboss.netty.example.localtime.LocalTimeProtocol.Location element : getLocationList()) {
@ -630,14 +643,16 @@ public final class LocalTimeProtocol {
}
public Builder mergeFrom(org.jboss.netty.example.localtime.LocalTimeProtocol.Locations other) {
if (other == org.jboss.netty.example.localtime.LocalTimeProtocol.Locations.getDefaultInstance()) return this;
if (other == org.jboss.netty.example.localtime.LocalTimeProtocol.Locations.getDefaultInstance()) {
return this;
}
if (!other.location_.isEmpty()) {
if (result.location_.isEmpty()) {
result.location_ = new java.util.ArrayList<org.jboss.netty.example.localtime.LocalTimeProtocol.Location>();
}
result.location_.addAll(other.location_);
}
this.mergeUnknownFields(other.getUnknownFields());
mergeUnknownFields(other.getUnknownFields());
return this;
}
@ -656,17 +671,17 @@ public final class LocalTimeProtocol {
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder(
this.getUnknownFields());
getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
setUnknownFields(unknownFields.build());
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
setUnknownFields(unknownFields.build());
return this;
}
break;
@ -802,13 +817,27 @@ public final class LocalTimeProtocol {
@Override
public final boolean isInitialized() {
if (!hasYear) return false;
if (!hasMonth) return false;
if (!hasDayOfMonth) return false;
if (!hasDayOfWeek) return false;
if (!hasHour) return false;
if (!hasMinute) return false;
if (!hasSecond) return false;
if (!hasYear) {
return false;
}
if (!hasMonth) {
return false;
}
if (!hasDayOfMonth) {
return false;
}
if (!hasDayOfWeek) {
return false;
}
if (!hasHour) {
return false;
}
if (!hasMinute) {
return false;
}
if (!hasSecond) {
return false;
}
return true;
}
@ -843,7 +872,9 @@ public final class LocalTimeProtocol {
@Override
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
if (size != -1) {
return size;
}
size = 0;
if (hasYear()) {
@ -999,7 +1030,9 @@ public final class LocalTimeProtocol {
}
public Builder mergeFrom(org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime other) {
if (other == org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime.getDefaultInstance()) return this;
if (other == org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime.getDefaultInstance()) {
return this;
}
if (other.hasYear()) {
setYear(other.getYear());
}
@ -1021,7 +1054,7 @@ public final class LocalTimeProtocol {
if (other.hasSecond()) {
setSecond(other.getSecond());
}
this.mergeUnknownFields(other.getUnknownFields());
mergeUnknownFields(other.getUnknownFields());
return this;
}
@ -1040,17 +1073,17 @@ public final class LocalTimeProtocol {
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder(
this.getUnknownFields());
getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
setUnknownFields(unknownFields.build());
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
setUnknownFields(unknownFields.build());
return this;
}
break;
@ -1265,7 +1298,9 @@ public final class LocalTimeProtocol {
@Override
public final boolean isInitialized() {
for (org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime element : getLocalTimeList()) {
if (!element.isInitialized()) return false;
if (!element.isInitialized()) {
return false;
}
}
return true;
}
@ -1283,7 +1318,9 @@ public final class LocalTimeProtocol {
@Override
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
if (size != -1) {
return size;
}
size = 0;
for (org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime element : getLocalTimeList()) {
@ -1419,14 +1456,16 @@ public final class LocalTimeProtocol {
}
public Builder mergeFrom(org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes other) {
if (other == org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes.getDefaultInstance()) return this;
if (other == org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes.getDefaultInstance()) {
return this;
}
if (!other.localTime_.isEmpty()) {
if (result.localTime_.isEmpty()) {
result.localTime_ = new java.util.ArrayList<org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTime>();
}
result.localTime_.addAll(other.localTime_);
}
this.mergeUnknownFields(other.getUnknownFields());
mergeUnknownFields(other.getUnknownFields());
return this;
}
@ -1445,17 +1484,17 @@ public final class LocalTimeProtocol {
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder(
this.getUnknownFields());
getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
setUnknownFields(unknownFields.build());
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
setUnknownFields(unknownFields.build());
return this;
}
break;