Update some java code