fixed java compliance