The following document contains the results of PMD's CPD 4.2.5.
File | Line |
---|---|
org/jclouds/scriptbuilder/domain/AppendFile.java | 57 |
org/jclouds/scriptbuilder/domain/CreateRunScript.java | 107 |
} public static String escapeVarTokens(String toEscape, OsFamily family) { Map<String, String> inputToEscape = Maps.newHashMap(); for (ShellToken token : ImmutableList.of(ShellToken.VARL, ShellToken.VARR)) { if (!token.to(family).equals("")) { String tokenS = "{" + token.toString().toLowerCase() + "}"; inputToEscape.put(tokenS, "{escvar}" + tokenS); } } for (Entry<String, String> entry : inputToEscape.entrySet()) { toEscape = toEscape.replace(entry.getKey(), entry.getValue()); } return toEscape; } @Override public Iterable<String> functionDependencies(OsFamily family) { return Collections.emptyList(); } |