Fix warnings in java libtiled

A fix for those warnings in libtiled which are often set to error