forked from I2P_Developers/i2p.i2p
Linting dep-ann: Added @Deprecated annotations in i2psnark, i2ptunnel, ministreaming, routerconsole, streaming
This commit is contained in:
@@ -538,6 +538,7 @@ class ConnectionOptions extends I2PSocketOptionsImpl {
|
||||
* @deprecated This doesn't appear to be used.
|
||||
* @return receive window size.
|
||||
*/
|
||||
@Deprecated
|
||||
public int getReceiveWindow() { return _receiveWindow; }
|
||||
public void setReceiveWindow(int numMsgs) { _receiveWindow = numMsgs; }
|
||||
|
||||
|
@@ -45,6 +45,7 @@ class I2PServerSocketFull implements I2PServerSocket {
|
||||
* @return null always
|
||||
* @since 0.8.11
|
||||
*/
|
||||
@Deprecated
|
||||
public synchronized AcceptingChannel getChannel() {
|
||||
return null;
|
||||
}
|
||||
|
@@ -96,6 +96,7 @@ class I2PSocketFull implements I2PSocket {
|
||||
* @return null always
|
||||
* @since 0.8.9
|
||||
*/
|
||||
@Deprecated
|
||||
public synchronized SelectableChannel getChannel() {
|
||||
return null;
|
||||
}
|
||||
|
@@ -168,6 +168,7 @@ public class I2PSocketManagerFull implements I2PSocketManager {
|
||||
* @deprecated use 4-arg constructor
|
||||
* @throws UnsupportedOperationException always
|
||||
*/
|
||||
@Deprecated
|
||||
public I2PSocketManagerFull() {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
@@ -176,6 +177,7 @@ public class I2PSocketManagerFull implements I2PSocketManager {
|
||||
* @deprecated use 4-arg constructor
|
||||
* @throws UnsupportedOperationException always
|
||||
*/
|
||||
@Deprecated
|
||||
public void init(I2PAppContext context, I2PSession session, Properties opts, String name) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
@@ -66,11 +66,13 @@ class PacketLocal extends Packet implements MessageOutputStream.WriteStatus {
|
||||
/**
|
||||
* @deprecated should always return null
|
||||
*/
|
||||
@Deprecated
|
||||
public SessionKey getKeyUsed() { return _keyUsed; }
|
||||
|
||||
/**
|
||||
* @deprecated I2PSession throws out the tags
|
||||
*/
|
||||
@Deprecated
|
||||
public void setKeyUsed(SessionKey key) {
|
||||
if (key != null)
|
||||
_log.error("Who is sending tags thru the streaming lib?");
|
||||
@@ -80,11 +82,13 @@ class PacketLocal extends Packet implements MessageOutputStream.WriteStatus {
|
||||
/**
|
||||
* @deprecated should always return null or an empty set
|
||||
*/
|
||||
@Deprecated
|
||||
public Set<SessionTag> getTagsSent() { return Collections.emptySet(); }
|
||||
|
||||
/**
|
||||
* @deprecated I2PSession throws out the tags
|
||||
*/
|
||||
@Deprecated
|
||||
public void setTagsSent(Set<SessionTag> tags) {
|
||||
if (tags != null && !tags.isEmpty())
|
||||
_log.error("Who is sending tags thru the streaming lib? " + tags.size());
|
||||
|
@@ -12,6 +12,7 @@ public class RetransmissionTimer extends SimpleTimer2 {
|
||||
* @deprecated Don't use this to prestart threads, this is no longer a static instance
|
||||
* @return a new instance as of 0.9
|
||||
*/
|
||||
@Deprecated
|
||||
public static final RetransmissionTimer getInstance() {
|
||||
return new RetransmissionTimer(I2PAppContext.getGlobalContext(), "RetransmissionTimer");
|
||||
}
|
||||
|
Reference in New Issue
Block a user