@Test public void testUsedByMaven() { maskRules.add( "org.slf4j.LoggerFactory" ); unmaskRules.add( "org.slf4j.Logger" ); unmaskRules.add( "org.slf4j.ILoggerFactory" ); maskRules.add( "org.slf4j." ); maskRules.add( "ch.qos.logback." ); maskRules.add( "org.sonar." ); unmaskRules.add("org.sonar.runner.batch."); maskRules.add( "com.google.common" ); unmaskRules.add( "" ); rules = new ClassloadRules(maskRules, unmaskRules); assertThat(rules.canLoad("org.sonar.runner.batch.IsolatedLauncher")).isTrue(); }
public boolean canLoad(String className) { return unmaskSize(className) > maskSize(className); }
ClassloadRules { public boolean canLoad(String className) { return unmaskSize(className) > maskSize(className); } }
ClassloadRules { public boolean canLoad(String className) { return unmaskSize(className) > maskSize(className); } ClassloadRules(Set<String> maskRules, Set<String> unmaskRules); }
ClassloadRules { public boolean canLoad(String className) { return unmaskSize(className) > maskSize(className); } ClassloadRules(Set<String> maskRules, Set<String> unmaskRules); boolean canLoad(String className); }
ClassloadRules { public boolean canLoad(String className) { return unmaskSize(className) > maskSize(className); } ClassloadRules(Set<String> maskRules, Set<String> unmaskRules); boolean canLoad(String className);  }