We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b893fbc commit ac5d7baCopy full SHA for ac5d7ba
bw-util-jmx/src/main/java/org/bedework/util/jmx/InfoLines.java
@@ -27,16 +27,26 @@
27
*/
28
public class InfoLines extends ArrayList<String> {
29
/** Appends newline
30
- * @param ln
+ * @param ln line content
31
32
public void addLn(final String ln) {
33
add(ln + "\n");
34
}
35
36
/** Emit the exception message
37
- * @param t
+ * @param t Throwable
38
39
public void exceptionMsg(final Throwable t) {
40
addLn("Exception - check logs: " + t.getMessage());
41
42
+
43
+ public String toString() {
44
+ final StringBuilder sb = new StringBuilder();
45
46
+ for (final String s : this) {
47
+ sb.append(s).append('\n');
48
+ }
49
50
+ return sb.toString();
51
52
0 commit comments