persisting_state_of_components.md: fix PSC sample code first variant

This commit is contained in:
Yann Cébron 2020-09-02 16:09:57 +02:00
parent d5faf64917
commit cdd7c7ac16

View File

@ -40,7 +40,7 @@ class MyService implements PersistentStateComponent<MyService.State> {
public String value;
}
State myState;
private State myState = new State();
public State getState() {
return myState;