Fixed error in java convensions