*/
public class NumberParsers {
- @Nonnull
+ @Nullable
public static Integer parseInt(@Nullable String text,
@Nullable Integer defaultValue) {
if (text == null) {
return (value == null) ? defaultValue : value;
}
- @Nonnull
+ @Nullable
public static Long parseLong(@Nullable String text,
@Nullable Long defaultValue) {
if (text == null) {