MCPcopy Index your code
hub / github.com/apache/tomcat / TesterCounter

Class TesterCounter

test/org/apache/tomcat/unittest/TesterCounter.java:22–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20import org.apache.juli.logging.LogFactory;
21
22public class TesterCounter {
23
24 private static final Log log = LogFactory.getLog(TesterCounter.class);
25
26 static {
27 log.info("TestCounter loaded by " + TesterCounter.class.getClassLoader() +
28 " in thread " + Thread.currentThread().getName());
29 }
30
31 private int count = 0;
32
33 public void increment() {
34 count++;
35 }
36
37 public int getCount() {
38 return count;
39 }
40}

Callers

nothing calls this directly

Calls 4

getLogMethod · 0.95
infoMethod · 0.65
getClassLoaderMethod · 0.65
getNameMethod · 0.65

Tested by

no test coverage detected