remove unused Logs from DataStructures
This commit is contained in:
@ -4,10 +4,7 @@ import java.io.IOException;
|
|||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
|
|
||||||
import net.i2p.util.Log;
|
|
||||||
|
|
||||||
public class Address extends DataStructureImpl {
|
public class Address extends DataStructureImpl {
|
||||||
private final static Log _log = new Log(Address.class);
|
|
||||||
private String _hostname;
|
private String _hostname;
|
||||||
private Destination _destination;
|
private Destination _destination;
|
||||||
|
|
||||||
|
@ -13,8 +13,6 @@ import java.io.IOException;
|
|||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
|
|
||||||
import net.i2p.util.Log;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines a certificate that can be attached to various I2P structures, such
|
* Defines a certificate that can be attached to various I2P structures, such
|
||||||
* as RouterIdentity and Destination, allowing routers and clients to help
|
* as RouterIdentity and Destination, allowing routers and clients to help
|
||||||
@ -23,10 +21,11 @@ import net.i2p.util.Log;
|
|||||||
* certificate authority, though that use probably isn't appropriate for an
|
* certificate authority, though that use probably isn't appropriate for an
|
||||||
* anonymous network ;)
|
* anonymous network ;)
|
||||||
*
|
*
|
||||||
|
* Todo: Properly support multiple certificates
|
||||||
|
*
|
||||||
* @author jrandom
|
* @author jrandom
|
||||||
*/
|
*/
|
||||||
public class Certificate extends DataStructureImpl {
|
public class Certificate extends DataStructureImpl {
|
||||||
private final static Log _log = new Log(Certificate.class);
|
|
||||||
private int _type;
|
private int _type;
|
||||||
private byte[] _payload;
|
private byte[] _payload;
|
||||||
|
|
||||||
|
@ -10,7 +10,6 @@ package net.i2p.data;
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import net.i2p.I2PException;
|
import net.i2p.I2PException;
|
||||||
import net.i2p.util.Log;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Thrown when the data was not available to read or write a DataStructure
|
* Thrown when the data was not available to read or write a DataStructure
|
||||||
@ -18,7 +17,6 @@ import net.i2p.util.Log;
|
|||||||
* @author jrandom
|
* @author jrandom
|
||||||
*/
|
*/
|
||||||
public class DataFormatException extends I2PException {
|
public class DataFormatException extends I2PException {
|
||||||
private final static Log _log = new Log(DataFormatException.class);
|
|
||||||
|
|
||||||
public DataFormatException(String msg, Throwable t) {
|
public DataFormatException(String msg, Throwable t) {
|
||||||
super(msg, t);
|
super(msg, t);
|
||||||
@ -27,4 +25,4 @@ public class DataFormatException extends I2PException {
|
|||||||
public DataFormatException(String msg) {
|
public DataFormatException(String msg) {
|
||||||
super(msg);
|
super(msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -294,7 +294,7 @@ public class DataHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Writes the props to the file, unsorted.
|
* Writes the props to the file, unsorted (unless props is an OrderedProperties)
|
||||||
* Note that this does not escape the \r or \n that are unescaped in loadProps() above.
|
* Note that this does not escape the \r or \n that are unescaped in loadProps() above.
|
||||||
*/
|
*/
|
||||||
public static void storeProps(Properties props, File file) throws IOException {
|
public static void storeProps(Properties props, File file) throws IOException {
|
||||||
|
@ -14,8 +14,6 @@ import java.io.IOException;
|
|||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
|
|
||||||
import net.i2p.util.Log;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines an end point in the I2P network. The Destination may move around
|
* Defines an end point in the I2P network. The Destination may move around
|
||||||
* in the network, but messages sent to the Destination will find it
|
* in the network, but messages sent to the Destination will find it
|
||||||
@ -23,7 +21,6 @@ import net.i2p.util.Log;
|
|||||||
* @author jrandom
|
* @author jrandom
|
||||||
*/
|
*/
|
||||||
public class Destination extends DataStructureImpl {
|
public class Destination extends DataStructureImpl {
|
||||||
protected final static Log _log = new Log(Destination.class);
|
|
||||||
protected Certificate _certificate;
|
protected Certificate _certificate;
|
||||||
protected SigningPublicKey _signingKey;
|
protected SigningPublicKey _signingKey;
|
||||||
protected PublicKey _publicKey;
|
protected PublicKey _publicKey;
|
||||||
|
@ -15,7 +15,6 @@ import java.io.OutputStream;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import net.i2p.util.Clock;
|
import net.i2p.util.Clock;
|
||||||
import net.i2p.util.Log;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the proof that a particular router / tunnel is allowed to receive
|
* Defines the proof that a particular router / tunnel is allowed to receive
|
||||||
@ -24,7 +23,6 @@ import net.i2p.util.Log;
|
|||||||
* @author jrandom
|
* @author jrandom
|
||||||
*/
|
*/
|
||||||
public class Lease extends DataStructureImpl {
|
public class Lease extends DataStructureImpl {
|
||||||
private final static Log _log = new Log(Lease.class);
|
|
||||||
private Hash _gateway;
|
private Hash _gateway;
|
||||||
private TunnelId _tunnelId;
|
private TunnelId _tunnelId;
|
||||||
private Date _end;
|
private Date _end;
|
||||||
@ -155,4 +153,4 @@ public class Lease extends DataStructureImpl {
|
|||||||
buf.append("]");
|
buf.append("]");
|
||||||
return buf.toString();
|
return buf.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,6 @@ import java.io.InputStream;
|
|||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
|
|
||||||
import net.i2p.crypto.KeyGenerator;
|
import net.i2p.crypto.KeyGenerator;
|
||||||
import net.i2p.util.Log;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the PrivateKey as defined by the I2P data structure spec.
|
* Defines the PrivateKey as defined by the I2P data structure spec.
|
||||||
@ -24,7 +23,6 @@ import net.i2p.util.Log;
|
|||||||
* @author jrandom
|
* @author jrandom
|
||||||
*/
|
*/
|
||||||
public class PrivateKey extends DataStructureImpl {
|
public class PrivateKey extends DataStructureImpl {
|
||||||
private final static Log _log = new Log(PrivateKey.class);
|
|
||||||
private byte[] _data;
|
private byte[] _data;
|
||||||
|
|
||||||
public final static int KEYSIZE_BYTES = 256;
|
public final static int KEYSIZE_BYTES = 256;
|
||||||
|
@ -13,8 +13,6 @@ import java.io.IOException;
|
|||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
|
|
||||||
import net.i2p.util.Log;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the PublicKey as defined by the I2P data structure spec.
|
* Defines the PublicKey as defined by the I2P data structure spec.
|
||||||
* A public key is 256byte Integer. The public key represents only the
|
* A public key is 256byte Integer. The public key represents only the
|
||||||
@ -23,7 +21,6 @@ import net.i2p.util.Log;
|
|||||||
* @author jrandom
|
* @author jrandom
|
||||||
*/
|
*/
|
||||||
public class PublicKey extends DataStructureImpl {
|
public class PublicKey extends DataStructureImpl {
|
||||||
private final static Log _log = new Log(PublicKey.class);
|
|
||||||
private byte[] _data;
|
private byte[] _data;
|
||||||
|
|
||||||
public final static int KEYSIZE_BYTES = 256;
|
public final static int KEYSIZE_BYTES = 256;
|
||||||
|
@ -16,15 +16,12 @@ import java.util.Date;
|
|||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
import net.i2p.util.Log;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines a method of communicating with a router
|
* Defines a method of communicating with a router
|
||||||
*
|
*
|
||||||
* @author jrandom
|
* @author jrandom
|
||||||
*/
|
*/
|
||||||
public class RouterAddress extends DataStructureImpl {
|
public class RouterAddress extends DataStructureImpl {
|
||||||
private final static Log _log = new Log(RouterAddress.class);
|
|
||||||
private int _cost;
|
private int _cost;
|
||||||
private Date _expiration;
|
private Date _expiration;
|
||||||
private String _transportStyle;
|
private String _transportStyle;
|
||||||
|
@ -13,8 +13,6 @@ import java.io.IOException;
|
|||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
|
|
||||||
import net.i2p.util.Log;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the SessionKey as defined by the I2P data structure spec.
|
* Defines the SessionKey as defined by the I2P data structure spec.
|
||||||
* A session key is 32byte Integer.
|
* A session key is 32byte Integer.
|
||||||
@ -22,7 +20,6 @@ import net.i2p.util.Log;
|
|||||||
* @author jrandom
|
* @author jrandom
|
||||||
*/
|
*/
|
||||||
public class SessionKey extends DataStructureImpl {
|
public class SessionKey extends DataStructureImpl {
|
||||||
private final static Log _log = new Log(SessionKey.class);
|
|
||||||
private byte[] _data;
|
private byte[] _data;
|
||||||
private Object _preparedKey;
|
private Object _preparedKey;
|
||||||
|
|
||||||
|
@ -13,8 +13,6 @@ import java.io.IOException;
|
|||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
|
|
||||||
import net.i2p.util.Log;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the signature as defined by the I2P data structure spec.
|
* Defines the signature as defined by the I2P data structure spec.
|
||||||
* A signature is a 40byte Integer verifying the authenticity of some data
|
* A signature is a 40byte Integer verifying the authenticity of some data
|
||||||
@ -23,7 +21,6 @@ import net.i2p.util.Log;
|
|||||||
* @author jrandom
|
* @author jrandom
|
||||||
*/
|
*/
|
||||||
public class Signature extends DataStructureImpl {
|
public class Signature extends DataStructureImpl {
|
||||||
private final static Log _log = new Log(Signature.class);
|
|
||||||
private byte[] _data;
|
private byte[] _data;
|
||||||
|
|
||||||
public final static int SIGNATURE_BYTES = 40;
|
public final static int SIGNATURE_BYTES = 40;
|
||||||
|
@ -14,7 +14,6 @@ import java.io.InputStream;
|
|||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
|
|
||||||
import net.i2p.crypto.KeyGenerator;
|
import net.i2p.crypto.KeyGenerator;
|
||||||
import net.i2p.util.Log;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the SigningPrivateKey as defined by the I2P data structure spec.
|
* Defines the SigningPrivateKey as defined by the I2P data structure spec.
|
||||||
@ -25,7 +24,6 @@ import net.i2p.util.Log;
|
|||||||
* @author jrandom
|
* @author jrandom
|
||||||
*/
|
*/
|
||||||
public class SigningPrivateKey extends DataStructureImpl {
|
public class SigningPrivateKey extends DataStructureImpl {
|
||||||
private final static Log _log = new Log(SigningPrivateKey.class);
|
|
||||||
private byte[] _data;
|
private byte[] _data;
|
||||||
|
|
||||||
public final static int KEYSIZE_BYTES = 20;
|
public final static int KEYSIZE_BYTES = 20;
|
||||||
|
@ -13,8 +13,6 @@ import java.io.IOException;
|
|||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
|
|
||||||
import net.i2p.util.Log;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the SigningPublicKey as defined by the I2P data structure spec.
|
* Defines the SigningPublicKey as defined by the I2P data structure spec.
|
||||||
* A public key is 256byte Integer. The public key represents only the
|
* A public key is 256byte Integer. The public key represents only the
|
||||||
@ -24,7 +22,6 @@ import net.i2p.util.Log;
|
|||||||
* @author jrandom
|
* @author jrandom
|
||||||
*/
|
*/
|
||||||
public class SigningPublicKey extends DataStructureImpl {
|
public class SigningPublicKey extends DataStructureImpl {
|
||||||
private final static Log _log = new Log(SigningPublicKey.class);
|
|
||||||
private byte[] _data;
|
private byte[] _data;
|
||||||
|
|
||||||
public final static int KEYSIZE_BYTES = 128;
|
public final static int KEYSIZE_BYTES = 128;
|
||||||
|
@ -12,8 +12,6 @@ import java.io.IOException;
|
|||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
|
|
||||||
import net.i2p.util.Log;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the tunnel ID that messages are passed through on a set of routers.
|
* Defines the tunnel ID that messages are passed through on a set of routers.
|
||||||
* This is not globally unique, but must be unique on each router making up
|
* This is not globally unique, but must be unique on each router making up
|
||||||
@ -23,7 +21,6 @@ import net.i2p.util.Log;
|
|||||||
* @author jrandom
|
* @author jrandom
|
||||||
*/
|
*/
|
||||||
public class TunnelId extends DataStructureImpl {
|
public class TunnelId extends DataStructureImpl {
|
||||||
private final static Log _log = new Log(TunnelId.class);
|
|
||||||
private long _tunnelId;
|
private long _tunnelId;
|
||||||
private int _type;
|
private int _type;
|
||||||
|
|
||||||
|
@ -13,8 +13,6 @@ import java.security.NoSuchAlgorithmException;
|
|||||||
|
|
||||||
import com.nettgryppa.security.HashCash;
|
import com.nettgryppa.security.HashCash;
|
||||||
|
|
||||||
import net.i2p.util.Log;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Extend Destination with methods to verify its Certificate.
|
* Extend Destination with methods to verify its Certificate.
|
||||||
* The router does not check Certificates, it doesn't care.
|
* The router does not check Certificates, it doesn't care.
|
||||||
@ -26,7 +24,6 @@ import net.i2p.util.Log;
|
|||||||
* @author zzz
|
* @author zzz
|
||||||
*/
|
*/
|
||||||
public class VerifiedDestination extends Destination {
|
public class VerifiedDestination extends Destination {
|
||||||
protected final static Log _log = new Log(Destination.class);
|
|
||||||
|
|
||||||
public VerifiedDestination() {
|
public VerifiedDestination() {
|
||||||
super();
|
super();
|
||||||
|
Reference in New Issue
Block a user