[jira] [Updated] (LUCENE-8167) fail precommit on incompleteEnumSwitch
[ https://issues.apache.org/jira/browse/LUCENE-8167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christine Poerschke updated LUCENE-8167: Attachment: LUCENE-8167-prep.patch > 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (LUCENE-8167) fail precommit on incompleteEnumSwitch
[ https://issues.apache.org/jira/browse/LUCENE-8167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christine Poerschke updated LUCENE-8167: Attachment: LUCENE-8167.patch > 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.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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (LUCENE-8167) fail precommit on incompleteEnumSwitch
[ https://issues.apache.org/jira/browse/LUCENE-8167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christine Poerschke updated LUCENE-8167: Description: 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. > 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 > > 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (LUCENE-8167) fail precommit on incompleteEnumSwitch
[ https://issues.apache.org/jira/browse/LUCENE-8167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christine Poerschke updated LUCENE-8167: Environment: (was: 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.) > 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 > -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org