Skip to content

[java] UnnecessaryLocalBeforeReturn: Enhance by checking usages #240

Closed

Description

@adangel

Rule Set: java-design

Description:
See discussion at #221:

We should probably drop the requirement for the declaration and the return being in consecutive lines, and simply check the number of uses of the variable being > 1. This also means no need for the current assert lookup.

Activity

  1. added this to the 5.5.4 milestone on Feb 6, 2017
  2. added
    an:enhancement
    on Feb 6, 2017
  3. self-assigned this
    on Feb 8, 2017
  4. added a commit that references this issue on Feb 8, 2017
    9eb2a06
  5. added 2 commits that reference this issue on Feb 14, 2017
    4137df4
    805846a
  6. added a commit that references this issue on Apr 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

an:enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions