Changeset 7b9f987


Ignore:
Timestamp:
Jan 19, 2011 3:05:28 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
96de505b
Parents:
7538766
Message:

cleanups - final, init, pkg private

Location:
router/java/src/net/i2p/router/message
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/message/CloveSet.java

    r7538766 r7b9f987  
    1919 *
    2020 */
    21 public class CloveSet {
    22     private List _cloves;
     21class CloveSet {
     22    private final List _cloves;
    2323    private Certificate _cert;
    2424    private long _msgId;
     
    2727    public CloveSet() {
    2828        _cloves = new ArrayList();
    29         _cert = null;
    3029        _msgId = -1;
    3130        _expiration = -1;
  • router/java/src/net/i2p/router/message/GarlicConfig.java

    r7538766 r7b9f987  
    2222 *
    2323 */
    24 public class GarlicConfig {
     24class GarlicConfig {
    2525    private RouterInfo _recipient;
    2626    private PublicKey _recipientPublicKey;
     
    2828    private long _id;
    2929    private long _expiration;
    30     private List _cloveConfigs;
     30    private final List _cloveConfigs;
    3131    private DeliveryInstructions _instructions;
    3232    private boolean _requestAck;
  • router/java/src/net/i2p/router/message/GarlicMessageHandler.java

    r7538766 r7b9f987  
    2222 */
    2323public class GarlicMessageHandler implements HandlerJobBuilder {
    24     private RouterContext _context;
     24    private final RouterContext _context;
    2525   
    2626    public GarlicMessageHandler(RouterContext context) {
  • router/java/src/net/i2p/router/message/GarlicMessageParser.java

    r7538766 r7b9f987  
    2525 *
    2626 */
    27 public class GarlicMessageParser {
    28     private Log _log;
    29     private RouterContext _context;
     27class GarlicMessageParser {
     28    private final Log _log;
     29    private final RouterContext _context;
    3030   
    3131    public GarlicMessageParser(RouterContext context) {
  • router/java/src/net/i2p/router/message/GarlicMessageReceiver.java

    r7538766 r7b9f987  
    2727 */
    2828public class GarlicMessageReceiver {
    29     private RouterContext _context;
    30     private Log _log;
    31     private CloveReceiver _receiver;
    32     private Hash _clientDestination;
    33     private GarlicMessageParser _parser;
     29    private final RouterContext _context;
     30    private final Log _log;
     31    private final CloveReceiver _receiver;
     32    private final Hash _clientDestination;
     33    private final GarlicMessageParser _parser;
    3434   
    3535    private final static int FORWARD_PRIORITY = 50;
  • router/java/src/net/i2p/router/message/HandleGarlicMessageJob.java

    r7538766 r7b9f987  
    2929 *
    3030 */
    31 public class HandleGarlicMessageJob extends JobImpl implements GarlicMessageReceiver.CloveReceiver {
    32     private Log _log;
    33     private GarlicMessage _message;
     31class HandleGarlicMessageJob extends JobImpl implements GarlicMessageReceiver.CloveReceiver {
     32    private final Log _log;
     33    private final GarlicMessage _message;
    3434    //private RouterIdentity _from;
    3535    //private Hash _fromHash;
  • router/java/src/net/i2p/router/message/PayloadGarlicConfig.java

    r7538766 r7b9f987  
    2020    public PayloadGarlicConfig() {
    2121        super();
    22         _payload = null;
    2322    }
    2423   
  • router/java/src/net/i2p/router/message/SendMessageDirectJob.java

    r7538766 r7b9f987  
    2323
    2424public class SendMessageDirectJob extends JobImpl {
    25     private Log _log;
    26     private I2NPMessage _message;
    27     private Hash _targetHash;
     25    private final Log _log;
     26    private final I2NPMessage _message;
     27    private final Hash _targetHash;
    2828    private RouterInfo _router;
    29     private long _expiration;
    30     private int _priority;
    31     private Job _onSend;
    32     private ReplyJob _onSuccess;
    33     private Job _onFail;
    34     private MessageSelector _selector;
     29    private final long _expiration;
     30    private final int _priority;
     31    private final Job _onSend;
     32    private final ReplyJob _onSuccess;
     33    private final Job _onFail;
     34    private final MessageSelector _selector;
    3535    private boolean _alreadySearched;
    3636    private boolean _sent;
     
    4848        _message = message;
    4949        _targetHash = toPeer;
    50         _router = null;
    5150        if (timeoutMs < 10*1000) {
    5251            if (_log.shouldLog(Log.WARN))
     
    5756        }
    5857        _priority = priority;
    59         _searchOn = 0;
    60         _alreadySearched = false;
    6158        _onSend = onSend;
    6259        _onSuccess = onSuccess;
     
    6764        if (_targetHash == null)
    6865            throw new IllegalArgumentException("Attempt to send a message to a null peer");
    69         _sent = false;
    7066    }
    7167   
Note: See TracChangeset for help on using the changeset viewer.