X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Fwot%2FIdentityManagerImpl.java;h=7d8d1e41bc833522346e61be16d0e1231d3e7792;hp=02e91ce0ebdfa40c46e6f2fc4b8e9a276926a02d;hb=2bacfa78f3191fd9847574a6c8b218a4882844a4;hpb=c4ae226ec5052116cefc542ae2017036a7bc6332
diff --git a/src/main/java/net/pterodactylus/sone/freenet/wot/IdentityManagerImpl.java b/src/main/java/net/pterodactylus/sone/freenet/wot/IdentityManagerImpl.java
index 02e91ce..7d8d1e4 100644
--- a/src/main/java/net/pterodactylus/sone/freenet/wot/IdentityManagerImpl.java
+++ b/src/main/java/net/pterodactylus/sone/freenet/wot/IdentityManagerImpl.java
@@ -43,8 +43,6 @@ import com.google.inject.Singleton;
* 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 David âBombeâ Roden
*/
@Singleton
public class IdentityManagerImpl extends AbstractService implements IdentityManager {
@@ -109,7 +107,7 @@ public class IdentityManagerImpl extends AbstractService implements IdentityMana
@Override
public Set getAllOwnIdentities() {
synchronized (currentOwnIdentities) {
- return new HashSet(currentOwnIdentities);
+ return new HashSet<>(currentOwnIdentities);
}
}
@@ -122,7 +120,7 @@ public class IdentityManagerImpl extends AbstractService implements IdentityMana
*/
@Override
protected void serviceRun() {
- Map> oldIdentities = new HashMap>();
+ Map> oldIdentities = new HashMap<>();
while (!shouldStop()) {
try {