
org.mutabilitydetector.findbugs.FBClasspathConverter Maven / Gradle / Ivy
package org.mutabilitydetector.findbugs;
import java.io.File;
import java.util.List;
import org.mutabilitydetector.repackaged.com.google.classpath.ClassPath;
import org.mutabilitydetector.repackaged.com.google.classpath.ClassPathFactory;
public class FBClasspathConverter {
public ClassPath createClassPathForCodeBases(List codeBasePaths) {
StringBuilder allClassPathsInString = new StringBuilder();
for (String classPathUrl : codeBasePaths) {
allClassPathsInString.append(classPathUrl + File.pathSeparator);
}
return new ClassPathFactory().createFromPath(allClassPathsInString.toString());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy