Polish local variable names in the ClusterAwareConfiguration.ClusterAwareCondition class methods.
This commit is contained in:
@@ -293,13 +293,13 @@ public class ClusterAwareConfiguration extends AbstractAnnotationConfigSupport i
|
|||||||
*/
|
*/
|
||||||
protected boolean doCachedMatch(@NonNull ConditionContext conditionContext) {
|
protected boolean doCachedMatch(@NonNull ConditionContext conditionContext) {
|
||||||
|
|
||||||
Supplier<Boolean> evaluateConditionMatch = () -> {
|
Supplier<Boolean> evaluateConditionMatches = () -> {
|
||||||
registerApplicationListener(conditionContext);
|
registerApplicationListener(conditionContext);
|
||||||
return doMatch(conditionContext);
|
return doMatch(conditionContext);
|
||||||
};
|
};
|
||||||
|
|
||||||
UnaryOperator<Boolean> clusterAvailableUpdateFunction = currentClusterAvailableState ->
|
UnaryOperator<Boolean> clusterAvailableUpdateFunction = currentClusterAvailable ->
|
||||||
ObjectUtils.initialize(currentClusterAvailableState, evaluateConditionMatch);
|
ObjectUtils.initialize(currentClusterAvailable, evaluateConditionMatches);
|
||||||
|
|
||||||
return clusterAvailable.updateAndGet(clusterAvailableUpdateFunction);
|
return clusterAvailable.updateAndGet(clusterAvailableUpdateFunction);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user