[infrastructure] add external null-annotations (#8848)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
This commit is contained in:
@@ -70,7 +70,7 @@ public abstract class BasePoint {
|
||||
@SerializedName("presentPriority")
|
||||
protected int presentPriority;
|
||||
|
||||
private @Nullable String @Nullable [] enumVals;
|
||||
private String @Nullable [] enumVals;
|
||||
private boolean enumParsed = false;
|
||||
protected boolean isEnum = false;
|
||||
|
||||
|
||||
@@ -34,10 +34,14 @@ public class StringPoint extends BasePoint {
|
||||
@Override
|
||||
public int asInt() {
|
||||
try {
|
||||
return Integer.parseInt(value);
|
||||
} catch (Exception e) {
|
||||
return UNDEFINED_VALUE;
|
||||
String value = this.value;
|
||||
if (value != null) {
|
||||
return Integer.parseInt(value);
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
// default value
|
||||
}
|
||||
return UNDEFINED_VALUE;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user