From 03036f062d5678471422874b00880df66d351cdb Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 25 May 2017 13:26:22 +0200 Subject: [PATCH] Fix annotations --- src/main/java/net/pterodactylus/sone/utils/NumberParsers.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/utils/NumberParsers.java b/src/main/java/net/pterodactylus/sone/utils/NumberParsers.java index 9e8afb4..ce4da2f 100644 --- a/src/main/java/net/pterodactylus/sone/utils/NumberParsers.java +++ b/src/main/java/net/pterodactylus/sone/utils/NumberParsers.java @@ -13,7 +13,7 @@ import com.google.common.primitives.Longs; */ public class NumberParsers { - @Nonnull + @Nullable public static Integer parseInt(@Nullable String text, @Nullable Integer defaultValue) { if (text == null) { @@ -23,7 +23,7 @@ public class NumberParsers { return (value == null) ? defaultValue : value; } - @Nonnull + @Nullable public static Long parseLong(@Nullable String text, @Nullable Long defaultValue) { if (text == null) { -- 2.7.4