这是indexloc提供的服务,不要输入任何密码
Skip to content

Unnecessary finisher #18683

@viliam-durina

Description

@viliam-durina

In this code:

the size of state is never 3 - the integrator never leaves such state. The finisher can be removed.

Also, using ArrayList for this task is insane: removeFirst needs to copy the entire array. ArrayDeque would be much more efficient.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triagedIssues reviewed by a dev and considered valid. Will be added in Jira.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions