ivenvd
2013-06-17 17:23:37 +08:00
这也值得吐槽?看看我们的代码:
switch(i){
case 1:
agentType = Constants.AGENT_1;
break;
case 2:
agentType = Constants.AGENT_2;
break;
case 6:
agentType = Constants.AGENT_6;
break;
case 10:
agentType = Constants.AGENT_10;
break;
case 11:
agentType = Constants.AGENT_11;
break;
case 12:
agentType = Constants.AGENT_12;
break;
case 13:
agentType = Constants.AGENT_13;
break;
case 20:
agentType = Constants.AGENT_20;
break;
case 21:
agentType = Constants.AGENT_21;
break;
case 22:
agentType = Constants.AGENT_22;
break;
case 23:
agentType = Constants.AGENT_23;
break;
case 24:
agentType = Constants.AGENT_24;
break;
case 25:
agentType = Constants.AGENT_25;
break;
default:
agentType = Constants.AGENT_DEFAULT;
}