[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:
@@ -422,7 +422,7 @@ public class DynamoDBPersistenceService extends AbstractBufferedPersistenceServi
|
||||
String tableName = tableNameResolver.fromItem(dynamoItem);
|
||||
Deque<DynamoDBItem<?>> batch = batchesByTable.computeIfAbsent(tableName, new Function<>() {
|
||||
@Override
|
||||
public Deque<DynamoDBItem<?>> apply(@Nullable String t) {
|
||||
public @Nullable Deque<DynamoDBItem<?>> apply(@Nullable String t) {
|
||||
return new ArrayDeque<>();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -19,6 +19,7 @@ import java.math.BigDecimal;
|
||||
import java.time.Instant;
|
||||
import java.time.ZoneId;
|
||||
import java.time.ZonedDateTime;
|
||||
import java.util.Objects;
|
||||
import java.util.TimeZone;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
@@ -73,6 +74,8 @@ public class AbstractDynamoDBItemSerializationTest {
|
||||
assertEquals("item1", dbItem.getName());
|
||||
assertEquals(date, dbItem.getTime());
|
||||
Object actualState = dbItem.getState();
|
||||
assertNotNull(actualState);
|
||||
Objects.requireNonNull(actualState);
|
||||
if (expectedState instanceof BigDecimal) {
|
||||
BigDecimal expectedRounded = DynamoDBBigDecimalItem.loseDigits(((BigDecimal) expectedState));
|
||||
assertEquals(0, expectedRounded.compareTo((BigDecimal) actualState),
|
||||
|
||||
Reference in New Issue
Block a user