Update java-api.xml

remove wrong spaces