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 {
* 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
...
...
src/google/protobuf/compiler/java/java_message.cc
View file @
43af40dc
...
...
@@ -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
();
...
...
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