Here you can find the source of toJavadocComment(String comment)
public static String toJavadocComment(String comment)
//package com.java2s; //License from project: Apache License public class Main { public static String toJavadocComment(String comment) { if (comment == null) { return ""; }/* ww w. j a va2s .c o m*/ return "/** " + comment.replace("\n", " ") + " */\n"; } }