From c09c7ae62b0dc785a7bcf88c88f4b8f20cff990d Mon Sep 17 00:00:00 2001 From: Hector Ventura Date: Thu, 8 Oct 2026 06:21:48 -0500 Subject: [PATCH] chore(elasticache): put restoreCacheCluster's Javadoc back on its method (#5297) The regionOf helper was inserted between restoreCacheCluster's Javadoc and the method, so the block describing how a cache cluster is restored documented regionOf instead, and restoreCacheCluster had none. The helper now sits above that Javadoc. No behaviour changes. --- .../floci/services/elasticache/ElastiCacheService.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/io/github/hectorvent/floci/services/elasticache/ElastiCacheService.java b/src/main/java/io/github/hectorvent/floci/services/elasticache/ElastiCacheService.java index 91e9bdc71a..80a5564762 100644 --- a/src/main/java/io/github/hectorvent/floci/services/elasticache/ElastiCacheService.java +++ b/src/main/java/io/github/hectorvent/floci/services/elasticache/ElastiCacheService.java @@ -749,6 +749,11 @@ public class ElastiCacheService implements ResourceProvider { } } + /** The region in a restored resource's ARN; one recorded without an ARN counts as the default region's. */ + private String regionOf(String arn) { + return AwsArnUtils.regionOrDefault(arn, regionResolver.getDefaultRegion()); + } + /** * Restarts the container and auth proxy behind a standalone Redis or Valkey cache cluster, * the same pair {@link #provisionCacheCluster} creates. The cache comes back empty, as it @@ -763,11 +768,6 @@ public class ElastiCacheService implements ResourceProvider { * monitor and re-reads the record, because a delete taken while the container started has * already removed it. */ - /** The region in a restored resource's ARN; one recorded without an ARN counts as the default region's. */ - private String regionOf(String arn) { - return AwsArnUtils.regionOrDefault(arn, regionResolver.getDefaultRegion()); - } - private void restoreCacheCluster(CacheCluster cluster) { String clusterId = cluster.getCacheClusterId(); String image = config.services().elasticache().defaultImage();