private FcpConnectionHandler connectionHandler;
/** Incoming message statistics. */
- private Map<String, Integer> incomingMessageStatistics = Collections.synchronizedMap(new HashMap<String, Integer>());
+ private static final Map<String, Integer> incomingMessageStatistics = Collections.synchronizedMap(new HashMap<String, Integer>());
/**
* Creates a new FCP connection to the freenet node running on localhost,
* @see java.io.FilterInputStream#mark(int)
*/
@Override
- public void mark(int readlimit) {
+ public synchronized void mark(int readlimit) {
/* do nothing. */
}
* @see java.io.FilterInputStream#reset()
*/
@Override
- public void reset() throws IOException {
+ public synchronized void reset() throws IOException {
/* do nothing. */
}