MCPcopy Create free account
hub / github.com/apache/cloudstack / toString

Method toString

utils/src/main/java/com/cloud/utils/Journal.java:63–75  ·  view source on GitHub ↗
(StringBuilder buf, String msg, Object[] params)

Source from the content-addressed store, hash-verified

61 }
62
63 protected void toString(StringBuilder buf, String msg, Object[] params) {
64 buf.append(msg);
65 if (params != null) {
66 buf.append(" - ");
67 int i = 0;
68 for (Object obj : params) {
69 buf.append('P').append(i).append('=');
70 buf.append(obj != null ? obj.toString() : "null");
71 buf.append(", ");
72 }
73 buf.delete(buf.length() - 2, buf.length());
74 }
75 }
76
77 public String toString(String separator) {
78 StringBuilder buf = new StringBuilder(_name).append(": ");

Callers 1

recordMethod · 0.95

Calls 4

deleteMethod · 0.65
appendMethod · 0.45
firstMethod · 0.45
secondMethod · 0.45

Tested by

no test coverage detected