You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/02/12 18:06:01 UTC
[jira] [Commented] (LUCENE-8167) fail precommit on
incompleteEnumSwitch
[ https://issues.apache.org/jira/browse/LUCENE-8167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16361192#comment-16361192 ]
ASF subversion and git services commented on LUCENE-8167:
---------------------------------------------------------
Commit 298d90b6215b824b779af7e09c2b855eb82481b4 in lucene-solr's branch refs/heads/master from [~cpoerschke]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=298d90b ]
LUCENE-8167: fix two incompleteEnumSwitch warnings in solr/solrj
> fail precommit on incompleteEnumSwitch
> --------------------------------------
>
> Key: LUCENE-8167
> URL: https://issues.apache.org/jira/browse/LUCENE-8167
> Project: Lucene - Core
> Issue Type: Task
> Reporter: Christine Poerschke
> Assignee: Christine Poerschke
> Priority: Minor
> Attachments: LUCENE-8167-prep.patch, LUCENE-8167.patch
>
>
> Illustration assuming an enum that has values A, B, C and D:
> {code}
> switch (...) {
> case A:
> case B:
> ...
> break;
> case C:
> ...
> break;
> case D:
> break;
> }
> {code}
> and
> {code}
> switch (...) {
> case A:
> case B:
> ...
> break;
> case C:
> ...
> break;
> default:
> break;
> }
> {code}
> would pass but
> {code}
> switch (...) {
> case A:
> case B:
> ...
> break;
> case C:
> ...
> break;
> }
> {code}
> would fail.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org