Remove annotation, the function can return null.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 26 Oct 2013 15:52:03 +0000 (17:52 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 28 Feb 2014 21:25:46 +0000 (22:25 +0100)
src/main/java/net/pterodactylus/sone/data/Identified.java

index bd1a91f..eec94f1 100644 (file)
@@ -17,8 +17,6 @@
 
 package net.pterodactylus.sone.data;
 
-import javax.annotation.Nonnull;
-
 import com.google.common.base.Function;
 
 /**
@@ -32,7 +30,6 @@ public interface Identified {
        public static final Function<Identified, String> GET_ID = new Function<Identified, String>() {
 
                @Override
-               @Nonnull
                public String apply(Identified identified) {
                        return (identified == null) ? null : identified.getId();
                }