[infrastructure] move infered nullness warnings to error and update EEA (#8949)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
This commit is contained in:
@@ -19,6 +19,7 @@ import java.time.ZoneId;
|
||||
import java.time.ZonedDateTime;
|
||||
import java.util.Calendar;
|
||||
import java.util.GregorianCalendar;
|
||||
import java.util.Objects;
|
||||
import java.util.TimeZone;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
@@ -91,11 +92,8 @@ public class PropertyUtils {
|
||||
Method m = instance.getClass().getMethod(toGetterString(propertyName), null);
|
||||
Object result = m.invoke(instance, (Object[]) null);
|
||||
if (nestedIndex + 1 < properties.length) {
|
||||
if (result != null) {
|
||||
return getPropertyValue(result, properties, nestedIndex + 1);
|
||||
} else {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
Objects.requireNonNull(result);
|
||||
return getPropertyValue(result, properties, nestedIndex + 1);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user