Sergey, I disagree - looks weird. We have lots of enums, is this one special in some way?
Thanks, Pavel On Wed, Jun 10, 2020 at 6:58 PM Sergey Antonov <antonovserge...@gmail.com> wrote: > Igniters, I'd like to propose a small improvement in ClusterState class. I > want to remove the static method boolean ClusterState#active and add > methods to the enum: > > - boolean active() > - boolean readOnly() > - boolean inactive() > > From my point of view these methods more useful than comparing with > specific enum's value. > > I'm going to do that on the ticket [1]. > > Any objections? > > [1] https://issues.apache.org/jira/browse/IGNITE-13144 > -- > BR, Sergey Antonov >