Use absent optional instead of null
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 20 Jul 2015 04:48:42 +0000 (06:48 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 20 Jul 2015 04:48:42 +0000 (06:48 +0200)
src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java

index 9ac5dd4..6f5ef85 100644 (file)
@@ -126,7 +126,7 @@ public class WebOfTrustConnector {
         *             if an error occured talking to the Web of Trust plugin
         */
        public Set<Identity> loadTrustedIdentities(OwnIdentity ownIdentity) throws PluginException {
-               return loadTrustedIdentities(ownIdentity, null);
+               return loadTrustedIdentities(ownIdentity, Optional.<String>absent());
        }
 
        /**