fixed java issue with syntax