MCPcopy Create free account
hub / github.com/apache/tomcat / string

Method string

test/org/apache/tomcat/unittest/TesterData.java:21–27  ·  view source on GitHub ↗
(char c, int count)

Source from the content-addressed store, hash-verified

19public class TesterData {
20
21 public static String string(char c, int count) {
22 StringBuilder sb = new StringBuilder(count);
23 for (int i = 0; i < count; i++) {
24 sb.append(c);
25 }
26 return sb.toString();
27 }
28
29
30 public static String string(String str, int count) {

Callers 1

Calls 3

lengthMethod · 0.80
toStringMethod · 0.65
appendMethod · 0.45

Tested by

no test coverage detected