Remove java version build warnings