mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-11 18:29:05 +01:00
Removed fake database password from Guice module.
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
package net.sf.briar.db;
|
||||
|
||||
import net.sf.briar.api.crypto.Password;
|
||||
import net.sf.briar.api.db.DatabaseComponent;
|
||||
import net.sf.briar.api.db.DatabasePassword;
|
||||
|
||||
import com.google.inject.AbstractModule;
|
||||
import com.google.inject.Singleton;
|
||||
@@ -14,11 +12,5 @@ public class DatabaseModule extends AbstractModule {
|
||||
bind(Database.class).to(H2Database.class);
|
||||
bind(DatabaseComponent.class).to(DatabaseComponentImpl.class).in(
|
||||
Singleton.class);
|
||||
bind(Password.class).annotatedWith(DatabasePassword.class).toInstance(
|
||||
new Password() {
|
||||
public char[] getPassword() {
|
||||
return "fixme fixme".toCharArray();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user