projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prevent null-pointer exception if property is missing
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
utils
/
NumberParsers.java
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
(file)
--- 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 {
*/
public class NumberParsers {
- @N
onnull
+ @N
ullable
public static Integer parseInt(@Nullable String text,
@Nullable Integer defaultValue) {
if (text == null) {
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;
}
return (value == null) ? defaultValue : value;
}
- @N
onnull
+ @N
ullable
public static Long parseLong(@Nullable String text,
@Nullable Long defaultValue) {
if (text == null) {
public static Long parseLong(@Nullable String text,
@Nullable Long defaultValue) {
if (text == null) {