I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit a5df6d41 authored by zab2's avatar zab2
Browse files

use String.intern() instead of a homebrew equivalent

parent 70adc4df
No related branches found
No related tags found
No related merge requests found
......@@ -215,12 +215,8 @@ public class RouterAddress extends DataStructureImpl {
_cost = (int) DataHelper.readLong(in, 1);
//_expiration = DataHelper.readDate(in);
DataHelper.readDate(in);
_transportStyle = DataHelper.readString(in);
// reduce Object proliferation
if (_transportStyle.equals("SSU"))
_transportStyle = "SSU";
else if (_transportStyle.equals("NTCP"))
_transportStyle = "NTCP";
_transportStyle = DataHelper.readString(in).intern();
DataHelper.readProperties(in, _options);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment