Changeset b1eaa77


Ignore:
Timestamp:
Feb 6, 2016 9:32:28 PM (4 years ago)
Author:
z3r0fox <z3r0fox@…>
Branches:
master
Children:
691e274
Parents:
79bb3f6
Message:

Linting dep-ann: Added @Deprecated annotations in BOB and i2p_sdk

Files:
23 edited

Legend:

Unmodified
Added
Removed
  • apps/BOB/src/net/i2p/BOB/BOB.java

    r79bb3f6 rb1eaa77  
    144144         * @deprecated unused
    145145         */
     146        @Deprecated
    146147        public synchronized static void stop() {
    147148                if (_bob != null)
  • apps/BOB/src/net/i2p/BOB/UDPIOthread.java

    r79bb3f6 rb1eaa77  
    3737 * @deprecated incomplete, unused
    3838 */
     39@Deprecated
    3940public class UDPIOthread implements I2PSessionListener, Runnable {
    4041
  • core/java/src/net/i2p/I2PAppContext.java

    r79bb3f6 rb1eaa77  
    745745
    746746    /** @deprecated used only by syndie */
     747    @Deprecated
    747748    public HMAC256Generator hmac256() {
    748749        if (!_hmac256Initialized)
     
    752753
    753754    /** @deprecated used only by syndie */
     755    @Deprecated
    754756    private void initializeHMAC256() {
    755757        synchronized (_lock10) {
     
    942944     * @deprecated in 0.9.20, use simpleTimer2()
    943945     */
     946    @Deprecated
    944947    @SuppressWarnings("deprecation")
    945948    public SimpleScheduler simpleScheduler() {
     
    952955     * @deprecated in 0.9.20
    953956     */
     957    @Deprecated
    954958    private void initializeSimpleScheduler() {
    955959        synchronized (_lock18) {
     
    965969     * @deprecated use SimpleTimer2
    966970     */
     971    @Deprecated
    967972    public SimpleTimer simpleTimer() {
    968973        if (!_simpleTimerInitialized)
     
    974979     * @deprecated use SimpleTimer2
    975980     */
     981    @Deprecated
    976982    private void initializeSimpleTimer() {
    977983        synchronized (_lock19) {
  • core/java/src/net/i2p/client/I2PSimpleClient.java

    r79bb3f6 rb1eaa77  
    2828     *  @throws UnsupportedOperationException always
    2929     */
     30    @Deprecated
    3031    public Destination createDestination(OutputStream destKeyStream) throws I2PException, IOException {
    3132        throw new UnsupportedOperationException();
     
    3738     *  @since 0.9.12
    3839     */
     40    @Deprecated
    3941    public Destination createDestination(OutputStream destKeyStream, SigType type) throws I2PException, IOException {
    4042        throw new UnsupportedOperationException();
     
    4547     *  @throws UnsupportedOperationException always
    4648     */
     49    @Deprecated
    4750    public Destination createDestination(OutputStream destKeyStream, Certificate cert) throws I2PException, IOException {
    4851        throw new UnsupportedOperationException();
  • core/java/src/net/i2p/client/naming/EepGetAndAddNamingService.java

    r79bb3f6 rb1eaa77  
    3636 * @since 0.7.9
    3737 */
     38@Deprecated
    3839public class EepGetAndAddNamingService extends EepGetNamingService {
    3940
  • core/java/src/net/i2p/crypto/AESEngine.java

    r79bb3f6 rb1eaa77  
    7373     * @deprecated unused
    7474     */
     75    @Deprecated
    7576    public byte[] safeEncrypt(byte payload[], SessionKey sessionKey, byte iv[], int paddedSize) {
    7677        if ((iv == null) || (payload == null) || (sessionKey == null) || (iv.length != 16)) return null;
     
    104105     * @deprecated unused
    105106     */
     107    @Deprecated
    106108    public byte[] safeDecrypt(byte payload[], SessionKey sessionKey, byte iv[]) {
    107109        if ((iv == null) || (payload == null) || (sessionKey == null) || (iv.length != 16)) return null;
  • core/java/src/net/i2p/crypto/CryptixAESKeyCache.java

    r79bb3f6 rb1eaa77  
    2727     * @deprecated unused, keys are now cached in the SessionKey objects
    2828     */
     29    @Deprecated
    2930    public CryptixAESKeyCache() {
    3031        _availableKeys = new LinkedBlockingQueue<KeyCacheEntry>(MAX_KEYS);
     
    3637     * @deprecated unused, keys are now cached in the SessionKey objects
    3738     */
     39    @Deprecated
    3840    public final KeyCacheEntry acquireKey() {
    3941        KeyCacheEntry rv = _availableKeys.poll();
     
    4850     * @deprecated unused, keys are now cached in the SessionKey objects
    4951     */
     52    @Deprecated
    5053    public final void releaseKey(KeyCacheEntry key) {
    5154        _availableKeys.offer(key);
  • core/java/src/net/i2p/crypto/HMACGenerator.java

    r79bb3f6 rb1eaa77  
    5959     * @deprecated unused (not even by Syndie)
    6060     */
     61    @Deprecated
    6162    public Hash calculate(SessionKey key, byte data[]) {
    6263        if ((key == null) || (key.getData() == null) || (data == null))
  • core/java/src/net/i2p/data/LeaseSet.java

    r79bb3f6 rb1eaa77  
    142142     *  @deprecated unused
    143143     */
     144    @Deprecated
    144145    public SigningPublicKey getSigningKey() {
    145146        return _signingKey;
     
    263264     * @return true only if the signature matches
    264265     */
     266    @Deprecated
    265267    public boolean verifySignature(SigningPublicKey signingKey) {
    266268        if (super.verifySignature())
  • core/java/src/net/i2p/data/Signature.java

    r79bb3f6 rb1eaa77  
    3636     * @deprecated to be removed
    3737     */
     38    @Deprecated
    3839    public final static byte[] FAKE_SIGNATURE = new byte[SIGNATURE_BYTES];
    3940
  • core/java/src/net/i2p/data/i2cp/I2CPMessageReader.java

    r79bb3f6 rb1eaa77  
    7272     * @deprecated unused
    7373     */
     74    @Deprecated
    7475    public void pauseReading() {
    7576        _reader.pauseRunner();
     
    8081     * @deprecated unused
    8182     */
     83    @Deprecated
    8284    public void resumeReading() {
    8385        _reader.resumeRunner();
  • core/java/src/net/i2p/data/i2cp/RequestLeaseSetMessage.java

    r79bb3f6 rb1eaa77  
    7575
    7676    /** @deprecated unused - presumably he meant remove? */
     77    @Deprecated
    7778    public void remoteEndpoint(int endpoint) {
    7879        if ((endpoint >= 0) && (endpoint < _endpoints.size())) _endpoints.remove(endpoint);
  • core/java/src/net/i2p/internal/PoisonI2CPMessage.java

    r79bb3f6 rb1eaa77  
    2424     *  @throws I2CPMessageException always
    2525     */
     26    @Deprecated
    2627    protected void doReadMessage(InputStream in, int size) throws I2CPMessageException {
    2728        throw new I2CPMessageException("Don't do this");
     
    3233     *  @throws I2CPMessageException always
    3334     */
     35    @Deprecated
    3436    protected byte[] doWriteMessage() throws I2CPMessageException {
    3537        throw new I2CPMessageException("Don't do this");
  • core/java/src/net/i2p/stat/Frequency.java

    r79bb3f6 rb1eaa77  
    3636     * @deprecated unused
    3737     */
     38    @Deprecated
    3839    public synchronized long getLastEvent() {
    3940            return _lastEvent;
     
    5455     * @deprecated unused
    5556     */
     57    @Deprecated
    5658    public synchronized double getMinAverageInterval() {
    5759            return _minAverageInterval;
  • core/java/src/net/i2p/util/CachingByteArrayOutputStream.java

    r79bb3f6 rb1eaa77  
    1414 * @deprecated unused
    1515 */
     16@Deprecated
    1617public class CachingByteArrayOutputStream extends ByteArrayOutputStream {
    1718    private ByteCache _cache;
  • core/java/src/net/i2p/util/InternalServerSocket.java

    r79bb3f6 rb1eaa77  
    131131    // everything below here unsupported
    132132    /** @deprecated unsupported */
     133    @Deprecated
    133134    @Override
    134135    public void bind(SocketAddress endpoint) {
     
    136137    }
    137138    /** @deprecated unsupported */
     139    @Deprecated
    138140    @Override
    139141    public void bind(SocketAddress endpoint, int backlog) {
     
    141143    }
    142144    /** @deprecated unsupported */
     145    @Deprecated
    143146    @Override
    144147    public ServerSocketChannel getChannel() {
     
    146149    }
    147150    /** @deprecated unsupported */
     151    @Deprecated
    148152    @Override
    149153    public InetAddress getInetAddress() {
     
    151155    }
    152156    /** @deprecated unsupported */
     157    @Deprecated
    153158    @Override
    154159    public SocketAddress getLocalSocketAddress() {
     
    156161    }
    157162    /** @deprecated unsupported */
     163    @Deprecated
    158164    @Override
    159165    public int getReceiveBufferSize() {
     
    161167    }
    162168    /** @deprecated unsupported */
     169    @Deprecated
    163170    @Override
    164171    public boolean getReuseAddress() {
     
    166173    }
    167174    /** @deprecated unsupported */
     175    @Deprecated
    168176    @Override
    169177    public boolean isBound() {
     
    171179    }
    172180    /** @deprecated unsupported */
     181    @Deprecated
    173182    @Override
    174183    public boolean isClosed() {
     
    176185    }
    177186    /** @deprecated unsupported */
     187    @Deprecated
    178188    @Override
    179189    public void setReceiveBufferSize(int size) {
     
    181191    }
    182192    /** @deprecated unsupported */
     193    @Deprecated
    183194    @Override
    184195    public void setReuseAddress(boolean on) {
  • core/java/src/net/i2p/util/InternalSocket.java

    r79bb3f6 rb1eaa77  
    106106    // everything below here unsupported
    107107    /** @deprecated unsupported */
     108    @Deprecated
    108109    @Override
    109110    public void bind(SocketAddress endpoint) {
     
    111112    }
    112113    /** @deprecated unsupported */
     114    @Deprecated
    113115    @Override
    114116    public void connect(SocketAddress endpoint) {
     
    116118    }
    117119    /** @deprecated unsupported */
     120    @Deprecated
    118121    @Override
    119122    public void connect(SocketAddress endpoint, int timeout) {
     
    121124    }
    122125    /** @deprecated unsupported */
     126    @Deprecated
    123127    @Override
    124128    public SocketChannel getChannel() {
     
    126130    }
    127131    /** @deprecated unsupported */
     132    @Deprecated
    128133    @Override
    129134    public InetAddress getInetAddress() {
     
    131136    }
    132137    /** @deprecated unsupported */
     138    @Deprecated
    133139    @Override
    134140    public boolean getKeepAlive() {
     
    136142    }
    137143    /** @deprecated unsupported */
     144    @Deprecated
    138145    @Override
    139146    public InetAddress getLocalAddress() {
     
    141148    }
    142149    /** @deprecated unsupported */
     150    @Deprecated
    143151    @Override
    144152    public int getLocalPort() {
     
    146154    }
    147155    /** @deprecated unsupported */
     156    @Deprecated
    148157    @Override
    149158    public SocketAddress getLocalSocketAddress() {
     
    151160    }
    152161    /** @deprecated unsupported */
     162    @Deprecated
    153163    @Override
    154164    public boolean getOOBInline() {
     
    156166    }
    157167    /** @deprecated unsupported */
     168    @Deprecated
    158169    @Override
    159170    public int getPort() {
     
    161172    }
    162173    /** @deprecated unsupported */
     174    @Deprecated
    163175    @Override
    164176    public int getReceiveBufferSize() {
     
    166178    }
    167179    /** @deprecated unsupported */
     180    @Deprecated
    168181    @Override
    169182    public SocketAddress getRemoteSocketAddress() {
     
    171184    }
    172185    /** @deprecated unsupported */
     186    @Deprecated
    173187    @Override
    174188    public boolean getReuseAddress() {
     
    176190    }
    177191    /** @deprecated unsupported */
     192    @Deprecated
    178193    @Override
    179194    public int getSendBufferSize() {
     
    181196    }
    182197    /** @deprecated unsupported */
     198    @Deprecated
    183199    @Override
    184200    public int getSoLinger() {
     
    186202    }
    187203    /** @deprecated unsupported */
     204    @Deprecated
    188205    @Override
    189206    public boolean getTcpNoDelay() {
     
    191208    }
    192209    /** @deprecated unsupported */
     210    @Deprecated
    193211    @Override
    194212    public int getTrafficClass() {
     
    196214    }
    197215    /** @deprecated unsupported */
     216    @Deprecated
    198217    @Override
    199218    public boolean isBound() {
     
    201220    }
    202221    /** @deprecated unsupported */
     222    @Deprecated
    203223    @Override
    204224    public boolean isConnected() {
     
    206226    }
    207227    /** @deprecated unsupported */
     228    @Deprecated
    208229    @Override
    209230    public boolean isInputShutdown() {
     
    211232    }
    212233    /** @deprecated unsupported */
     234    @Deprecated
    213235    @Override
    214236    public boolean isOutputShutdown() {
     
    216238    }
    217239    /** @deprecated unsupported */
     240    @Deprecated
    218241    @Override
    219242    public void sendUrgentData(int data) {
     
    221244    }
    222245    /** @deprecated unsupported */
     246    @Deprecated
    223247    @Override
    224248    public void setKeepAlive(boolean on) {
     
    226250    }
    227251    /** @deprecated unsupported */
     252    @Deprecated
    228253    @Override
    229254    public void setOOBInline(boolean on) {
     
    231256    }
    232257    /** @deprecated unsupported */
     258    @Deprecated
    233259    @Override
    234260    public void setReceiveBufferSize(int size) {
     
    236262    }
    237263    /** @deprecated unsupported */
     264    @Deprecated
    238265    @Override
    239266    public void setReuseAddress(boolean on) {
     
    241268    }
    242269    /** @deprecated unsupported */
     270    @Deprecated
    243271    @Override
    244272    public void setSendBufferSize(int size) {
     
    246274    }
    247275    /** @deprecated unsupported */
     276    @Deprecated
    248277    @Override
    249278    public void setSoLinger(boolean on, int linger) {
     
    251280    }
    252281    /** @deprecated unsupported */
     282    @Deprecated
    253283    @Override
    254284    public void setTcpNoDelay(boolean on) {
     
    256286    }
    257287    /** @deprecated unsupported */
     288    @Deprecated
    258289    @Override
    259290    public void setTrafficClass(int cize) {
     
    261292    }
    262293    /** @deprecated unsupported */
     294    @Deprecated
    263295    @Override
    264296    public void shutdownInput() {
     
    266298    }
    267299    /** @deprecated unsupported */
     300    @Deprecated
    268301    @Override
    269302    public void shutdownOutput() {
  • core/java/src/net/i2p/util/LogManager.java

    r79bb3f6 rb1eaa77  
    211211       
    212212    /** @deprecated unused */
     213    @Deprecated
    213214    public void setDisplayOnScreen(boolean yes) {
    214215        _displayOnScreen = yes;
     
    224225
    225226    /** @deprecated unused */
     227    @Deprecated
    226228    public void setDisplayOnScreenLevel(int level) {
    227229        _onScreenLimit = level;
     
    233235
    234236    /** @deprecated unused */
     237    @Deprecated
    235238    public void setConsoleBufferSize(int numRecords) {
    236239        _consoleBufferSize = numRecords;
  • core/java/src/net/i2p/util/ShellCommand.java

    r79bb3f6 rb1eaa77  
    191191     * @param shellCommand The command for the shell to execute.
    192192     */
     193    @Deprecated
    193194    public void execute(String shellCommand) {
    194195        execute(shellCommand, NO_CONSUME_OUTPUT, NO_WAIT_FOR_EXIT_STATUS);
     
    212213     *                      else <code>false</code>.
    213214     */
     215    @Deprecated
    214216    public boolean executeAndWait(String shellCommand) {
    215217        return execute(shellCommand, NO_CONSUME_OUTPUT, WAIT_FOR_EXIT_STATUS);
     
    237239     *                      else <code>false</code>.
    238240     */
     241    @Deprecated
    239242    public boolean executeAndWaitTimed(String shellCommand, int seconds) {
    240243        Result result = new Result();
     
    264267     * @throws IOException
    265268     */
     269    @Deprecated
    266270    public void executeSilent(String shellCommand) throws IOException {
    267271        Runtime.getRuntime().exec(shellCommand, null);
     
    366370
    367371    /** @deprecated unused */
     372    @Deprecated
    368373    public InputStream getErrorStream() {
    369374        return _errorStream;
     
    371376
    372377    /** @deprecated unused */
     378    @Deprecated
    373379    public InputStream getInputStream() {
    374380        return _inputStream;
     
    376382
    377383    /** @deprecated unused */
     384    @Deprecated
    378385    public OutputStream getOutputStream() {
    379386        return _outputStream;
  • core/java/src/net/i2p/util/SimpleScheduler.java

    r79bb3f6 rb1eaa77  
    2929 * @author zzz
    3030 */
     31@Deprecated
    3132public class SimpleScheduler {
    3233
     
    3536     *  @deprecated in 0.9.20, replaced by SimpleTimer2
    3637     */
     38    @Deprecated
    3739    public static SimpleScheduler getInstance() {
    3840        return I2PAppContext.getGlobalContext().simpleScheduler();
     
    5254     *  @deprecated in 0.9.20, replaced by SimpleTimer2
    5355     */
     56    @Deprecated
    5457    public SimpleScheduler(I2PAppContext context) {
    5558        this(context, "SimpleScheduler");
     
    6164     *  @deprecated in 0.9.20, replaced by SimpleTimer2
    6265     */
     66    @Deprecated
    6367    private SimpleScheduler(I2PAppContext context, String name) {
    6468        _log = context.logManager().getLog(SimpleScheduler.class);
  • core/java/src/net/i2p/util/SimpleTimer.java

    r79bb3f6 rb1eaa77  
    2323     *  @deprecated use SimpleTimer2
    2424     */
     25        @Deprecated
    2526    public static SimpleTimer getInstance() {
    2627        return I2PAppContext.getGlobalContext().simpleTimer();
     
    4243     *  @deprecated use SimpleTimer2
    4344     */
     45    @Deprecated
    4446    public SimpleTimer(I2PAppContext context) {
    4547        this(context, "SimpleTimer");
     
    5153     *  @deprecated use SimpleTimer2
    5254     */
     55    @Deprecated
    5356    private SimpleTimer(I2PAppContext context, String name) {
    5457        runn = new SimpleStore(true);
  • core/java/src/net/metanotion/util/skiplist/SkipList.java

    r79bb3f6 rb1eaa77  
    140140         * @deprecated goes to System.out
    141141         */
     142        @Deprecated
    142143        public void printSL() {
    143144                System.out.println("List size " + size);
  • core/java/src/org/bouncycastle/oldcrypto/macs/I2PHMac.java

    r79bb3f6 rb1eaa77  
    7171     *  @deprecated Use javax.crypto.Mac
    7272     */
     73    @Deprecated
    7374    public I2PHMac(MessageDigest digest) {
    7475        this(digest, digest.getDigestLength());
Note: See TracChangeset for help on using the changeset viewer.