Changeset 5fa0376f


Ignore:
Timestamp:
Nov 22, 2013 4:22:14 AM (7 years ago)
Author:
str4d <str4d@…>
Branches:
master
Children:
6314f33
Parents:
552dd18
Message:

SAM: type arguments, unused imports

Location:
apps/sam/java/src/net/i2p/sam
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • apps/sam/java/src/net/i2p/sam/SAMBridge.java

    r552dd18 r5fa0376f  
    245245            try {
    246246                out = new FileOutputStream(persistFilename);
    247                 for (Iterator iter = nameToPrivKeys.keySet().iterator(); iter.hasNext(); ) {
    248                     String name = (String)iter.next();
     247                for (Iterator<String> iter = nameToPrivKeys.keySet().iterator(); iter.hasNext(); ) {
     248                    String name = iter.next();
    249249                    String privKeys = nameToPrivKeys.get(name);
    250250                    out.write(name.getBytes());
  • apps/sam/java/src/net/i2p/sam/SAMStreamSession.java

    r552dd18 r5fa0376f  
    382382    private void removeAllSocketHandlers() {
    383383        Integer id;
    384         Set keySet;
    385         Iterator iter;
     384        Set<Integer> keySet;
     385        Iterator<Integer> iter;
    386386
    387387        synchronized (handlersMapLock) {
     
    390390           
    391391            while (iter.hasNext()) {
    392                  id = (Integer)iter.next();
     392                 id = iter.next();
    393393                 handlersMap.get(id).stopRunning();
    394394                 sendersMap.get(id).shutDownGracefully();
  • apps/sam/java/src/net/i2p/sam/SAMv3StreamSession.java

    r552dd18 r5fa0376f  
    99 */
    1010
    11 import java.io.ByteArrayInputStream;
    1211import java.io.IOException;
    1312import java.io.InterruptedIOException;
     
    1716
    1817import net.i2p.I2PException;
    19 import net.i2p.client.I2PClient;
    2018import net.i2p.client.streaming.I2PServerSocket;
    2119import net.i2p.client.streaming.I2PSocket;
    22 import net.i2p.client.streaming.I2PSocketManagerFactory;
    2320import net.i2p.client.streaming.I2PSocketOptions;
    24 import net.i2p.data.Base64;
    2521import net.i2p.data.DataFormatException;
    2622import net.i2p.data.Destination;
Note: See TracChangeset for help on using the changeset viewer.