MCPcopy Create free account
hub / github.com/LFYSec/MScan / join

Method join

src/test/resources/pta/taint/ArrayTaint.java:10–21  ·  view source on GitHub ↗
(String delim, String[] strings)

Source from the content-addressed store, hash-verified

8 }
9
10 public static String join(String delim, String[] strings) {]
11 if (strings == null || strings.length == 0) {
12 return "";
13 }
14 StringBuilder sb = new StringBuilder();
15 for (int i = 0; i < strings.length - 1; i++) {
16 sb.append(strings[i]);
17 sb.append(delim);
18 }
19 sb.append(strings[strings.length - 1]);
20 return sb.toString();
21 }
22}

Callers 7

mainMethod · 0.95
testMethod · 0.80
testPTAMethod · 0.80
joinMappingMethod · 0.80
comparePointsToSetMethod · 0.80
compareTaintFlowsMethod · 0.80
extractDirMethod · 0.80

Calls 2

appendMethod · 0.95
toStringMethod · 0.95

Tested by

no test coverage detected