Set comment type for Java