private Matcher getClassNameRegex(String propertySuffix) { String regex = System.getProperty("jmockit-coverage-" + propertySuffix, ""); return regex.length() == 0 ? null : Pattern.compile(regex).matcher(""); }
ClassSelection() { classesToInclude = getClassNameRegex("classes"); classesToExclude = getClassNameRegex("excludes"); testCode = Startup.isTestRun() ? Pattern.compile(".+Test(\\$.+)?").matcher("") : null; }