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
23c5978a
Commit
23c5978a
authored
Jul 22, 2014
by
Brian Duff
Committed by
Gerrit Code Review
Jul 21, 2014
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Don't return NULL from {Boxed}PrimitiveTypeName."
parents
2a5f3f97
7acc0f83
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
javanano_helpers.cc
src/google/protobuf/compiler/javanano/javanano_helpers.cc
+4
-4
No files found.
src/google/protobuf/compiler/javanano/javanano_helpers.cc
View file @
23c5978a
...
...
@@ -336,14 +336,14 @@ string PrimitiveTypeName(JavaType type) {
case
JAVATYPE_STRING
:
return
"java.lang.String"
;
case
JAVATYPE_BYTES
:
return
"byte[]"
;
case
JAVATYPE_ENUM
:
return
"int"
;
case
JAVATYPE_MESSAGE
:
return
NULL
;
case
JAVATYPE_MESSAGE
:
return
""
;
// No default because we want the compiler to complain if any new
// JavaTypes are added.
}
GOOGLE_LOG
(
FATAL
)
<<
"Can't get here."
;
return
NULL
;
return
""
;
}
string
BoxedPrimitiveTypeName
(
JavaType
type
)
{
...
...
@@ -356,14 +356,14 @@ string BoxedPrimitiveTypeName(JavaType type) {
case
JAVATYPE_STRING
:
return
"java.lang.String"
;
case
JAVATYPE_BYTES
:
return
"byte[]"
;
case
JAVATYPE_ENUM
:
return
"java.lang.Integer"
;
case
JAVATYPE_MESSAGE
:
return
NULL
;
case
JAVATYPE_MESSAGE
:
return
""
;
// No default because we want the compiler to complain if any new
// JavaTypes are added.
}
GOOGLE_LOG
(
FATAL
)
<<
"Can't get here."
;
return
NULL
;
return
""
;
}
string
EmptyArrayName
(
const
Params
&
params
,
const
FieldDescriptor
*
field
)
{
...
...
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