fix codenarc warnings