Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Fastjson
Commits
2aaa195f
Commit
2aaa195f
authored
9 years ago
by
高铁
Browse files
Options
Download
Email Patches
Plain Diff
scanLongValue add error handler
parent
ce9694c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/com/alibaba/fastjson/parser/JSONLexer.java
+4
-8
src/main/java/com/alibaba/fastjson/parser/JSONLexer.java
with
4 additions
and
8 deletions
+4
-8
src/main/java/com/alibaba/fastjson/parser/JSONLexer.java
+
4
-
8
View file @
2aaa195f
...
...
@@ -1670,9 +1670,10 @@ public final class JSONLexer {
// next();
{
int
index
=
++
this
.
bp
;
this
.
ch
=
(
index
>=
this
.
len
?
//
EOI
//
:
text
.
charAt
(
index
));
if
(
index
>=
this
.
len
)
{
throw
new
JSONException
(
"syntax error, "
+
info
());
}
this
.
ch
=
text
.
charAt
(
index
);
}
}
else
{
negative
=
false
;
...
...
@@ -1711,11 +1712,6 @@ public final class JSONLexer {
longValue
=
-
longValue
;
}
if
(
ch
==
'L'
)
{
np
++;
next
();
}
return
longValue
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help