libtiled-java: Fixed warnings and added annotations