fix typo in java provider