public static void writeToBuffer(final JcfaComment jcfaComment,
final StringBuffer result) {
if (jcfaComment.isJavaDoc()) {
- result.append("/** ");
+ result.append("\n/** ");
} else {
- result.append("/* ");
+ result.append("\n/* ");
}
for (String comment : jcfaComment.getCommentList()) {
result.append(" " + comment + " ");
}
- result.append(" */");
+ result.append(" */\n");
}
}
-package test;/* TODO import is missing. */
+package test;
-public class TestJavaClass001 {/* *//* */
+/* TODO import is missing. */
+public class TestJavaClass001 {
+ /* */
+
+ /* */
}
\ No newline at end of file
-package test;/* TODO import is missing. */
+package test;
-public class TestJavaClass002 {/* */
- public static final String TEST_001;/* */
- protected static String test002;/* */
- private String test003;/* */
+/* TODO import is missing. */
+public class TestJavaClass002 {
+ /* */
+ public static final String TEST_001;
+ /* */
+ protected static String test002;
+ /* */
+ private String test003;
+ /* */
}
\ No newline at end of file