List of usage examples for io.netty.util ResourceLeakDetector setEnabled
@Deprecated public static void setEnabled(boolean enabled)
From source file:net.tomp2p.p2p.Peer.java
License:Apache License
/** * Create a peer. Please use {@link PeerMaker} to create a class * /* ww w . j a v a 2 s . c o m*/ * @param p2pID * The P2P ID * @param peerId * The Id of the peer * @param peerCreator * The peer creator that holds the peer bean and connection bean */ Peer(final int p2pID, final Number160 peerId, final PeerCreator peerCreator) { this.p2pID = p2pID; this.peerId = peerId; this.peerCreator = peerCreator; ResourceLeakDetector.setEnabled(false); }