🔀 Merge branch “release-80”
[Sone.git] / src / main / java / net / pterodactylus / sone / freenet / wot / IdentityManagerImpl.java
index a9f3613..6f46465 100644 (file)
@@ -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
@@ -107,7 +107,7 @@ public class IdentityManagerImpl extends AbstractService implements IdentityMana
        @Override
        public Set<OwnIdentity> getAllOwnIdentities() {
                synchronized (currentOwnIdentities) {
-                       return new HashSet<OwnIdentity>(currentOwnIdentities);
+                       return new HashSet<>(currentOwnIdentities);
                }
        }
 
@@ -120,7 +120,7 @@ public class IdentityManagerImpl extends AbstractService implements IdentityMana
         */
        @Override
        protected void serviceRun() {
-               Map<OwnIdentity, Collection<Identity>> oldIdentities = new HashMap<OwnIdentity, Collection<Identity>>();
+               Map<OwnIdentity, Collection<Identity>> oldIdentities = new HashMap<>();
 
                while (!shouldStop()) {
                        try {