forked from I2P_Developers/i2p.i2p
Fix net.i2p.data.*Key tests, remove dead code
Broken in 463f5347b682f23a159bdeb06ffc8f55c5c2cff7 by an underlying API change. The dead code threw the previously-expected exception.
This commit is contained in:
@@ -80,10 +80,8 @@ public abstract class SimpleDataStructure extends DataStructureImpl {
|
||||
throw new RuntimeException("Data already set");
|
||||
int length = length();
|
||||
_data = new byte[length];
|
||||
int read = read(in, _data);
|
||||
if (read != length)
|
||||
throw new DataFormatException("EOF reading " + getClass().getSimpleName() +
|
||||
", read: " + read + ", required: " + length);
|
||||
// Throws on incomplete read
|
||||
read(in, _data);
|
||||
}
|
||||
|
||||
public void writeBytes(OutputStream out) throws DataFormatException, IOException {
|
||||
|
||||
Reference in New Issue
Block a user