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

Skip to content
Snippets Groups Projects
Commit 716bff41 authored by zzz's avatar zzz
Browse files

remove cast

parent 1d8842cf
Branches
Tags
No related merge requests found
...@@ -411,10 +411,11 @@ public abstract class I2NPMessageImpl extends DataStructureImpl implements I2NPM ...@@ -411,10 +411,11 @@ public abstract class I2NPMessageImpl extends DataStructureImpl implements I2NPM
* THe header consists of a one-byte type and a 4-byte expiration in seconds only. * THe header consists of a one-byte type and a 4-byte expiration in seconds only.
* Used by SSU only! * Used by SSU only!
*/ */
public static I2NPMessage fromRawByteArray(I2PAppContext ctx, byte buffer[], int offset, int len, I2NPMessageHandler handler) throws I2NPMessageException { public static I2NPMessage fromRawByteArray(I2PAppContext ctx, byte buffer[], int offset,
int len, I2NPMessageHandler handler) throws I2NPMessageException {
int type = (int)DataHelper.fromLong(buffer, offset, 1); int type = (int)DataHelper.fromLong(buffer, offset, 1);
offset++; offset++;
I2NPMessageImpl msg = (I2NPMessageImpl)createMessage(ctx, type); I2NPMessage msg = createMessage(ctx, type);
if (msg == null) if (msg == null)
throw new I2NPMessageException("Unknown message type: " + type); throw new I2NPMessageException("Unknown message type: " + type);
//if (RAW_FULL_SIZE) { //if (RAW_FULL_SIZE) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment