Changed code to conform with JDK 7 standards
- try-with-resources
- use of diamond operator
- use of compound operators
- removed redundant code
- added @Override annotation
- more...
Signed-off-by:thehutch <th3hutch@yahoo.co.uk>