This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-lang.git
commit 2355c541cbd2e753cfbc69d6ea2e4ffbb21cf7a8 Author: Gary D. Gregory <garydgreg...@gmail.com> AuthorDate: Sun Jun 15 08:38:41 2025 -0400 Rename internal class --- .../lang3/concurrent/EventCountCircuitBreaker.java | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/concurrent/EventCountCircuitBreaker.java b/src/main/java/org/apache/commons/lang3/concurrent/EventCountCircuitBreaker.java index 8d4d63ab9..843a07d78 100644 --- a/src/main/java/org/apache/commons/lang3/concurrent/EventCountCircuitBreaker.java +++ b/src/main/java/org/apache/commons/lang3/concurrent/EventCountCircuitBreaker.java @@ -196,7 +196,7 @@ public CheckIntervalData increment(final int delta) { * circuit breaker. Having this logic extracted into special classes avoids complex * if-then-else cascades. */ - private abstract static class StateStrategy { + private abstract static class AbstractStateStrategy { /** * Obtains the check interval to applied for the represented state from the given * {@link CircuitBreaker}. @@ -234,9 +234,9 @@ public abstract boolean isStateTransition(EventCountCircuitBreaker breaker, } /** - * A specialized {@link StateStrategy} implementation for the state closed. + * A specialized {@link AbstractStateStrategy} implementation for the state closed. */ - private static final class StateStrategyClosed extends StateStrategy { + private static final class StateStrategyClosed extends AbstractStateStrategy { /** * {@inheritDoc} @@ -257,9 +257,9 @@ public boolean isStateTransition(final EventCountCircuitBreaker breaker, } /** - * A specialized {@link StateStrategy} implementation for the state open. + * A specialized {@link AbstractStateStrategy} implementation for the state open. */ - private static final class StateStrategyOpen extends StateStrategy { + private static final class StateStrategyOpen extends AbstractStateStrategy { /** * {@inheritDoc} */ @@ -281,7 +281,7 @@ public boolean isStateTransition(final EventCountCircuitBreaker breaker, } /** A map for accessing the strategy objects for the different states. */ - private static final Map<State, StateStrategy> STRATEGY_MAP = createStrategyMap(); + private static final Map<State, AbstractStateStrategy> STRATEGY_MAP = createStrategyMap(); /** * Creates the map with strategy objects. It allows access for a strategy for a given @@ -289,21 +289,21 @@ public boolean isStateTransition(final EventCountCircuitBreaker breaker, * * @return the strategy map */ - private static Map<State, StateStrategy> createStrategyMap() { - final Map<State, StateStrategy> map = new EnumMap<>(State.class); + private static Map<State, AbstractStateStrategy> createStrategyMap() { + final Map<State, AbstractStateStrategy> map = new EnumMap<>(State.class); map.put(State.CLOSED, new StateStrategyClosed()); map.put(State.OPEN, new StateStrategyOpen()); return map; } /** - * Returns the {@link StateStrategy} object responsible for the given state. + * Returns the {@link AbstractStateStrategy} object responsible for the given state. * * @param state the state - * @return the corresponding {@link StateStrategy} + * @return the corresponding {@link AbstractStateStrategy} * @throws CircuitBreakingException if the strategy cannot be resolved */ - private static StateStrategy stateStrategy(final State state) { + private static AbstractStateStrategy stateStrategy(final State state) { return STRATEGY_MAP.get(state); }