for (int i = 0; i < length; i++) {
Constant constant;
final Statement statement = this.statements[i];
if ((constant = statement.resolveCase(this.scope, expressionType, this)) != Constant.NotAConstant) {
if (!isStringSwitch) {
int key = constant.intValue();
//----check for duplicate case statement------------
for (int j = 0; j < counter; j++) {
if (this.constants[j] == key) {
reportDuplicateCase((CaseStatement) statement, this.cases[j], length);
}