Skip to content

Commit

Permalink
fix: reuse reference instead of calling getter twice (#983)
Browse files Browse the repository at this point in the history
fix for #982

changed switch parameter in parseValue from calling getCurrentToken() again to just declared and assigned local member "token" two lines above
  • Loading branch information
cryptearth committed Feb 24, 2020
1 parent bec568d commit 1f66222
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -717,7 +717,7 @@ private final Object parseValue(
// value type is now null, class, parameterized type, or generic array type
JsonToken token = getCurrentToken();
try {
switch (getCurrentToken()) {
switch (token) {
case START_ARRAY:
case END_ARRAY:
boolean isArray = Types.isArray(valueType);
Expand Down

0 comments on commit 1f66222

Please sign in to comment.