You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Daniel Jelinski (JIRA)" <ji...@apache.org> on 2017/04/07 21:01:41 UTC

[jira] [Updated] (LUCENE-7772) IDEA: field can be local

     [ https://issues.apache.org/jira/browse/LUCENE-7772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Jelinski updated LUCENE-7772:
------------------------------------
    Attachment: LUCENE-7772.patch

Most cases are straightforward (the field was either moved to method or made static final); in some cases I was able to remove larger portions of code (like ShardResponse.setResponseCode appears to be useless)

> IDEA: field can be local
> ------------------------
>
>                 Key: LUCENE-7772
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7772
>             Project: Lucene - Core
>          Issue Type: Sub-task
>            Reporter: Daniel Jelinski
>            Priority: Minor
>         Attachments: LUCENE-7772.patch
>
>
> This one is an IDEA inspection, not Findbugs; it is looking for private fields that are used in one method only, and either their usage starts from assignment, or they are initialized in line and never assigned to after that.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org