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

@@ -1831,6 +1831,7 @@ public class I2PTunnel extends EventDispatcherImpl implements Logging {
* just call context.namingService.lookup() directly.
* @deprecated Don't use i2ptunnel for lookup! Use I2PAppContext.getGlobalContext().namingService().lookup(name) from i2p.jar
*/
@Deprecated
public static Destination destFromName(String name) throws DataFormatException {
return destFromName(name, null, null, false, null, null);
}

View File

@@ -24,6 +24,7 @@ public class I2PTunnelClient extends I2PTunnelClientBase {
* list of Destination objects that we point at
* @deprecated why protected? Is anybody using out-of-tree? Protected from the beginning (2004)
*/
@Deprecated
protected List<Destination> dests;
/**

View File

@@ -93,6 +93,7 @@ public class I2PTunnelOutproxyRunner extends I2PAppThread {
*
* @deprecated unused
*/
@Deprecated
public boolean isFinished() {
return finished;
}
@@ -104,6 +105,7 @@ public class I2PTunnelOutproxyRunner extends I2PAppThread {
* @return date (ms since the epoch), or -1 if no data has been transferred yet
* @deprecated unused
*/
@Deprecated
public long getLastActivityOn() {
return lastActivityOn;
}

View File

@@ -82,6 +82,7 @@ public class I2PTunnelRunner extends I2PAppThread implements I2PSocket.SocketErr
* Will synchronize on slock when removing.
* @deprecated use FailCallback constructor
*/
@Deprecated
public I2PTunnelRunner(Socket s, I2PSocket i2ps, Object slock, byte[] initialI2PData,
List<I2PSocket> sockList) {
this(s, i2ps, slock, initialI2PData, null, sockList, null, null, true);
@@ -97,6 +98,7 @@ public class I2PTunnelRunner extends I2PAppThread implements I2PSocket.SocketErr
* Will synchronize on slock when removing.
* @deprecated use FailCallback constructor
*/
@Deprecated
public I2PTunnelRunner(Socket s, I2PSocket i2ps, Object slock, byte[] initialI2PData,
byte[] initialSocketData, List<I2PSocket> sockList) {
this(s, i2ps, slock, initialI2PData, initialSocketData, sockList, null, null, true);
@@ -113,6 +115,7 @@ public class I2PTunnelRunner extends I2PAppThread implements I2PSocket.SocketErr
* it will be run before closing s.
* @deprecated use FailCallback constructor
*/
@Deprecated
public I2PTunnelRunner(Socket s, I2PSocket i2ps, Object slock, byte[] initialI2PData,
List<I2PSocket> sockList, Runnable onTimeout) {
this(s, i2ps, slock, initialI2PData, null, sockList, onTimeout, null, true);
@@ -130,6 +133,7 @@ public class I2PTunnelRunner extends I2PAppThread implements I2PSocket.SocketErr
* it will be run before closing s.
* @deprecated use FailCallback constructor
*/
@Deprecated
public I2PTunnelRunner(Socket s, I2PSocket i2ps, Object slock, byte[] initialI2PData,
byte[] initialSocketData, List<I2PSocket> sockList, Runnable onTimeout) {
this(s, i2ps, slock, initialI2PData, initialSocketData, sockList, onTimeout, null, true);
@@ -192,6 +196,7 @@ public class I2PTunnelRunner extends I2PAppThread implements I2PSocket.SocketErr
*
* @deprecated unused
*/
@Deprecated
public boolean isFinished() {
return finished;
}
@@ -203,6 +208,7 @@ public class I2PTunnelRunner extends I2PAppThread implements I2PSocket.SocketErr
* @return date (ms since the epoch), or -1 if no data has been transferred yet
* @deprecated unused
*/
@Deprecated
public long getLastActivityOn() {
return lastActivityOn;
}

View File

@@ -752,6 +752,7 @@ public class TunnelController implements Logging {
* @return one big string of "key=val key=val ..."
* @deprecated why would you want this? Use getClientOptionProps() instead
*/
@Deprecated
public String getClientOptions() {
StringBuilder opts = new StringBuilder(64);
for (Map.Entry<Object, Object> e : _config.entrySet()) {
@@ -869,6 +870,7 @@ public class TunnelController implements Logging {
* A text description of the tunnel.
* @deprecated unused
*/
@Deprecated
public void getSummary(StringBuilder buf) {
String type = getType();
buf.append(type);