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