Changeset a5df6d4


Ignore:
Timestamp:
Jun 27, 2013 7:04:28 PM (7 years ago)
Author:
zab2 <zab2@…>
Branches:
master
Children:
847a441, a5f3220
Parents:
70adc4d
Message:

use String.intern() instead of a homebrew equivalent

File:
1 edited

Legend:

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

    r70adc4d ra5df6d4  
    216216        //_expiration = DataHelper.readDate(in);
    217217        DataHelper.readDate(in);
    218         _transportStyle = DataHelper.readString(in);
    219218        // reduce Object proliferation
    220         if (_transportStyle.equals("SSU"))
    221             _transportStyle = "SSU";
    222         else if (_transportStyle.equals("NTCP"))
    223             _transportStyle = "NTCP";
     219        _transportStyle = DataHelper.readString(in).intern();
    224220        DataHelper.readProperties(in, _options);
    225221    }
Note: See TracChangeset for help on using the changeset viewer.