X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Futils%2FNumberParsers.java;h=d9091c0fd0e61edfd3a1afec7bf84382dacbfa8e;hp=9e8afb4054a281d81ca3a75cb565a1921ce92977;hb=HEAD;hpb=224be7a31fee673fa438cb02c4bb2105d01a52cc diff --git a/src/main/java/net/pterodactylus/sone/utils/NumberParsers.java b/src/main/java/net/pterodactylus/sone/utils/NumberParsers.java index 9e8afb4..d9091c0 100644 --- a/src/main/java/net/pterodactylus/sone/utils/NumberParsers.java +++ b/src/main/java/net/pterodactylus/sone/utils/NumberParsers.java @@ -1,6 +1,5 @@ package net.pterodactylus.sone.utils; -import javax.annotation.Nonnull; import javax.annotation.Nullable; import com.google.common.primitives.Ints; @@ -8,12 +7,10 @@ import com.google.common.primitives.Longs; /** * Parses numbers from strings. - * - * @author David ‘Bombe’ Roden */ public class NumberParsers { - @Nonnull + @Nullable public static Integer parseInt(@Nullable String text, @Nullable Integer defaultValue) { if (text == null) { @@ -23,7 +20,7 @@ public class NumberParsers { return (value == null) ? defaultValue : value; } - @Nonnull + @Nullable public static Long parseLong(@Nullable String text, @Nullable Long defaultValue) { if (text == null) {