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=33b1ef6e9fdd8f0159388a7780d4b3008121f4bb;hb=2bacfa78f3191fd9847574a6c8b218a4882844a4;hpb=1e9a08c2b73b16dc178437eb8c8025aaa083fcca
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..7d8d1e4 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â2016 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 {