Review completely the javalib

drop the else part