private Set<String> getClassName(ProfilerConfig profilerConfig) { final String classNameList = profilerConfig.readString(DUMP_CLASS_LIST, ""); if (classNameList.isEmpty()) { return Collections.emptySet(); } else { final List<String> classList = StringUtils.splitAndTrim(classNameList, ","); final List<String> jvmClassList = javaNameToJvmName(classList); return new HashSet<String>(jvmClassList); } }
public ExcludePathFilter( String excludePathFormatString, String pathSeparator, String formatSeparator) { if (StringUtils.isEmpty(pathSeparator)) { throw new IllegalArgumentException("pathSeparator must not be empty"); } if (StringUtils.isEmpty(excludePathFormatString)) { this.excludePathMatchers = Collections.emptyList(); return; } final List<String> excludePathFormats = StringUtils.splitAndTrim(excludePathFormatString, formatSeparator); final List<PathMatcher> excludePathMatchers = new ArrayList<PathMatcher>(excludePathFormats.size()); for (String excludePathFormat : excludePathFormats) { final PathMatcher pathMatcher = createPathMatcher(excludePathFormat, pathSeparator); excludePathMatchers.add(pathMatcher); } this.excludePathMatchers = excludePathMatchers; }