mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
persisting_state_of_components.md: Add @NotNull to a code snippet
This commit is contained in:
parent
c834e8c483
commit
0b9985dfb4
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user