Changeset 57ddc8e for router


Ignore:
Timestamp:
Aug 25, 2018 2:29:32 PM (23 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
4a03b6fc
Parents:
c3881a8
Message:

conversion cleanup

Location:
router/java/src/net/i2p/router
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/RouterContext.java

    rc3881a8 r57ddc8e  
    153153            long maxBuffs = (SystemVersion.isAndroid() || SystemVersion.isARM()) ? 4 : 8;
    154154            long buffs = Math.min(maxBuffs, Math.max(2, maxMemory / (21 * 1024 * 1024)));
    155             envProps.setProperty("prng.buffers", "" + buffs);
     155            envProps.setProperty("prng.buffers", Long.toString(buffs));
    156156        }
    157157        return envProps;
  • router/java/src/net/i2p/router/TunnelPoolSettings.java

    rc3881a8 r57ddc8e  
    338338    public void writeToProperties(String prefix, Properties props) {
    339339        if (props == null) return;
    340         props.setProperty(prefix + PROP_ALLOW_ZERO_HOP, ""+_allowZeroHop);
    341         props.setProperty(prefix + PROP_BACKUP_QUANTITY, ""+_backupQuantity);
     340        props.setProperty(prefix + PROP_ALLOW_ZERO_HOP, Boolean.toString(_allowZeroHop));
     341        props.setProperty(prefix + PROP_BACKUP_QUANTITY, Integer.toString(_backupQuantity));
    342342        //props.setProperty(prefix + PROP_DURATION, ""+_duration);
    343         props.setProperty(prefix + PROP_LENGTH, ""+_length);
    344         props.setProperty(prefix + PROP_LENGTH_VARIANCE, ""+_lengthVariance);
     343        props.setProperty(prefix + PROP_LENGTH, Integer.toString(_length));
     344        props.setProperty(prefix + PROP_LENGTH_VARIANCE, Integer.toString(_lengthVariance));
    345345        if (_destinationNickname != null)
    346             props.setProperty(prefix + PROP_NICKNAME, ""+_destinationNickname);
    347         props.setProperty(prefix + PROP_QUANTITY, ""+_quantity);
     346            props.setProperty(prefix + PROP_NICKNAME, _destinationNickname);
     347        props.setProperty(prefix + PROP_QUANTITY, Integer.toString(_quantity));
    348348        // props.setProperty(prefix + PROP_REBUILD_PERIOD, ""+_rebuildPeriod);
    349         props.setProperty(prefix + PROP_IP_RESTRICTION, ""+_IPRestriction);
     349        props.setProperty(prefix + PROP_IP_RESTRICTION, Integer.toString(_IPRestriction));
    350350        if (!_isInbound)
    351351            props.setProperty(prefix + PROP_PRIORITY, Integer.toString(_priority));
  • router/java/src/net/i2p/router/transport/udp/UDPTransport.java

    rc3881a8 r57ddc8e  
    177177    private static final String PROP_ADVANCED = "routerconsole.advanced";
    178178       
    179     private static final String CAP_TESTING = "" + UDPAddress.CAPACITY_TESTING;
    180     private static final String CAP_TESTING_INTRO = "" + UDPAddress.CAPACITY_TESTING + UDPAddress.CAPACITY_INTRODUCER;
     179    private static final String CAP_TESTING = Character.toString(UDPAddress.CAPACITY_TESTING);
     180    private static final String CAP_TESTING_INTRO = CAP_TESTING + UDPAddress.CAPACITY_INTRODUCER;
    181181
    182182    /** how many relays offered to us will we use at a time? */
Note: See TracChangeset for help on using the changeset viewer.