Removed some java compile time warnings