Changeset 5ed22d5c


Ignore:
Timestamp:
Apr 28, 2011 6:04:31 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
8b184f8
Parents:
525e0b45
Message:

cleanups

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/util/FileUtil.java

    r525e0b45 r5ed22d5c  
    358358     * stream.  The path must not go above the root, either - if it does, it will
    359359     * throw a FileNotFoundException
     360     *
     361     * Closes the OutputStream out on successful completion
     362     * but leaves it open when throwing IOE.
    360363     */
    361364    public static void readFile(String path, String root, OutputStream out) throws IOException {
     
    377380            while ( (read = in.read(buf)) != -1)
    378381                out.write(buf, 0, read);
    379             out.close();
     382            try { out.close(); } catch (IOException ioe) {}
    380383        } finally {
    381384            if (in != null)
    382                 in.close();
     385                try { in.close(); } catch (IOException ioe) {}
    383386        }
    384387    }
  • router/java/src/net/i2p/router/peermanager/TunnelHistory.java

    r525e0b45 r5ed22d5c  
    112112    }
    113113   
     114/*****  all unused
    114115    public void setLifetimeAgreedTo(long num) { _lifetimeAgreedTo = num; }
    115116    public void setLifetimeRejected(long num) { _lifetimeRejected = num; }
     
    121122    public void setLastRejectedProbabalistic(long when) { _lastRejectedProbabalistic = when; }
    122123    public void setLastFailed(long when) { _lastFailed = when; }
     124******/
    123125   
    124126    public RateStat getRejectionRate() { return _rejectRate; }
  • router/java/src/net/i2p/router/tunnel/TunnelCreatorConfig.java

    r525e0b45 r5ed22d5c  
    1919 */
    2020public class TunnelCreatorConfig implements TunnelInfo {
    21     protected RouterContext _context;
     21    protected final RouterContext _context;
    2222    /** only necessary for client tunnels */
    23     private Hash _destination;
     23    private final Hash _destination;
    2424    /** gateway first */
    25     private HopConfig _config[];
     25    private final HopConfig _config[];
    2626    /** gateway first */
    27     private Hash _peers[];
     27    private final Hash _peers[];
    2828    private long _expiration;
    2929    private List<Integer> _order;
    3030    private long _replyMessageId;
    31     private boolean _isInbound;
     31    private final boolean _isInbound;
    3232    private long _messagesProcessed;
    3333    private volatile long _verifiedBytesTransferred;
     
    4949        _isInbound = isInbound;
    5050        _destination = destination;
    51         _messagesProcessed = 0;
    52         _verifiedBytesTransferred = 0;
    53         _failed = false;
    54         _failures = 0;
    5551    }
    5652   
  • router/java/src/net/i2p/router/tunnel/pool/PooledTunnelCreatorConfig.java

    r525e0b45 r5ed22d5c  
    2727    public PooledTunnelCreatorConfig(RouterContext ctx, int length, boolean isInbound, Hash destination) {
    2828        super(ctx, length, isInbound, destination);
    29         _pool = null;
    30         _live = false;
    3129    }
    3230   
Note: See TracChangeset for help on using the changeset viewer.