Changeset 000ca7c


Ignore:
Timestamp:
Jun 5, 2013 4:36:23 PM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
4a656767
Parents:
9386270
Message:

finals, javadoc fixes

Location:
core/java/src/net/i2p/data/i2cp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/data/i2cp/RequestLeaseSetMessage.java

    r9386270 r000ca7c  
    2323
    2424/**
    25  * Defines the message a client sends to a router when destroying
    26  * existing session.
     25 * Defines the message a router sends to a client to request that
     26 * a leaseset be created and signed. The reply is a CreateLeaseSetMessage.
    2727 *
    2828 * @author jrandom
     
    3131    public final static int MESSAGE_TYPE = 21;
    3232    private SessionId _sessionId;
    33     private List<TunnelEndpoint> _endpoints;
     33    private final List<TunnelEndpoint> _endpoints;
    3434    private Date _end;
    3535
     
    102102    @Override
    103103    protected byte[] doWriteMessage() throws I2CPMessageException, IOException {
    104         if ((_sessionId == null) || (_endpoints == null))
     104        if (_sessionId == null)
    105105            throw new I2CPMessageException("Unable to write out the message as there is not enough data");
    106         ByteArrayOutputStream os = new ByteArrayOutputStream(64);
     106        ByteArrayOutputStream os = new ByteArrayOutputStream(256);
    107107        try {
    108108            _sessionId.writeBytes(os);
     
    128128    public String toString() {
    129129        StringBuilder buf = new StringBuilder();
    130         buf.append("[RequestLeaseMessage: ");
     130        buf.append("[RequestLeaseSetMessage: ");
    131131        buf.append("\n\tSessionId: ").append(getSessionId());
    132132        buf.append("\n\tTunnels:");
     
    141141
    142142    private static class TunnelEndpoint {
    143         private Hash _router;
    144         private TunnelId _tunnelId;
     143        private final Hash _router;
     144        private final TunnelId _tunnelId;
    145145
    146146        public TunnelEndpoint(Hash router, TunnelId id) {
  • core/java/src/net/i2p/data/i2cp/SessionStatusMessage.java

    r9386270 r000ca7c  
    1818
    1919/**
    20  * Defines the message a client sends to a router when destroying
    21  * existing session.
     20 * Defines the message a router sends to a client indicating the
     21 * status of the session.
    2222 *
    2323 * @author jrandom
Note: See TracChangeset for help on using the changeset viewer.