java: cleaned up code inspection complains