Replace unnecessary type parameters with <>
[Sone.git] / src / main / java / net / pterodactylus / sone / freenet / wot / IdentityLoader.java
index 1a8cc49..ff7e65f 100644 (file)
@@ -33,8 +33,6 @@ import com.google.inject.Inject;
 
 /**
  * Loads {@link OwnIdentity}s and the {@link Identity}s they trust.
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
  */
 public class IdentityLoader {
 
@@ -57,7 +55,7 @@ public class IdentityLoader {
        }
 
        private Map<OwnIdentity, Collection<Identity>> loadTrustedIdentitiesForOwnIdentities(Collection<OwnIdentity> ownIdentities) throws PluginException {
-               Map<OwnIdentity, Collection<Identity>> currentIdentities = new HashMap<OwnIdentity, Collection<Identity>>();
+               Map<OwnIdentity, Collection<Identity>> currentIdentities = new HashMap<>();
 
                for (OwnIdentity ownIdentity : ownIdentities) {
                        if (identityDoesNotHaveTheCorrectContext(ownIdentity)) {