MCPcopy Create free account
hub / github.com/dynjs/dynjs / toString

Method toString

src/main/java/org/dynjs/runtime/Classpath.java:17–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15 }
16
17 @Override
18 public String toString() {
19 if (classLoader.getURLs().length == 0) {
20 return "[]";
21 }
22 StringBuilder builder = new StringBuilder("[");
23 for (URL url : classLoader.getURLs()) {
24 builder.append(url.toExternalForm());
25 builder.append(", ");
26 }
27 // chop off the last two characters: ", "
28 builder.delete(builder.length() - 2, builder.length());
29 builder.append("]");
30 return builder.toString();
31 }
32}

Callers

nothing calls this directly

Calls 3

appendMethod · 0.80
lengthMethod · 0.80
deleteMethod · 0.65

Tested by

no test coverage detected