Fix java rendering style