forked from I2P_Developers/i2p.i2p
Linting dep-ann: Added @Deprecated annotations in i2psnark, i2ptunnel, ministreaming, routerconsole, streaming
This commit is contained in:
@ -194,6 +194,7 @@ public class Peer implements Comparable<Peer>
|
||||
* Compares the PeerIDs.
|
||||
* @deprecated unused?
|
||||
*/
|
||||
@Deprecated
|
||||
public int compareTo(Peer p)
|
||||
{
|
||||
int rv = peerID.compareTo(p.peerID);
|
||||
@ -531,6 +532,7 @@ public class Peer implements Comparable<Peer>
|
||||
* @deprecated deadlocks
|
||||
* @since 0.8.1
|
||||
*/
|
||||
@Deprecated
|
||||
boolean isRequesting(int p) {
|
||||
PeerState s = state;
|
||||
return s != null && s.isRequesting(p);
|
||||
@ -563,6 +565,7 @@ public class Peer implements Comparable<Peer>
|
||||
* us then we start downloading from it. Has no effect when not connected.
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
public void setInteresting(boolean interest)
|
||||
{
|
||||
PeerState s = state;
|
||||
|
@ -196,6 +196,7 @@ public class PeerID implements Comparable<PeerID>
|
||||
* Compares port, address and id.
|
||||
* @deprecated unused? and will NPE now that address can be null?
|
||||
*/
|
||||
@Deprecated
|
||||
public int compareTo(PeerID pid)
|
||||
{
|
||||
int result = port - pid.port;
|
||||
|
@ -30,6 +30,7 @@ import net.i2p.data.DataHelper;
|
||||
*
|
||||
* @deprecated unused, for command line client only, commented out in Snark.java
|
||||
*/
|
||||
@Deprecated
|
||||
class PeerMonitorTask implements Runnable
|
||||
{
|
||||
final static long MONITOR_PERIOD = 10 * 1000; // Ten seconds.
|
||||
|
@ -744,6 +744,7 @@ class PeerState implements DataLoader
|
||||
* @deprecated deadlocks
|
||||
* @since 0.8.1
|
||||
*/
|
||||
@Deprecated
|
||||
synchronized boolean isRequesting(int piece) {
|
||||
if (pendingRequest != null && pendingRequest.getPiece() == piece)
|
||||
return true;
|
||||
|
@ -28,6 +28,7 @@ import net.i2p.util.I2PAppThread;
|
||||
* Makes sure everything ends correctly when shutting down.
|
||||
* @deprecated unused
|
||||
*/
|
||||
@Deprecated
|
||||
public class SnarkShutdown extends I2PAppThread
|
||||
{
|
||||
private final Storage storage;
|
||||
|
@ -10,6 +10,7 @@ import net.i2p.util.FileUtil;
|
||||
/**
|
||||
* @deprecated does not work
|
||||
*/
|
||||
@Deprecated
|
||||
public class RunStandalone {
|
||||
/****
|
||||
static {
|
||||
|
Reference in New Issue
Block a user