Netbeans suggested optimisations