Try using this return
return i == 1;
or just use a boolean to start (with a better name):
public boolean clearSelection()
{
boolean flag = false;
if (!this.m_SelectedComps.isEmpty())
{
flag = true;
Iterator localIterator = this.m_SelectedComps.iterator();
while (localIterator.hasNext())
((AnnotComponent)localIterator.next()).remove();
this.m_SelectedComps.clear();
}
return flag;
}
It continues to mystify me why people use i
-- a horrible variable name. Looks like 1
and does not convey any meaning.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…