forked from I2P_Developers/i2p.i2p
Data: Remove dup check for negative tunnel ID
This commit is contained in:
@@ -64,7 +64,8 @@ public class TunnelId {
|
||||
}
|
||||
|
||||
public void writeBytes(OutputStream out) throws DataFormatException, IOException {
|
||||
if (_tunnelId < 0) throw new DataFormatException("Invalid tunnel ID: " + _tunnelId);
|
||||
// writeLong() will throw DFE on negative value
|
||||
//if (_tunnelId < 0) throw new DataFormatException("Invalid tunnel ID: " + _tunnelId);
|
||||
DataHelper.writeLong(out, 4, _tunnelId);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user