Fix last warnings in Java backend