tidy up java version