public boolean clearSelection() { int i = 0; if (!this.m_SelectedComps.isEmpty()) { i = 1; Iterator localIterator = this.m_SelectedComps.iter
May be you can just modify your return statement without much change to code as below:
return i > 0 ? true : false ;