From: David ‘Bombe’ Roden Date: Thu, 24 Oct 2013 19:59:04 +0000 (+0200) Subject: Return absent() instead of null. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=7708df5b6f4d1cf1416a8202b825a4f6f78f289e;p=Sone.git Return absent() instead of null. --- diff --git a/src/main/java/net/pterodactylus/sone/core/SoneParser.java b/src/main/java/net/pterodactylus/sone/core/SoneParser.java index b2d82be..3158a0b 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneParser.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneParser.java @@ -339,7 +339,7 @@ public class SoneParser { String clientVersion = clientXml.getValue("version", null); if ((clientName == null) || (clientVersion == null)) { logger.log(Level.WARNING, String.format("Download Sone %s with client XML but missing name or version!", sone)); - return null; + return absent(); } return of(new Client(clientName, clientVersion)); }