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
9aaa8e1e
Commit
9aaa8e1e
authored
Oct 26, 2017
by
Jisi Liu
Committed by
GitHub
Oct 26, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3804 from pherl/merge
Merge 3.4.x into master before cutting 3.5.x
parents
2fc7aea3
cdc0d953
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
Makefile.am
Makefile.am
+1
-0
generate-test-sources-build.xml
java/core/generate-test-sources-build.xml
+1
-0
java_file.cc
src/google/protobuf/compiler/java/java_file.cc
+5
-2
No files found.
Makefile.am
View file @
9aaa8e1e
...
...
@@ -333,6 +333,7 @@ java_EXTRA_DIST=
java/core/src/test/java/com/google/protobuf/WellKnownTypesTest.java
\
java/core/src/test/java/com/google/protobuf/WireFormatTest.java
\
java/core/src/test/proto/com/google/protobuf/any_test.proto
\
java/core/src/test/proto/com/google/protobuf/deprecated_file.proto
\
java/core/src/test/proto/com/google/protobuf/field_presence_test.proto
\
java/core/src/test/proto/com/google/protobuf/lazy_fields_lite.proto
\
java/core/src/test/proto/com/google/protobuf/lite_equals_and_hash.proto
\
...
...
java/core/generate-test-sources-build.xml
View file @
9aaa8e1e
...
...
@@ -19,6 +19,7 @@
<arg
value=
"${protobuf.source.dir}/google/protobuf/unittest_enormous_descriptor.proto"
/>
<arg
value=
"${protobuf.source.dir}/google/protobuf/unittest_no_generic_services.proto"
/>
<arg
value=
"${protobuf.source.dir}/google/protobuf/unittest_well_known_types.proto"
/>
<arg
value=
"${test.proto.dir}/com/google/protobuf/deprecated_file.proto"
/>
<arg
value=
"${test.proto.dir}/com/google/protobuf/lazy_fields_lite.proto"
/>
<arg
value=
"${test.proto.dir}/com/google/protobuf/lite_equals_and_hash.proto"
/>
<arg
value=
"${test.proto.dir}/com/google/protobuf/multiple_files_test.proto"
/>
...
...
src/google/protobuf/compiler/java/java_file.cc
View file @
9aaa8e1e
...
...
@@ -248,9 +248,12 @@ void FileGenerator::Generate(io::Printer* printer) {
PrintGeneratedAnnotation
(
printer
,
'$'
,
options_
.
annotate_code
?
classname_
+
".java.pb.meta"
:
""
);
printer
->
Print
(
"public final class $classname$ {
\n
"
"
$deprecation$
public final class $classname$ {
\n
"
" private $ctor$() {}
\n
"
,
"classname"
,
classname_
,
"ctor"
,
classname_
);
"deprecation"
,
file_
->
options
().
deprecated
()
?
"@java.lang.Deprecated "
:
""
,
"classname"
,
classname_
,
"ctor"
,
classname_
);
printer
->
Annotate
(
"classname"
,
file_
->
name
());
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