mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

kenneth_suter
30.32.2007 66ed20d3decba33ca11625c16ef582c61fbdffee
unwrapped message descriptor javadoc to support textural search of messages in descriptors irrespective of line breaks
1 files modified
8 ■■■■ changed files
opendj-sdk/opends/src/build-tools/org/opends/build/tools/GenerateMessageFile.java 8 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/build-tools/org/opends/build/tools/GenerateMessageFile.java
@@ -303,14 +303,18 @@
    }
    /**
     * Gets the comments that will appear above the messages declaration
     * Gets the javadoc comments that will appear above the messages declaration
     * in the messages file.
     * @return String comment
     */
    public String getComment() {
      StringBuilder sb = new StringBuilder();
      sb.append(indent(1)).append("/**").append(EOL);
      String ws = wrapText(formatString, 70);
      // Unwrapped so that you can search through the descriptor
      // file for a message and not have to worry about line breaks
      String ws = formatString; // wrapText(formatString, 70);
      String[] sa = ws.split(EOL);
      for (String s : sa) {
        sb.append(indent(1)).append(" * ").append(s).append(EOL);