Hello,
I'm wondering if there is a justification for having the "state" enumeration of a state machine in Java code be "package" or "default" private instead of public.
If there isn't I would like to propose it is made public due to having methods like "getState" already public but the value can't be saved anywhere outside the package of the generated class.
e.g.: (trimmed output for brevity)
class GarageDoor
{
status {
}
}
produces:
public class GarageDoor
{
//------------------------
// MEMBER VARIABLES
//------------------------
//GarageDoor State Machines
enum Status { }
private Status status;
// ... snip ...
public Status getStatus()
{
return status;
}
}
As for side effects of this change, there are none as decreasing visibility does not create compile issues unless the name has been reused AND the type was directly imported (extremely unlikely).
I'll open an issue if there are no complaints.
Thanks,
Kevin