@Test public void testClassPathScannerRT() throws IOException { for (int i = 0; i < 6; ++i) { final long time = System.currentTimeMillis(); final CountingReporter counter = new CountingReporter(Deprecated.class); final AnnotationDetector cf = new AnnotationDetector(counter); cf.detect(RT_JAR); if (i == 5) { log("Time: %d ms. Type Count: %d, Method Count: %d", System.currentTimeMillis() - time, counter.getTypeCount(), counter.methodCount); assertTrue(counter.getTypeCount() > 0); } } }
public void detect() throws IOException { detect(new ClassFileIterator()); }
AnnotationDetector { public void detect() throws IOException { detect(new ClassFileIterator()); } }
AnnotationDetector { public void detect() throws IOException { detect(new ClassFileIterator()); } AnnotationDetector(final Reporter reporter); }
AnnotationDetector { public void detect() throws IOException { detect(new ClassFileIterator()); } AnnotationDetector(final Reporter reporter); void detect(); void detect(final String... packageNames); void detect(final File... filesOrDirectories); @SuppressWarnings("illegalcatch") void detect(final ResourceIterator iterator); }
AnnotationDetector { public void detect() throws IOException { detect(new ClassFileIterator()); } AnnotationDetector(final Reporter reporter); void detect(); void detect(final String... packageNames); void detect(final File... filesOrDirectories); @SuppressWarnings("illegalcatch") void detect(final ResourceIterator iterator);  }