if ((CommunicationPatternType.SIMPLE_RESPONSE == communicationPattern)
|| ((CommunicationPatternType.MULTIPLE_BATCH_RESPONSE == communicationPattern) && (0 == lHowmany))) // 获取全部
{
nbiFirstBackupList = iter.getAll();
}
else if (CommunicationPatternType.MULTIPLE_BATCH_RESPONSE == communicationPattern)// 分批获取
{
nbiFirstBackupList = iter
.getFirst(BigInteger.valueOf(lHowmany));
}
上面这段代正确吗? 没有else .我在想如果它既不走if 也不走else if ,那不就要报错了?
有if ,也有else if 没有else 那这种判断会不会有缺陷啊?我觉得好像有点不合理。