X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=inline;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Fwot%2FIdentityManagerImpl.java;h=6f46465e02793e64ec174849787f309dabbd4907;hb=b56a4062442a92b2121f85a6aadd416be5eb03ac;hp=33b1ef6e9fdd8f0159388a7780d4b3008121f4bb;hpb=1e9a08c2b73b16dc178437eb8c8025aaa083fcca;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 33b1ef6..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â2015 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 {