question: public void calcPercents ( ) { if ( count == 0 ) { logger . info ( "can't divide by zero" ) ; return ; } if ( subItems != null && ! subItems . isEmpty ( ) ) { for ( GraphicLogAnalysisResultItem item : subItems ) { item . setPercent ( ( item . getCount ( ) * 100.0f ) / count ) ; item . calcPercents ( ) ; } } }
target:  Calculate percents of sub items and sub items