mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
Removed unnecessary calls to default super constructors.
This commit is contained in:
@@ -11,7 +11,5 @@ public class TransportConfig extends Hashtable<String, String> {
|
||||
super(c);
|
||||
}
|
||||
|
||||
public TransportConfig() {
|
||||
super();
|
||||
}
|
||||
public TransportConfig() {}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,5 @@ public class TransportProperties extends Hashtable<String, String> {
|
||||
super(p);
|
||||
}
|
||||
|
||||
public TransportProperties() {
|
||||
super();
|
||||
}
|
||||
public TransportProperties() {}
|
||||
}
|
||||
|
||||
@@ -4,9 +4,7 @@ public class DbException extends Exception {
|
||||
|
||||
private static final long serialVersionUID = 3706581789209939441L;
|
||||
|
||||
public DbException() {
|
||||
super();
|
||||
}
|
||||
public DbException() {}
|
||||
|
||||
public DbException(Throwable t) {
|
||||
super(t);
|
||||
|
||||
@@ -7,7 +7,6 @@ import junit.framework.TestCase;
|
||||
public abstract class BriarTestCase extends TestCase {
|
||||
|
||||
public BriarTestCase() {
|
||||
super();
|
||||
// Ensure exceptions thrown on worker threads cause tests to fail
|
||||
UncaughtExceptionHandler fail = new UncaughtExceptionHandler() {
|
||||
public void uncaughtException(Thread thread, Throwable throwable) {
|
||||
|
||||
@@ -77,7 +77,6 @@ public class ProtocolIntegrationTest extends BriarTestCase {
|
||||
private final TransportProperties transportProperties;
|
||||
|
||||
public ProtocolIntegrationTest() throws Exception {
|
||||
super();
|
||||
Injector i = Guice.createInjector(new TestDatabaseModule(),
|
||||
new TestLifecycleModule(), new TestUiModule(),
|
||||
new ClockModule(), new CryptoModule(), new DatabaseModule(),
|
||||
|
||||
@@ -29,7 +29,6 @@ public class CounterModeTest extends BriarTestCase {
|
||||
private final SecretKeySpec key;
|
||||
|
||||
public CounterModeTest() {
|
||||
super();
|
||||
Security.addProvider(new BouncyCastleProvider());
|
||||
random = new SecureRandom();
|
||||
keyBytes = new byte[KEY_SIZE_BYTES];
|
||||
|
||||
@@ -17,7 +17,6 @@ public class KeyDerivationTest extends BriarTestCase {
|
||||
private final byte[] secret;
|
||||
|
||||
public KeyDerivationTest() {
|
||||
super();
|
||||
crypto = new CryptoComponentImpl();
|
||||
secret = new byte[32];
|
||||
new Random().nextBytes(secret);
|
||||
|
||||
@@ -79,7 +79,6 @@ public abstract class DatabaseComponentTest extends BriarTestCase {
|
||||
protected final TemporarySecret temporarySecret;
|
||||
|
||||
public DatabaseComponentTest() {
|
||||
super();
|
||||
groupId = new GroupId(TestUtils.getRandomId());
|
||||
restrictedGroupId = new GroupId(TestUtils.getRandomId());
|
||||
group = new Group(groupId, "Group name", null);
|
||||
|
||||
@@ -69,7 +69,6 @@ public class H2DatabaseTest extends BriarTestCase {
|
||||
private final ContactId contactId;
|
||||
|
||||
public H2DatabaseTest() throws Exception {
|
||||
super();
|
||||
groupId = new GroupId(TestUtils.getRandomId());
|
||||
group = new Group(groupId, "Group name", null);
|
||||
authorId = new AuthorId(TestUtils.getRandomId());
|
||||
|
||||
@@ -33,7 +33,6 @@ public class PacketReaderImplTest extends BriarTestCase {
|
||||
private final WriterFactory writerFactory;
|
||||
|
||||
public PacketReaderImplTest() throws Exception {
|
||||
super();
|
||||
Injector i = Guice.createInjector(new SerialModule());
|
||||
serial = i.getInstance(SerialComponent.class);
|
||||
readerFactory = i.getInstance(ReaderFactory.class);
|
||||
|
||||
@@ -33,7 +33,6 @@ public class PacketWriterImplTest extends BriarTestCase {
|
||||
private final WriterFactory writerFactory;
|
||||
|
||||
public PacketWriterImplTest() {
|
||||
super();
|
||||
Injector i = Guice.createInjector(new TestDatabaseModule(),
|
||||
new TestLifecycleModule(), new ClockModule(),
|
||||
new CryptoModule(), new DatabaseModule(), new MessagingModule(),
|
||||
|
||||
@@ -57,7 +57,6 @@ public class OutgoingSimplexConnectionTest extends BriarTestCase {
|
||||
private final byte[] secret;
|
||||
|
||||
public OutgoingSimplexConnectionTest() {
|
||||
super();
|
||||
context = new Mockery();
|
||||
db = context.mock(DatabaseComponent.class);
|
||||
Module testModule = new AbstractModule() {
|
||||
|
||||
@@ -63,7 +63,6 @@ public class SimplexMessagingIntegrationTest extends BriarTestCase {
|
||||
private Injector alice, bob;
|
||||
|
||||
public SimplexMessagingIntegrationTest() throws Exception {
|
||||
super();
|
||||
transportId = new TransportId(TestUtils.getRandomId());
|
||||
// Create matching secrets for Alice and Bob
|
||||
initialSecret = new byte[32];
|
||||
|
||||
@@ -17,7 +17,6 @@ public class ConnectionRegistryImplTest extends BriarTestCase {
|
||||
private final TransportId transportId, transportId1;
|
||||
|
||||
public ConnectionRegistryImplTest() {
|
||||
super();
|
||||
contactId = new ContactId(1);
|
||||
contactId1 = new ContactId(2);
|
||||
transportId = new TransportId(TestUtils.getRandomId());
|
||||
|
||||
@@ -34,7 +34,6 @@ public class IncomingEncryptionLayerTest extends BriarTestCase {
|
||||
private final ErasableKey frameKey;
|
||||
|
||||
public IncomingEncryptionLayerTest() {
|
||||
super();
|
||||
Injector i = Guice.createInjector(new CryptoModule(),
|
||||
new TestLifecycleModule());
|
||||
crypto = i.getInstance(CryptoComponent.class);
|
||||
|
||||
@@ -34,7 +34,6 @@ public class OutgoingEncryptionLayerTest extends BriarTestCase {
|
||||
private final byte[] tag;
|
||||
|
||||
public OutgoingEncryptionLayerTest() {
|
||||
super();
|
||||
Injector i = Guice.createInjector(new CryptoModule(),
|
||||
new TestLifecycleModule());
|
||||
crypto = i.getInstance(CryptoComponent.class);
|
||||
|
||||
@@ -44,7 +44,6 @@ public class TransportIntegrationTest extends BriarTestCase {
|
||||
private final ErasableKey frameKey;
|
||||
|
||||
public TransportIntegrationTest() {
|
||||
super();
|
||||
Module testModule = new AbstractModule() {
|
||||
public void configure() {
|
||||
bind(ConnectionWriterFactory.class).to(
|
||||
|
||||
Reference in New Issue
Block a user