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
37c7b766
Commit
37c7b766
authored
Apr 04, 2017
by
Adam Cozzette
Committed by
GitHub
Apr 04, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2930 from anuraaga/dev_rag
Fix error message for int64 parse failure.
parents
cc3fa2ec
58373fa1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
.gitignore
.gitignore
+2
-0
JsonFormat.java
...il/src/main/java/com/google/protobuf/util/JsonFormat.java
+1
-1
No files found.
.gitignore
View file @
37c7b766
...
...
@@ -84,6 +84,8 @@ src/**/*.trs
java/core/target
java/util/target
javanano/target
java/.idea
java/**/*.iml
# Windows native output.
cmake/build
...
...
java/util/src/main/java/com/google/protobuf/util/JsonFormat.java
View file @
37c7b766
...
...
@@ -1536,7 +1536,7 @@ public class JsonFormat {
BigDecimal
value
=
new
BigDecimal
(
json
.
getAsString
());
return
value
.
longValueExact
();
}
catch
(
Exception
e
)
{
throw
new
InvalidProtocolBufferException
(
"Not an int
32
value: "
+
json
);
throw
new
InvalidProtocolBufferException
(
"Not an int
64
value: "
+
json
);
}
}
...
...
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