/*
- * Sone - IdentityManager.java - Copyright © 2010–2013 David Roden
+ * Sone - IdentityManagerImpl.java - Copyright © 2010–2019 David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* It is also responsible for polling identities from the Web of Trust plugin
* and sending events to the {@link EventBus} when {@link Identity}s and
* {@link OwnIdentity}s are discovered or disappearing.
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
@Singleton
public class IdentityManagerImpl extends AbstractService implements IdentityManager {
/** The logger. */
- private static final Logger logger = getLogger("Sone.Identities");
+ private static final Logger logger = getLogger(IdentityManagerImpl.class.getName());
/** The event bus. */
private final EventBus eventBus;
@Override
public Set<OwnIdentity> getAllOwnIdentities() {
synchronized (currentOwnIdentities) {
- return new HashSet<OwnIdentity>(currentOwnIdentities);
+ return new HashSet<>(currentOwnIdentities);
}
}
*/
@Override
protected void serviceRun() {
- Map<OwnIdentity, Collection<Identity>> oldIdentities = new HashMap<OwnIdentity, Collection<Identity>>();
+ Map<OwnIdentity, Collection<Identity>> oldIdentities = new HashMap<>();
while (!shouldStop()) {
try {