X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Fwot%2FIdentity.java;h=d0cafc5ea84a6e1dea3d0304f4d0680a2a797c00;hp=523a42bd10180e9ff369d23d376745fbfbf1ae57;hb=c6c5a9f17eaab1656455f4a1b582fc411aab5eb4;hpb=2ff7fd6b411a079c8c8a52eee90cafeb14630ae8 diff --git a/src/main/java/net/pterodactylus/sone/freenet/wot/Identity.java b/src/main/java/net/pterodactylus/sone/freenet/wot/Identity.java index 523a42b..d0cafc5 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/wot/Identity.java +++ b/src/main/java/net/pterodactylus/sone/freenet/wot/Identity.java @@ -20,7 +20,6 @@ package net.pterodactylus.sone.freenet.wot; import java.util.Collection; import java.util.Collections; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.google.common.base.Function; @@ -41,10 +40,10 @@ public interface Identity { } }; - public static final Function>> TO_PROPERTIES = new Function>>() { + public static final Function> TO_PROPERTIES = new Function>() { @Override - public Collection> apply(Identity input) { - return (input == null) ? Collections.>emptySet() : input.getProperties().entrySet(); + public Map apply(Identity input) { + return (input == null) ? Collections.emptyMap() : input.getProperties(); } };