Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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