simplify code(and deduplicate)

This commit is contained in:
dev
2011-02-03 13:53:58 +00:00
parent 85d5a8542e
commit daac11d2d1

View File

@@ -45,8 +45,8 @@ public final class I2PDatagramMaker {
* @param session I2PSession used to send I2PDatagrams through * @param session I2PSession used to send I2PDatagrams through
*/ */
public I2PDatagramMaker(I2PSession session) { public I2PDatagramMaker(I2PSession session) {
sxPrivKey = session.getPrivateKey(); this();
sxDestBytes = session.getMyDestination().toByteArray(); this.setI2PDatagramMaker(session);
} }
/** /**
* Construct a new I2PDatagramMaker that is null. * Construct a new I2PDatagramMaker that is null.