forked from I2P_Developers/i2p.i2p
Linting dep-ann: Added @Deprecated annotations in BOB and i2p_sdk
This commit is contained in:
@ -143,6 +143,7 @@ public class BOB implements Runnable, ClientApp {
|
|||||||
* Stop BOB gracefully
|
* Stop BOB gracefully
|
||||||
* @deprecated unused
|
* @deprecated unused
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public synchronized static void stop() {
|
public synchronized static void stop() {
|
||||||
if (_bob != null)
|
if (_bob != null)
|
||||||
_bob.shutdown(null);
|
_bob.shutdown(null);
|
||||||
|
@ -36,6 +36,7 @@ import net.i2p.util.Log;
|
|||||||
* @author sponge
|
* @author sponge
|
||||||
* @deprecated incomplete, unused
|
* @deprecated incomplete, unused
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public class UDPIOthread implements I2PSessionListener, Runnable {
|
public class UDPIOthread implements I2PSessionListener, Runnable {
|
||||||
|
|
||||||
private final NamedDB info;
|
private final NamedDB info;
|
||||||
|
@ -744,6 +744,7 @@ public class I2PAppContext {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated used only by syndie */
|
/** @deprecated used only by syndie */
|
||||||
|
@Deprecated
|
||||||
public HMAC256Generator hmac256() {
|
public HMAC256Generator hmac256() {
|
||||||
if (!_hmac256Initialized)
|
if (!_hmac256Initialized)
|
||||||
initializeHMAC256();
|
initializeHMAC256();
|
||||||
@ -751,6 +752,7 @@ public class I2PAppContext {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated used only by syndie */
|
/** @deprecated used only by syndie */
|
||||||
|
@Deprecated
|
||||||
private void initializeHMAC256() {
|
private void initializeHMAC256() {
|
||||||
synchronized (_lock10) {
|
synchronized (_lock10) {
|
||||||
if (_hmac256 == null) {
|
if (_hmac256 == null) {
|
||||||
@ -941,6 +943,7 @@ public class I2PAppContext {
|
|||||||
* @since 0.9 to replace static instance in the class
|
* @since 0.9 to replace static instance in the class
|
||||||
* @deprecated in 0.9.20, use simpleTimer2()
|
* @deprecated in 0.9.20, use simpleTimer2()
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
public SimpleScheduler simpleScheduler() {
|
public SimpleScheduler simpleScheduler() {
|
||||||
if (!_simpleSchedulerInitialized)
|
if (!_simpleSchedulerInitialized)
|
||||||
@ -951,6 +954,7 @@ public class I2PAppContext {
|
|||||||
/**
|
/**
|
||||||
* @deprecated in 0.9.20
|
* @deprecated in 0.9.20
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
private void initializeSimpleScheduler() {
|
private void initializeSimpleScheduler() {
|
||||||
synchronized (_lock18) {
|
synchronized (_lock18) {
|
||||||
if (_simpleScheduler == null)
|
if (_simpleScheduler == null)
|
||||||
@ -964,6 +968,7 @@ public class I2PAppContext {
|
|||||||
* @since 0.9 to replace static instance in the class
|
* @since 0.9 to replace static instance in the class
|
||||||
* @deprecated use SimpleTimer2
|
* @deprecated use SimpleTimer2
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public SimpleTimer simpleTimer() {
|
public SimpleTimer simpleTimer() {
|
||||||
if (!_simpleTimerInitialized)
|
if (!_simpleTimerInitialized)
|
||||||
initializeSimpleTimer();
|
initializeSimpleTimer();
|
||||||
@ -973,6 +978,7 @@ public class I2PAppContext {
|
|||||||
/**
|
/**
|
||||||
* @deprecated use SimpleTimer2
|
* @deprecated use SimpleTimer2
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
private void initializeSimpleTimer() {
|
private void initializeSimpleTimer() {
|
||||||
synchronized (_lock19) {
|
synchronized (_lock19) {
|
||||||
if (_simpleTimer == null)
|
if (_simpleTimer == null)
|
||||||
|
@ -27,6 +27,7 @@ public class I2PSimpleClient implements I2PClient {
|
|||||||
* @deprecated Don't do this
|
* @deprecated Don't do this
|
||||||
* @throws UnsupportedOperationException always
|
* @throws UnsupportedOperationException always
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public Destination createDestination(OutputStream destKeyStream) throws I2PException, IOException {
|
public Destination createDestination(OutputStream destKeyStream) throws I2PException, IOException {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
@ -36,6 +37,7 @@ public class I2PSimpleClient implements I2PClient {
|
|||||||
* @throws UnsupportedOperationException always
|
* @throws UnsupportedOperationException always
|
||||||
* @since 0.9.12
|
* @since 0.9.12
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public Destination createDestination(OutputStream destKeyStream, SigType type) throws I2PException, IOException {
|
public Destination createDestination(OutputStream destKeyStream, SigType type) throws I2PException, IOException {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
@ -44,6 +46,7 @@ public class I2PSimpleClient implements I2PClient {
|
|||||||
* @deprecated Don't do this
|
* @deprecated Don't do this
|
||||||
* @throws UnsupportedOperationException always
|
* @throws UnsupportedOperationException always
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public Destination createDestination(OutputStream destKeyStream, Certificate cert) throws I2PException, IOException {
|
public Destination createDestination(OutputStream destKeyStream, Certificate cert) throws I2PException, IOException {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
|
@ -35,6 +35,7 @@ import net.i2p.data.Destination;
|
|||||||
* @deprecated use HostsTxtNamingService.put()
|
* @deprecated use HostsTxtNamingService.put()
|
||||||
* @since 0.7.9
|
* @since 0.7.9
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public class EepGetAndAddNamingService extends EepGetNamingService {
|
public class EepGetAndAddNamingService extends EepGetNamingService {
|
||||||
|
|
||||||
/** default hosts.txt filename */
|
/** default hosts.txt filename */
|
||||||
|
@ -72,6 +72,7 @@ public class AESEngine {
|
|||||||
* @return null on error
|
* @return null on error
|
||||||
* @deprecated unused
|
* @deprecated unused
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public byte[] safeEncrypt(byte payload[], SessionKey sessionKey, byte iv[], int paddedSize) {
|
public byte[] safeEncrypt(byte payload[], SessionKey sessionKey, byte iv[], int paddedSize) {
|
||||||
if ((iv == null) || (payload == null) || (sessionKey == null) || (iv.length != 16)) return null;
|
if ((iv == null) || (payload == null) || (sessionKey == null) || (iv.length != 16)) return null;
|
||||||
|
|
||||||
@ -103,6 +104,7 @@ public class AESEngine {
|
|||||||
* @return null on error
|
* @return null on error
|
||||||
* @deprecated unused
|
* @deprecated unused
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public byte[] safeDecrypt(byte payload[], SessionKey sessionKey, byte iv[]) {
|
public byte[] safeDecrypt(byte payload[], SessionKey sessionKey, byte iv[]) {
|
||||||
if ((iv == null) || (payload == null) || (sessionKey == null) || (iv.length != 16)) return null;
|
if ((iv == null) || (payload == null) || (sessionKey == null) || (iv.length != 16)) return null;
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@ public final class CryptixAESKeyCache {
|
|||||||
/*
|
/*
|
||||||
* @deprecated unused, keys are now cached in the SessionKey objects
|
* @deprecated unused, keys are now cached in the SessionKey objects
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public CryptixAESKeyCache() {
|
public CryptixAESKeyCache() {
|
||||||
_availableKeys = new LinkedBlockingQueue<KeyCacheEntry>(MAX_KEYS);
|
_availableKeys = new LinkedBlockingQueue<KeyCacheEntry>(MAX_KEYS);
|
||||||
}
|
}
|
||||||
@ -35,6 +36,7 @@ public final class CryptixAESKeyCache {
|
|||||||
*
|
*
|
||||||
* @deprecated unused, keys are now cached in the SessionKey objects
|
* @deprecated unused, keys are now cached in the SessionKey objects
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public final KeyCacheEntry acquireKey() {
|
public final KeyCacheEntry acquireKey() {
|
||||||
KeyCacheEntry rv = _availableKeys.poll();
|
KeyCacheEntry rv = _availableKeys.poll();
|
||||||
if (rv != null)
|
if (rv != null)
|
||||||
@ -47,6 +49,7 @@ public final class CryptixAESKeyCache {
|
|||||||
*
|
*
|
||||||
* @deprecated unused, keys are now cached in the SessionKey objects
|
* @deprecated unused, keys are now cached in the SessionKey objects
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public final void releaseKey(KeyCacheEntry key) {
|
public final void releaseKey(KeyCacheEntry key) {
|
||||||
_availableKeys.offer(key);
|
_availableKeys.offer(key);
|
||||||
}
|
}
|
||||||
|
@ -58,6 +58,7 @@ public class HMACGenerator {
|
|||||||
* @return the first 16 bytes contain the HMAC, the last 16 bytes are zero
|
* @return the first 16 bytes contain the HMAC, the last 16 bytes are zero
|
||||||
* @deprecated unused (not even by Syndie)
|
* @deprecated unused (not even by Syndie)
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public Hash calculate(SessionKey key, byte data[]) {
|
public Hash calculate(SessionKey key, byte data[]) {
|
||||||
if ((key == null) || (key.getData() == null) || (data == null))
|
if ((key == null) || (key.getData() == null) || (data == null))
|
||||||
throw new NullPointerException("Null arguments for HMAC");
|
throw new NullPointerException("Null arguments for HMAC");
|
||||||
|
@ -141,6 +141,7 @@ public class LeaseSet extends DatabaseEntry {
|
|||||||
* The revocation key.
|
* The revocation key.
|
||||||
* @deprecated unused
|
* @deprecated unused
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public SigningPublicKey getSigningKey() {
|
public SigningPublicKey getSigningKey() {
|
||||||
return _signingKey;
|
return _signingKey;
|
||||||
}
|
}
|
||||||
@ -262,6 +263,7 @@ public class LeaseSet extends DatabaseEntry {
|
|||||||
* @deprecated revocation unused
|
* @deprecated revocation unused
|
||||||
* @return true only if the signature matches
|
* @return true only if the signature matches
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public boolean verifySignature(SigningPublicKey signingKey) {
|
public boolean verifySignature(SigningPublicKey signingKey) {
|
||||||
if (super.verifySignature())
|
if (super.verifySignature())
|
||||||
return true;
|
return true;
|
||||||
|
@ -35,6 +35,7 @@ public class Signature extends SimpleDataStructure {
|
|||||||
* all zeros
|
* all zeros
|
||||||
* @deprecated to be removed
|
* @deprecated to be removed
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public final static byte[] FAKE_SIGNATURE = new byte[SIGNATURE_BYTES];
|
public final static byte[] FAKE_SIGNATURE = new byte[SIGNATURE_BYTES];
|
||||||
|
|
||||||
private final SigType _type;
|
private final SigType _type;
|
||||||
|
@ -71,6 +71,7 @@ public class I2CPMessageReader {
|
|||||||
* Have the already started reader pause its reading indefinitely
|
* Have the already started reader pause its reading indefinitely
|
||||||
* @deprecated unused
|
* @deprecated unused
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public void pauseReading() {
|
public void pauseReading() {
|
||||||
_reader.pauseRunner();
|
_reader.pauseRunner();
|
||||||
}
|
}
|
||||||
@ -79,6 +80,7 @@ public class I2CPMessageReader {
|
|||||||
* Resume reading after a pause
|
* Resume reading after a pause
|
||||||
* @deprecated unused
|
* @deprecated unused
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public void resumeReading() {
|
public void resumeReading() {
|
||||||
_reader.resumeRunner();
|
_reader.resumeRunner();
|
||||||
}
|
}
|
||||||
|
@ -74,6 +74,7 @@ public class RequestLeaseSetMessage extends I2CPMessageImpl {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated unused - presumably he meant remove? */
|
/** @deprecated unused - presumably he meant remove? */
|
||||||
|
@Deprecated
|
||||||
public void remoteEndpoint(int endpoint) {
|
public void remoteEndpoint(int endpoint) {
|
||||||
if ((endpoint >= 0) && (endpoint < _endpoints.size())) _endpoints.remove(endpoint);
|
if ((endpoint >= 0) && (endpoint < _endpoints.size())) _endpoints.remove(endpoint);
|
||||||
}
|
}
|
||||||
|
@ -23,6 +23,7 @@ public class PoisonI2CPMessage extends I2CPMessageImpl {
|
|||||||
* @deprecated don't do this
|
* @deprecated don't do this
|
||||||
* @throws I2CPMessageException always
|
* @throws I2CPMessageException always
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
protected void doReadMessage(InputStream in, int size) throws I2CPMessageException {
|
protected void doReadMessage(InputStream in, int size) throws I2CPMessageException {
|
||||||
throw new I2CPMessageException("Don't do this");
|
throw new I2CPMessageException("Don't do this");
|
||||||
}
|
}
|
||||||
@ -31,6 +32,7 @@ public class PoisonI2CPMessage extends I2CPMessageImpl {
|
|||||||
* @deprecated don't do this
|
* @deprecated don't do this
|
||||||
* @throws I2CPMessageException always
|
* @throws I2CPMessageException always
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
protected byte[] doWriteMessage() throws I2CPMessageException {
|
protected byte[] doWriteMessage() throws I2CPMessageException {
|
||||||
throw new I2CPMessageException("Don't do this");
|
throw new I2CPMessageException("Don't do this");
|
||||||
}
|
}
|
||||||
|
@ -35,6 +35,7 @@ public class Frequency {
|
|||||||
* when did the last event occur?
|
* when did the last event occur?
|
||||||
* @deprecated unused
|
* @deprecated unused
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public synchronized long getLastEvent() {
|
public synchronized long getLastEvent() {
|
||||||
return _lastEvent;
|
return _lastEvent;
|
||||||
}
|
}
|
||||||
@ -53,6 +54,7 @@ public class Frequency {
|
|||||||
* @return milliseconds; returns period + 1 if no events in previous period
|
* @return milliseconds; returns period + 1 if no events in previous period
|
||||||
* @deprecated unused
|
* @deprecated unused
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public synchronized double getMinAverageInterval() {
|
public synchronized double getMinAverageInterval() {
|
||||||
return _minAverageInterval;
|
return _minAverageInterval;
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,7 @@ import net.i2p.data.ByteArray;
|
|||||||
*
|
*
|
||||||
* @deprecated unused
|
* @deprecated unused
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public class CachingByteArrayOutputStream extends ByteArrayOutputStream {
|
public class CachingByteArrayOutputStream extends ByteArrayOutputStream {
|
||||||
private ByteCache _cache;
|
private ByteCache _cache;
|
||||||
private ByteArray _buf;
|
private ByteArray _buf;
|
||||||
|
@ -130,56 +130,67 @@ public class InternalServerSocket extends ServerSocket {
|
|||||||
|
|
||||||
// everything below here unsupported
|
// everything below here unsupported
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public void bind(SocketAddress endpoint) {
|
public void bind(SocketAddress endpoint) {
|
||||||
throw new IllegalArgumentException("unsupported");
|
throw new IllegalArgumentException("unsupported");
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public void bind(SocketAddress endpoint, int backlog) {
|
public void bind(SocketAddress endpoint, int backlog) {
|
||||||
throw new IllegalArgumentException("unsupported");
|
throw new IllegalArgumentException("unsupported");
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public ServerSocketChannel getChannel() {
|
public ServerSocketChannel getChannel() {
|
||||||
throw new IllegalArgumentException("unsupported");
|
throw new IllegalArgumentException("unsupported");
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public InetAddress getInetAddress() {
|
public InetAddress getInetAddress() {
|
||||||
throw new IllegalArgumentException("unsupported");
|
throw new IllegalArgumentException("unsupported");
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public SocketAddress getLocalSocketAddress() {
|
public SocketAddress getLocalSocketAddress() {
|
||||||
throw new IllegalArgumentException("unsupported");
|
throw new IllegalArgumentException("unsupported");
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public int getReceiveBufferSize() {
|
public int getReceiveBufferSize() {
|
||||||
throw new IllegalArgumentException("unsupported");
|
throw new IllegalArgumentException("unsupported");
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public boolean getReuseAddress() {
|
public boolean getReuseAddress() {
|
||||||
throw new IllegalArgumentException("unsupported");
|
throw new IllegalArgumentException("unsupported");
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public boolean isBound() {
|
public boolean isBound() {
|
||||||
throw new IllegalArgumentException("unsupported");
|
throw new IllegalArgumentException("unsupported");
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public boolean isClosed() {
|
public boolean isClosed() {
|
||||||
throw new IllegalArgumentException("unsupported");
|
throw new IllegalArgumentException("unsupported");
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public void setReceiveBufferSize(int size) {
|
public void setReceiveBufferSize(int size) {
|
||||||
throw new IllegalArgumentException("unsupported");
|
throw new IllegalArgumentException("unsupported");
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public void setReuseAddress(boolean on) {
|
public void setReuseAddress(boolean on) {
|
||||||
throw new IllegalArgumentException("unsupported");
|
throw new IllegalArgumentException("unsupported");
|
||||||
|
@ -105,166 +105,199 @@ public class InternalSocket extends Socket {
|
|||||||
|
|
||||||
// everything below here unsupported
|
// everything below here unsupported
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public void bind(SocketAddress endpoint) {
|
public void bind(SocketAddress endpoint) {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public void connect(SocketAddress endpoint) {
|
public void connect(SocketAddress endpoint) {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public void connect(SocketAddress endpoint, int timeout) {
|
public void connect(SocketAddress endpoint, int timeout) {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public SocketChannel getChannel() {
|
public SocketChannel getChannel() {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public InetAddress getInetAddress() {
|
public InetAddress getInetAddress() {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public boolean getKeepAlive() {
|
public boolean getKeepAlive() {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public InetAddress getLocalAddress() {
|
public InetAddress getLocalAddress() {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public int getLocalPort() {
|
public int getLocalPort() {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public SocketAddress getLocalSocketAddress() {
|
public SocketAddress getLocalSocketAddress() {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public boolean getOOBInline() {
|
public boolean getOOBInline() {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public int getPort() {
|
public int getPort() {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public int getReceiveBufferSize() {
|
public int getReceiveBufferSize() {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public SocketAddress getRemoteSocketAddress() {
|
public SocketAddress getRemoteSocketAddress() {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public boolean getReuseAddress() {
|
public boolean getReuseAddress() {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public int getSendBufferSize() {
|
public int getSendBufferSize() {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public int getSoLinger() {
|
public int getSoLinger() {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public boolean getTcpNoDelay() {
|
public boolean getTcpNoDelay() {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public int getTrafficClass() {
|
public int getTrafficClass() {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public boolean isBound() {
|
public boolean isBound() {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public boolean isConnected() {
|
public boolean isConnected() {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public boolean isInputShutdown() {
|
public boolean isInputShutdown() {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public boolean isOutputShutdown() {
|
public boolean isOutputShutdown() {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public void sendUrgentData(int data) {
|
public void sendUrgentData(int data) {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public void setKeepAlive(boolean on) {
|
public void setKeepAlive(boolean on) {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public void setOOBInline(boolean on) {
|
public void setOOBInline(boolean on) {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public void setReceiveBufferSize(int size) {
|
public void setReceiveBufferSize(int size) {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public void setReuseAddress(boolean on) {
|
public void setReuseAddress(boolean on) {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public void setSendBufferSize(int size) {
|
public void setSendBufferSize(int size) {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public void setSoLinger(boolean on, int linger) {
|
public void setSoLinger(boolean on, int linger) {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public void setTcpNoDelay(boolean on) {
|
public void setTcpNoDelay(boolean on) {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public void setTrafficClass(int cize) {
|
public void setTrafficClass(int cize) {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public void shutdownInput() {
|
public void shutdownInput() {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
/** @deprecated unsupported */
|
/** @deprecated unsupported */
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public void shutdownOutput() {
|
public void shutdownOutput() {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
|
@ -210,6 +210,7 @@ public class LogManager implements Flushable {
|
|||||||
public LogConsoleBuffer getBuffer() { return _consoleBuffer; }
|
public LogConsoleBuffer getBuffer() { return _consoleBuffer; }
|
||||||
|
|
||||||
/** @deprecated unused */
|
/** @deprecated unused */
|
||||||
|
@Deprecated
|
||||||
public void setDisplayOnScreen(boolean yes) {
|
public void setDisplayOnScreen(boolean yes) {
|
||||||
_displayOnScreen = yes;
|
_displayOnScreen = yes;
|
||||||
}
|
}
|
||||||
@ -223,6 +224,7 @@ public class LogManager implements Flushable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated unused */
|
/** @deprecated unused */
|
||||||
|
@Deprecated
|
||||||
public void setDisplayOnScreenLevel(int level) {
|
public void setDisplayOnScreenLevel(int level) {
|
||||||
_onScreenLimit = level;
|
_onScreenLimit = level;
|
||||||
}
|
}
|
||||||
@ -232,6 +234,7 @@ public class LogManager implements Flushable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated unused */
|
/** @deprecated unused */
|
||||||
|
@Deprecated
|
||||||
public void setConsoleBufferSize(int numRecords) {
|
public void setConsoleBufferSize(int numRecords) {
|
||||||
_consoleBufferSize = numRecords;
|
_consoleBufferSize = numRecords;
|
||||||
}
|
}
|
||||||
|
@ -190,6 +190,7 @@ public class ShellCommand {
|
|||||||
*
|
*
|
||||||
* @param shellCommand The command for the shell to execute.
|
* @param shellCommand The command for the shell to execute.
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public void execute(String shellCommand) {
|
public void execute(String shellCommand) {
|
||||||
execute(shellCommand, NO_CONSUME_OUTPUT, NO_WAIT_FOR_EXIT_STATUS);
|
execute(shellCommand, NO_CONSUME_OUTPUT, NO_WAIT_FOR_EXIT_STATUS);
|
||||||
}
|
}
|
||||||
@ -211,6 +212,7 @@ public class ShellCommand {
|
|||||||
* returns an exit status of 0 (indicating success),
|
* returns an exit status of 0 (indicating success),
|
||||||
* else <code>false</code>.
|
* else <code>false</code>.
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public boolean executeAndWait(String shellCommand) {
|
public boolean executeAndWait(String shellCommand) {
|
||||||
return execute(shellCommand, NO_CONSUME_OUTPUT, WAIT_FOR_EXIT_STATUS);
|
return execute(shellCommand, NO_CONSUME_OUTPUT, WAIT_FOR_EXIT_STATUS);
|
||||||
}
|
}
|
||||||
@ -236,6 +238,7 @@ public class ShellCommand {
|
|||||||
* returns an exit status of 0 (indicating success),
|
* returns an exit status of 0 (indicating success),
|
||||||
* else <code>false</code>.
|
* else <code>false</code>.
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public boolean executeAndWaitTimed(String shellCommand, int seconds) {
|
public boolean executeAndWaitTimed(String shellCommand, int seconds) {
|
||||||
Result result = new Result();
|
Result result = new Result();
|
||||||
Thread commandThread = new CommandThread(shellCommand, NO_CONSUME_OUTPUT, result);
|
Thread commandThread = new CommandThread(shellCommand, NO_CONSUME_OUTPUT, result);
|
||||||
@ -263,6 +266,7 @@ public class ShellCommand {
|
|||||||
* @param shellCommand The command for the shell to execute.
|
* @param shellCommand The command for the shell to execute.
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public void executeSilent(String shellCommand) throws IOException {
|
public void executeSilent(String shellCommand) throws IOException {
|
||||||
Runtime.getRuntime().exec(shellCommand, null);
|
Runtime.getRuntime().exec(shellCommand, null);
|
||||||
}
|
}
|
||||||
@ -365,16 +369,19 @@ public class ShellCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated unused */
|
/** @deprecated unused */
|
||||||
|
@Deprecated
|
||||||
public InputStream getErrorStream() {
|
public InputStream getErrorStream() {
|
||||||
return _errorStream;
|
return _errorStream;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated unused */
|
/** @deprecated unused */
|
||||||
|
@Deprecated
|
||||||
public InputStream getInputStream() {
|
public InputStream getInputStream() {
|
||||||
return _inputStream;
|
return _inputStream;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated unused */
|
/** @deprecated unused */
|
||||||
|
@Deprecated
|
||||||
public OutputStream getOutputStream() {
|
public OutputStream getOutputStream() {
|
||||||
return _outputStream;
|
return _outputStream;
|
||||||
}
|
}
|
||||||
|
@ -28,12 +28,14 @@ import net.i2p.I2PAppContext;
|
|||||||
*
|
*
|
||||||
* @author zzz
|
* @author zzz
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public class SimpleScheduler {
|
public class SimpleScheduler {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If you have a context, use context.simpleScheduler() instead
|
* If you have a context, use context.simpleScheduler() instead
|
||||||
* @deprecated in 0.9.20, replaced by SimpleTimer2
|
* @deprecated in 0.9.20, replaced by SimpleTimer2
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public static SimpleScheduler getInstance() {
|
public static SimpleScheduler getInstance() {
|
||||||
return I2PAppContext.getGlobalContext().simpleScheduler();
|
return I2PAppContext.getGlobalContext().simpleScheduler();
|
||||||
}
|
}
|
||||||
@ -51,6 +53,7 @@ public class SimpleScheduler {
|
|||||||
* Others should use context.simpleTimer() instead
|
* Others should use context.simpleTimer() instead
|
||||||
* @deprecated in 0.9.20, replaced by SimpleTimer2
|
* @deprecated in 0.9.20, replaced by SimpleTimer2
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public SimpleScheduler(I2PAppContext context) {
|
public SimpleScheduler(I2PAppContext context) {
|
||||||
this(context, "SimpleScheduler");
|
this(context, "SimpleScheduler");
|
||||||
}
|
}
|
||||||
@ -60,6 +63,7 @@ public class SimpleScheduler {
|
|||||||
* Others should use context.simpleTimer() instead
|
* Others should use context.simpleTimer() instead
|
||||||
* @deprecated in 0.9.20, replaced by SimpleTimer2
|
* @deprecated in 0.9.20, replaced by SimpleTimer2
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
private SimpleScheduler(I2PAppContext context, String name) {
|
private SimpleScheduler(I2PAppContext context, String name) {
|
||||||
_log = context.logManager().getLog(SimpleScheduler.class);
|
_log = context.logManager().getLog(SimpleScheduler.class);
|
||||||
_name = name;
|
_name = name;
|
||||||
|
@ -22,6 +22,7 @@ public class SimpleTimer {
|
|||||||
* If you have a context, use context.simpleTimer() instead
|
* If you have a context, use context.simpleTimer() instead
|
||||||
* @deprecated use SimpleTimer2
|
* @deprecated use SimpleTimer2
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public static SimpleTimer getInstance() {
|
public static SimpleTimer getInstance() {
|
||||||
return I2PAppContext.getGlobalContext().simpleTimer();
|
return I2PAppContext.getGlobalContext().simpleTimer();
|
||||||
}
|
}
|
||||||
@ -41,6 +42,7 @@ public class SimpleTimer {
|
|||||||
* Others should use context.simpleTimer() instead
|
* Others should use context.simpleTimer() instead
|
||||||
* @deprecated use SimpleTimer2
|
* @deprecated use SimpleTimer2
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public SimpleTimer(I2PAppContext context) {
|
public SimpleTimer(I2PAppContext context) {
|
||||||
this(context, "SimpleTimer");
|
this(context, "SimpleTimer");
|
||||||
}
|
}
|
||||||
@ -50,6 +52,7 @@ public class SimpleTimer {
|
|||||||
* Others should use context.simpleTimer() instead
|
* Others should use context.simpleTimer() instead
|
||||||
* @deprecated use SimpleTimer2
|
* @deprecated use SimpleTimer2
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
private SimpleTimer(I2PAppContext context, String name) {
|
private SimpleTimer(I2PAppContext context, String name) {
|
||||||
runn = new SimpleStore(true);
|
runn = new SimpleStore(true);
|
||||||
_log = context.logManager().getLog(SimpleTimer.class);
|
_log = context.logManager().getLog(SimpleTimer.class);
|
||||||
|
@ -139,6 +139,7 @@ public class SkipList implements Flushable {
|
|||||||
* dumps all the skip levels
|
* dumps all the skip levels
|
||||||
* @deprecated goes to System.out
|
* @deprecated goes to System.out
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public void printSL() {
|
public void printSL() {
|
||||||
System.out.println("List size " + size);
|
System.out.println("List size " + size);
|
||||||
System.out.println(stack.printAll());
|
System.out.println(stack.printAll());
|
||||||
|
@ -70,6 +70,7 @@ implements Mac
|
|||||||
* Standard HMAC, size == digest size.
|
* Standard HMAC, size == digest size.
|
||||||
* @deprecated Use javax.crypto.Mac
|
* @deprecated Use javax.crypto.Mac
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public I2PHMac(MessageDigest digest) {
|
public I2PHMac(MessageDigest digest) {
|
||||||
this(digest, digest.getDigestLength());
|
this(digest, digest.getDigestLength());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user