From 58e9bf06397f3737ab695ad7877bf1822752ff84 Mon Sep 17 00:00:00 2001 From: Vyacheslav Boyko Date: Mon, 11 Jul 2022 15:15:58 +0300 Subject: [PATCH] better inheritance 2 --- src/main/java/me/bvn13/fsm/Fsm.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/bvn13/fsm/Fsm.java b/src/main/java/me/bvn13/fsm/Fsm.java index e2dd83f..10c31c9 100644 --- a/src/main/java/me/bvn13/fsm/Fsm.java +++ b/src/main/java/me/bvn13/fsm/Fsm.java @@ -107,8 +107,8 @@ public class Fsm { protected State initialState; protected State currentState; protected State previousState; - private final Map> states = new HashMap<>(); - private final Map>> transitions = new HashMap<>(); + protected final Map> states = new HashMap<>(); + protected final Map>> transitions = new HashMap<>(); /** * Initiate a builder