[
https://issues.apache.org/jira/browse/LUCENE-7077?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15184822#comment-15184822
]
ASF subversion and git services commented on LUCENE-7077:
---------------------------------------------------------
Commit 914003d19a7c44a8d9aa5fd0a7a6e59882eb1c69 in lucene-solr's branch
refs/heads/branch_6x from [~rcmuir]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=914003d ]
LUCENE-7077: fail precommit on useless assignment
> fail precommit on useless assignment
> ------------------------------------
>
> Key: LUCENE-7077
> URL: https://issues.apache.org/jira/browse/LUCENE-7077
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Robert Muir
> Attachments: LUCENE-7077.patch
>
>
> I found LUCENE-7073 because of a compiler warning in my IDE. It slipped all
> the way through buggy tests too! I think we should fail when "assignment has
> no effect", rather than just rely on someone to catch it visually.
> This is very specific and will not trigger a bunch of false positives: but
> can indicate a common bug in e.g. constructors for POJO classes and so on.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]