Address comments

This commit is contained in:
Brian Devins-Suresh 2020-02-26 09:14:49 -05:00
parent 815bd0e9f6
commit 30e1d56023
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ import net.bytebuddy.pool.TypePool;
/** Matches a set of references against a classloader. */
@Slf4j
public class ReferenceMatcher implements WeakMap.ValueSupplier<ClassLoader, Boolean> {
public final class ReferenceMatcher implements WeakMap.ValueSupplier<ClassLoader, Boolean> {
private final WeakMap<ClassLoader, Boolean> mismatchCache = newWeakMap();
private final Reference[] references;
private final Set<String> helperClassNames;
@ -99,7 +99,7 @@ public class ReferenceMatcher implements WeakMap.ValueSupplier<ClassLoader, Bool
* @param loader
* @return A list of mismatched sources. A list of size 0 means the reference matches the class.
*/
public static List<Reference.Mismatch> checkMatch(
private static List<Reference.Mismatch> checkMatch(
final Reference reference, final ClassLoader loader) {
final TypePool typePool =
AgentTooling.poolStrategy()