X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Fwot%2FIdentityManagerImpl.java;h=6f46465e02793e64ec174849787f309dabbd4907;hb=90cd4ab2d7c55e2a8acc9e0fd3d8bad5f9d24efa;hp=02e91ce0ebdfa40c46e6f2fc4b8e9a276926a02d;hpb=c4ae226ec5052116cefc542ae2017036a7bc6332;p=Sone.git
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..6f46465 100644
--- a/src/main/java/net/pterodactylus/sone/freenet/wot/IdentityManagerImpl.java
+++ b/src/main/java/net/pterodactylus/sone/freenet/wot/IdentityManagerImpl.java
@@ -1,5 +1,5 @@
/*
- * Sone - IdentityManagerImpl.java - Copyright © 2010â2016 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
@@ -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 {