fixing issue in java api creation where multiline doc comments were causing invalid java