From e004e922566476c755448f6ed175075655aba569 Mon Sep 17 00:00:00 2001 From: Vyacheslav Boyko Date: Mon, 11 Jul 2022 14:24:53 +0300 Subject: [PATCH] better inheritance --- src/main/java/me/bvn13/fsm/Fsm.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/me/bvn13/fsm/Fsm.java b/src/main/java/me/bvn13/fsm/Fsm.java index 604d38e..e2dd83f 100644 --- a/src/main/java/me/bvn13/fsm/Fsm.java +++ b/src/main/java/me/bvn13/fsm/Fsm.java @@ -103,10 +103,10 @@ import java.util.function.Supplier; */ public class Fsm { - private boolean done = false; - private State initialState; - private State currentState; - private State previousState; + protected boolean done = false; + protected State initialState; + protected State currentState; + protected State previousState; private final Map> states = new HashMap<>(); private final Map>> transitions = new HashMap<>();