if (score == null) { // TODO: Integer inList = this.findInList(name); if (inList != null) { this.cache.put(name, inList); return inList; } }
感觉 大家 都少了 return inList;
这个return 反正 我的少了 结果就不对
那你认为后面的return三元运算符有何意义,不直接socre.intValue()得了
Sign in to make a reply
🌙
if (score == null) {
// TODO:
Integer inList = this.findInList(name);
if (inList != null) {
this.cache.put(name, inList);
return inList;
}
}