persisting_state_of_components.md: Add @NotNull to a code snippet

This commit is contained in:
Karol Lewandowski 2023-10-18 15:48:10 +02:00
parent c834e8c483
commit 0b9985dfb4

View File

@ -135,7 +135,7 @@ See the example below.
```java
class LocalDateTimeConverter extends Converter<LocalDateTime> {
public LocalDateTime fromString(String value) {
public LocalDateTime fromString(@NotNull String value) {
long epochMilli = Long.parseLong(value);
ZoneId zoneId = ZoneId.systemDefault();
return Instant.ofEpochMilli(epochMilli).atZone(zoneId).toLocalDateTime();