Java Java String Format toJavadocComment(String comment)

Here you can find the source of toJavadocComment(String comment)

Description

to Javadoc Comment

License

Apache License

Declaration

public static String toJavadocComment(String comment) 

Method Source Code

//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";
    }
}

Related

  1. toJavaBeanPropertyName(String prop)
  2. toJavaBool(byte goBool)
  3. toJavaCasing(final String pName)
  4. toJavaClassName(String str)
  5. toJavaConstantIdentifier(String name)
  6. toJavaEnum(String inStr)
  7. toJavaHex(byte in[], int len)
  8. toJavaHexCharString(final char chr)
  9. toJavaIdentifier(String name)