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
06bb8e76
Commit
06bb8e76
authored
Oct 11, 2018
by
Sebastian Lövdahl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary cast in generated Java code
parent
2009d453
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
java_message_builder.cc
src/google/protobuf/compiler/java/java_message_builder.cc
+10
-10
No files found.
src/google/protobuf/compiler/java/java_message_builder.cc
View file @
06bb8e76
...
...
@@ -461,35 +461,35 @@ GenerateCommonBuilderMethods(io::Printer* printer) {
printer
->
Print
(
"@java.lang.Override
\n
"
"public Builder clone() {
\n
"
" return
(Builder)
super.clone();
\n
"
" return super.clone();
\n
"
"}
\n
"
"@java.lang.Override
\n
"
"public Builder setField(
\n
"
" com.google.protobuf.Descriptors.FieldDescriptor field,
\n
"
" java.lang.Object value) {
\n
"
" return
(Builder)
super.setField(field, value);
\n
"
" return super.setField(field, value);
\n
"
"}
\n
"
"@java.lang.Override
\n
"
"public Builder clearField(
\n
"
" com.google.protobuf.Descriptors.FieldDescriptor field) {
\n
"
" return
(Builder)
super.clearField(field);
\n
"
" return super.clearField(field);
\n
"
"}
\n
"
"@java.lang.Override
\n
"
"public Builder clearOneof(
\n
"
" com.google.protobuf.Descriptors.OneofDescriptor oneof) {
\n
"
" return
(Builder)
super.clearOneof(oneof);
\n
"
" return super.clearOneof(oneof);
\n
"
"}
\n
"
"@java.lang.Override
\n
"
"public Builder setRepeatedField(
\n
"
" com.google.protobuf.Descriptors.FieldDescriptor field,
\n
"
" int index, java.lang.Object value) {
\n
"
" return
(Builder)
super.setRepeatedField(field, index, value);
\n
"
" return super.setRepeatedField(field, index, value);
\n
"
"}
\n
"
"@java.lang.Override
\n
"
"public Builder addRepeatedField(
\n
"
" com.google.protobuf.Descriptors.FieldDescriptor field,
\n
"
" java.lang.Object value) {
\n
"
" return
(Builder)
super.addRepeatedField(field, value);
\n
"
" return super.addRepeatedField(field, value);
\n
"
"}
\n
"
);
if
(
descriptor_
->
extension_range_count
()
>
0
)
{
...
...
@@ -499,27 +499,27 @@ GenerateCommonBuilderMethods(io::Printer* printer) {
" com.google.protobuf.GeneratedMessage.GeneratedExtension<
\n
"
" $classname$, Type> extension,
\n
"
" Type value) {
\n
"
" return
(Builder)
super.setExtension(extension, value);
\n
"
" return super.setExtension(extension, value);
\n
"
"}
\n
"
"@java.lang.Override
\n
"
"public <Type> Builder setExtension(
\n
"
" com.google.protobuf.GeneratedMessage.GeneratedExtension<
\n
"
" $classname$, java.util.List<Type>> extension,
\n
"
" int index, Type value) {
\n
"
" return
(Builder)
super.setExtension(extension, index, value);
\n
"
" return super.setExtension(extension, index, value);
\n
"
"}
\n
"
"@java.lang.Override
\n
"
"public <Type> Builder addExtension(
\n
"
" com.google.protobuf.GeneratedMessage.GeneratedExtension<
\n
"
" $classname$, java.util.List<Type>> extension,
\n
"
" Type value) {
\n
"
" return
(Builder)
super.addExtension(extension, value);
\n
"
" return super.addExtension(extension, value);
\n
"
"}
\n
"
"@java.lang.Override
\n
"
"public <Type> Builder clearExtension(
\n
"
" com.google.protobuf.GeneratedMessage.GeneratedExtension<
\n
"
" $classname$, ?> extension) {
\n
"
" return
(Builder)
super.clearExtension(extension);
\n
"
" return super.clearExtension(extension);
\n
"
"}
\n
"
,
"classname"
,
name_resolver_
->
GetImmutableClassName
(
descriptor_
));
}
...
...
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