Changeset 2a85263


Ignore:
Timestamp:
Jan 10, 2011 3:43:04 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
f68c0952
Parents:
0e1d978
Message:

findbugs udp

Location:
router/java/src/net/i2p/router/transport/udp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/transport/udp/UDPAddress.java

    r0e1d978 r2a85263  
    1111/**
    1212 * basic helper to parse out peer info from a udp address
     13 * FIXME public for ConfigNetHelper
    1314 */
    1415public class UDPAddress {
     
    153154   
    154155    public String getHost() { return _host; }
    155     public InetAddress getHostAddress() {
     156    InetAddress getHostAddress() {
    156157        if (_hostAddress == null) {
    157158            try {
     
    164165    }
    165166    public int getPort() { return _port; }
    166     public byte[] getIntroKey() { return _introKey; }
     167    byte[] getIntroKey() { return _introKey; }
    167168   
    168     public int getIntroducerCount() { return (_introAddresses == null ? 0 : _introAddresses.length); }
    169     public InetAddress getIntroducerHost(int i) {
     169    int getIntroducerCount() { return (_introAddresses == null ? 0 : _introAddresses.length); }
     170    InetAddress getIntroducerHost(int i) {
    170171        if (_introAddresses[i] == null) {
    171172            try {
     
    177178        return _introAddresses[i];
    178179    }
    179     public int getIntroducerPort(int i) { return _introPorts[i]; }
    180     public byte[] getIntroducerKey(int i) { return _introKeys[i]; }
    181     public long getIntroducerTag(int i) { return _introTags[i]; }
     180    int getIntroducerPort(int i) { return _introPorts[i]; }
     181    byte[] getIntroducerKey(int i) { return _introKeys[i]; }
     182    long getIntroducerTag(int i) { return _introTags[i]; }
    182183       
    183184}
  • router/java/src/net/i2p/router/transport/udp/UDPTransport.java

    r0e1d978 r2a85263  
    158158    public static final int DEFAULT_COST = 5;
    159159    private static final int TEST_FREQUENCY = 13*60*1000;
    160     public static final long[] RATES = { 10*60*1000 };
     160    static final long[] RATES = { 10*60*1000 };
    161161   
    162162    private static final int[] BID_VALUES = { 15, 20, 50, 65, 80, 95, 100, 115, TransportBid.TRANSIENT_FAIL };
Note: See TracChangeset for help on using the changeset viewer.