MCPcopy Create free account
hub / github.com/evernat/dead-code-detector / extractPatterns

Method extractPatterns

src/main/java/dcd/Parameters.java:222–230  ·  view source on GitHub ↗
(Properties properties, String string)

Source from the content-addressed store, hash-verified

220 }
221
222 private static List<Pattern> extractPatterns(Properties properties, String string) {
223 final List<Pattern> result = new ArrayList<>();
224 if (properties.containsKey(string) && !properties.getProperty(string).isEmpty()) {
225 for (final String s : properties.getProperty(string).split(SEPARATORS)) {
226 result.add(Pattern.compile(s.replace('$', '.')));
227 }
228 }
229 return result;
230 }
231
232 private static void checkPropertiesFile(File propertiesFile) throws IOException {
233 if (!propertiesFile.exists()) {

Callers 1

ParametersMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected