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

kenneth_suter
30.32.2007 7ce5509e2b3cd33217f39bc65fcec43358e47f75
unwrapped message descriptor javadoc to support textural search of messages in descriptors irrespective of line breaks
1 files modified
8 ■■■■ changed files
opends/src/build-tools/org/opends/build/tools/GenerateMessageFile.java 8 ●●●● patch | view | raw | blame | history
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);