make StatsInputStream thread safe
Java library that ease the task to use streams.
Brought to you by:
gcontini
All maps in class are static, HashMap not threadSafe. ConcurrentHashMap will sove the problem. Сould you fix and release new version via Maven?
public class StatsInputStream extends InputStream {
private static Map<string, biginteger=""> totalBytes = new HashMap<string, biginteger="">();
private static Map<string, biginteger=""> totalRead = new HashMap<string, biginteger="">();
private static Map<string, long=""> totalTime = new HashMap<string, long="">();</string,></string,></string,></string,></string,></string,>