Commit 43af40dc authored by temporal's avatar temporal

Remove @Override annotations that cause compiler errors on Java 1.5.

parent f837b006
......@@ -1111,7 +1111,6 @@ public final class Descriptors {
* For internal use only. This is to satisfy the FieldDescriptorLite
* interface.
*/
@Override
public MessageLite.Builder internalMergeFrom(
MessageLite.Builder to, MessageLite from) {
// FieldDescriptors are only used with non-lite messages so we can just
......
......@@ -312,7 +312,6 @@ void MessageGenerator::Generate(io::Printer* printer) {
" return $fileclass$.internal_$identifier$_descriptor;\n"
"}\n"
"\n"
"@Override\n"
"protected com.google.protobuf.GeneratedMessage.FieldAccessorTable\n"
" internalGetFieldAccessorTable() {\n"
" return $fileclass$.internal_$identifier$_fieldAccessorTable;\n"
......@@ -392,7 +391,6 @@ GenerateMessageSerializationMethods(io::Printer* printer) {
ExtensionRangeOrdering());
printer->Print(
"@Override\n"
"public void writeTo(com.google.protobuf.CodedOutputStream output)\n"
" throws java.io.IOException {\n");
printer->Indent();
......@@ -442,7 +440,6 @@ GenerateMessageSerializationMethods(io::Printer* printer) {
"}\n"
"\n"
"private int memoizedSerializedSize = -1;\n"
"@Override\n"
"public int getSerializedSize() {\n"
" int size = memoizedSerializedSize;\n"
" if (size != -1) return size;\n"
......@@ -648,12 +645,10 @@ void MessageGenerator::GenerateCommonBuilderMethods(io::Printer* printer) {
" return builder;\n"
"}\n"
"\n"
"@Override\n"
"protected $classname$ internalGetResult() {\n"
" return result;\n"
"}\n"
"\n"
"@Override\n"
"public Builder clear() {\n"
" if (result == null) {\n"
" throw new IllegalStateException(\n"
......@@ -663,7 +658,6 @@ void MessageGenerator::GenerateCommonBuilderMethods(io::Printer* printer) {
" return this;\n"
"}\n"
"\n"
"@Override\n"
"public Builder clone() {\n"
" return create().mergeFrom(result);\n"
"}\n"
......@@ -671,7 +665,6 @@ void MessageGenerator::GenerateCommonBuilderMethods(io::Printer* printer) {
"classname", ClassName(descriptor_));
if (HasDescriptorMethods(descriptor_)) {
printer->Print(
"@Override\n"
"public com.google.protobuf.Descriptors.Descriptor\n"
" getDescriptorForType() {\n"
" return $classname$.getDescriptor();\n"
......@@ -738,7 +731,6 @@ void MessageGenerator::GenerateCommonBuilderMethods(io::Printer* printer) {
// messages type by its descriptor.
if (HasDescriptorMethods(descriptor_)) {
printer->Print(
"@Override\n"
"public Builder mergeFrom(com.google.protobuf.Message other) {\n"
" if (other instanceof $classname$) {\n"
" return mergeFrom(($classname$)other);\n"
......@@ -790,7 +782,6 @@ void MessageGenerator::GenerateBuilderParsingMethods(io::Printer* printer) {
SortFieldsByNumber(descriptor_));
printer->Print(
"@Override\n"
"public Builder mergeFrom(\n"
" com.google.protobuf.CodedInputStream input,\n"
" com.google.protobuf.ExtensionRegistryLite extensionRegistry)\n"
......@@ -870,7 +861,6 @@ void MessageGenerator::GenerateBuilderParsingMethods(io::Printer* printer) {
void MessageGenerator::GenerateIsInitialized(io::Printer* printer) {
printer->Print(
"@Override\n"
"public final boolean isInitialized() {\n");
printer->Indent();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment