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
cd99c12d
Commit
cd99c12d
authored
Feb 06, 2015
by
Jisi Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename readData() to readPrimitiveField() in JavaNano.
parent
7f369318
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
CodedInputByteBufferNano.java
...va/com/google/protobuf/nano/CodedInputByteBufferNano.java
+1
-1
Extension.java
...ano/src/main/java/com/google/protobuf/nano/Extension.java
+1
-1
InternalNano.java
.../src/main/java/com/google/protobuf/nano/InternalNano.java
+2
-2
No files found.
javanano/src/main/java/com/google/protobuf/nano/CodedInputByteBufferNano.java
View file @
cd99c12d
...
...
@@ -640,7 +640,7 @@ public final class CodedInputByteBufferNano {
}
// Read a primitive type.
Object
read
Data
(
int
type
)
throws
IOException
{
Object
read
PrimitiveField
(
int
type
)
throws
IOException
{
switch
(
type
)
{
case
InternalNano
.
TYPE_DOUBLE
:
return
readDouble
();
...
...
javanano/src/main/java/com/google/protobuf/nano/Extension.java
View file @
cd99c12d
...
...
@@ -338,7 +338,7 @@ public class Extension<M extends ExtendableMessageNano<M>, T> {
@Override
protected
Object
readData
(
CodedInputByteBufferNano
input
)
{
try
{
return
input
.
read
Data
(
type
);
return
input
.
read
PrimitiveField
(
type
);
}
catch
(
IOException
e
)
{
throw
new
IllegalArgumentException
(
"Error reading extension field"
,
e
);
}
...
...
javanano/src/main/java/com/google/protobuf/nano/InternalNano.java
View file @
cd99c12d
...
...
@@ -421,12 +421,12 @@ public final class InternalNano {
break
;
}
if
(
tag
==
keyTag
)
{
key
=
(
K
)
input
.
read
Data
(
keyType
);
key
=
(
K
)
input
.
read
PrimitiveField
(
keyType
);
}
else
if
(
tag
==
valueTag
)
{
if
(
valueType
==
TYPE_MESSAGE
)
{
input
.
readMessage
((
MessageNano
)
value
);
}
else
{
value
=
(
V
)
input
.
read
Data
(
valueType
);
value
=
(
V
)
input
.
read
PrimitiveField
(
valueType
);
}
}
else
{
if
(!
input
.
skipField
(
tag
))
{
...
...
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