public class JarCompatibilityChecker
extends java.lang.Object
| Constructor and Description |
|---|
JarCompatibilityChecker(java.io.File baseJar,
java.io.File inputJar,
boolean checkBinary,
@Nullable AnnotationCheckMode annotationCheckMode,
java.util.List<java.io.File> commonLibs,
java.util.List<java.io.File> baseLibs,
java.util.List<java.io.File> concreteLibs,
java.util.function.Consumer<java.lang.String> stdLogger,
java.util.function.Consumer<java.lang.String> errLogger)
Constructs a new JarCompatibilityChecker.
|
JarCompatibilityChecker(java.io.File baseJar,
java.io.File inputJar,
boolean checkBinary,
@Nullable AnnotationCheckMode annotationCheckMode,
java.util.List<java.lang.String> internalAnnotations,
InternalAnnotationCheckMode internalAnnotationCheckMode,
java.util.List<java.io.File> commonLibs,
java.util.List<java.io.File> baseLibs,
java.util.List<java.io.File> concreteLibs,
java.util.function.Consumer<java.lang.String> stdLogger,
java.util.function.Consumer<java.lang.String> errLogger)
Constructs a new JarCompatibilityChecker.
|
JarCompatibilityChecker(java.io.File baseJar,
java.io.File inputJar,
boolean checkBinary,
java.util.List<java.io.File> commonLibs,
java.util.List<java.io.File> baseLibs,
java.util.List<java.io.File> concreteLibs,
java.util.function.Consumer<java.lang.String> stdLogger,
java.util.function.Consumer<java.lang.String> errLogger)
Constructs a new JarCompatibilityChecker.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map.Entry<java.lang.Integer,java.util.List<ClassInfoComparisonResults>> |
check()
Loads the base jar and input jar and compares them for compatibility based on the current mode, API or binary.
|
public JarCompatibilityChecker(java.io.File baseJar,
java.io.File inputJar,
boolean checkBinary,
java.util.List<java.io.File> commonLibs,
java.util.List<java.io.File> baseLibs,
java.util.List<java.io.File> concreteLibs,
java.util.function.Consumer<java.lang.String> stdLogger,
java.util.function.Consumer<java.lang.String> errLogger)
checkBinary - if true, all members of the base jar including package-private and private will be checked for a match in the input jar.
Otherwise, only public and protected members of the base jar will be checked for a match in the input jar.public JarCompatibilityChecker(java.io.File baseJar,
java.io.File inputJar,
boolean checkBinary,
@Nullable
@Nullable AnnotationCheckMode annotationCheckMode,
java.util.List<java.io.File> commonLibs,
java.util.List<java.io.File> baseLibs,
java.util.List<java.io.File> concreteLibs,
java.util.function.Consumer<java.lang.String> stdLogger,
java.util.function.Consumer<java.lang.String> errLogger)
checkBinary - if true, all members of the base jar including package-private and private will be checked for a match in the input jar.
Otherwise, only public and protected members of the base jar will be checked for a match in the input jar.annotationCheckMode - determines whether annotations will be checked and if a mismatch is an error conditionpublic JarCompatibilityChecker(java.io.File baseJar,
java.io.File inputJar,
boolean checkBinary,
@Nullable
@Nullable AnnotationCheckMode annotationCheckMode,
java.util.List<java.lang.String> internalAnnotations,
InternalAnnotationCheckMode internalAnnotationCheckMode,
java.util.List<java.io.File> commonLibs,
java.util.List<java.io.File> baseLibs,
java.util.List<java.io.File> concreteLibs,
java.util.function.Consumer<java.lang.String> stdLogger,
java.util.function.Consumer<java.lang.String> errLogger)
checkBinary - if true, all members of the base jar including package-private and private will be checked for a match in the input jar.
Otherwise, only public and protected members of the base jar will be checked for a match in the input jar.annotationCheckMode - determines whether annotations will be checked and if a mismatch is an error conditioninternalAnnotations - a list of fully resolved classnames for annotations that can be used to mark elements as internal APIinternalAnnotationCheckMode - determines how internally-marked elements will be checkedpublic java.util.Map.Entry<java.lang.Integer,java.util.List<ClassInfoComparisonResults>> check() throws java.io.IOException
java.io.IOException