Coverage Report - org.webslinger.lang.SyncCounter
 
Classes in this File Line Coverage Branch Coverage Complexity
SyncCounter
0%
0/6
N/A
1
SyncCounter$1
0%
0/3
N/A
1
 
 1  
 package org.webslinger.lang;
 2  
 
 3  0
 public final class SyncCounter {
 4  0
     private static final KeyedCounter counter = new KeyedCounter();
 5  
     static {
 6  0
         Runtime.getRuntime().addShutdownHook(
 7  0
             new Thread() {
 8  
                 public void run() {
 9  0
                     System.err.println("sync counters=" + counter);
 10  0
                 }
 11  
             }
 12  
         );
 13  0
     }
 14  
 
 15  
     public static void countSync(String name) {
 16  0
         counter.incr(name);
 17  0
     }
 18  
 }