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;
}
How to convert the integer to boolean?
Try using this return
or just use a boolean to start (with a better name):
It continues to mystify me why people use
i— a horrible variable name. Looks like1and does not convey any meaning.