Thanks to visit codestin.com
Credit goes to github.com

Skip to content

calling getCurrentToken() twice in com.google.api.client.json.JsonParser #982

@ghost

Description

In com.google.api.client.json.JsonParser in parseValue(Field, Type, ArrayList, Object, CustomizeJsonParser, boolean) at about line 720 local member JsonToken token is declared and assigned with call to getCurrentToken(). Two lines below the switch() calls getCurrentToken() again instead of use just declared and assigned token local member. Should be refactored so the switch uses the just declared and assigned member.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: cleanupAn internal cleanup or hygiene concern.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions