public class ClasspathJarDuplicateClassFinder extends Object implements DuplicateClassFinder
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.collections.Predicate |
EXCLUDE_KNOWN_DUPLICATES |
static Set<String> |
KNOWN_DUPLICATE_CLASSES |
static List<String> |
KNOWN_DUPLICATE_PACKAGES
A list of prefixes of class file paths to exclude.
|
Constructor and Description |
---|
ClasspathJarDuplicateClassFinder() |
ClasspathJarDuplicateClassFinder(org.apache.commons.collections.Predicate classFileNamePredicate) |
Modifier and Type | Method and Description |
---|---|
SortedSet<String> |
getClassFileNames(JarSet jars) |
SortedSet<String> |
getClassNames(JarSet jars) |
Set<JarSet> |
getJarSetsWithCommonClasses() |
SortedSet<String> |
getPackageNames(JarSet jars) |
static boolean |
isKnownDuplicate(String classFileName) |
public static final List<String> KNOWN_DUPLICATE_PACKAGES
public static final org.apache.commons.collections.Predicate EXCLUDE_KNOWN_DUPLICATES
public ClasspathJarDuplicateClassFinder()
public ClasspathJarDuplicateClassFinder(org.apache.commons.collections.Predicate classFileNamePredicate)
public Set<JarSet> getJarSetsWithCommonClasses()
getJarSetsWithCommonClasses
in interface DuplicateClassFinder
public SortedSet<String> getClassFileNames(JarSet jars)
getClassFileNames
in interface DuplicateClassFinder
public SortedSet<String> getPackageNames(JarSet jars)
getPackageNames
in interface DuplicateClassFinder
public SortedSet<String> getClassNames(JarSet jars)
getClassNames
in interface DuplicateClassFinder
public static boolean isKnownDuplicate(String classFileName)
Copyright © 2003–2018 Atlassian. All rights reserved.