Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
43af40dc
Commit
43af40dc
authored
Aug 01, 2009
by
temporal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove @Override annotations that cause compiler errors on Java 1.5.
parent
f837b006
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
11 deletions
+0
-11
Descriptors.java
java/src/main/java/com/google/protobuf/Descriptors.java
+0
-1
java_message.cc
src/google/protobuf/compiler/java/java_message.cc
+0
-10
No files found.
java/src/main/java/com/google/protobuf/Descriptors.java
View file @
43af40dc
...
@@ -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
...
...
src/google/protobuf/compiler/java/java_message.cc
View file @
43af40dc
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment