Linting dep-ann: Added @Deprecated annotations in i2psnark, i2ptunnel, ministreaming, routerconsole, streaming

This commit is contained in:
z3r0fox
2016-02-06 22:38:10 +00:00
parent b1eaa772a1
commit 691e274ca7
23 changed files with 37 additions and 1 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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.

View File

@ -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;

View File

@ -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;

View File

@ -10,6 +10,7 @@ import net.i2p.util.FileUtil;
/**
* @deprecated does not work
*/
@Deprecated
public class RunStandalone {
/****
static {