类型不匹配:无法从整数转换为布尔值
2022-09-02 14:18:16
public boolean clearSelection() {
int i = 0;
if (!this.m_SelectedComps.isEmpty()) {
i = 1;
Iterator localIterator = this.m_SelectedComps.iterator();
while (localIterator.hasNext())
((AnnotComponent) localIterator.next()).remove();
this.m_SelectedComps.clear();
}
return i;
}
如何将整数转换为布尔值?