chore(style): remove var and inline qualified names from more files no open PR touches (#6768)

Each var now names the type javac inferred for it, and each fully qualified type name is
imported instead. The suppression list keeps only the files that open pull requests edit.
This commit is contained in:
TATSUNO “Taz” Yasuhiro authored and GitHub committed 2026-10-27 17:53:15 -05:00
1 parent 32cbf73adc
commit 3370d0ff62
18 files changed
+97 -97

No files matched your search

@@ -18,6 +18,7 @@ import io.github.hectorvent.floci.services.ec2.model.LaunchTemplate;
import io.github.hectorvent.floci.services.ec2.model.LaunchTemplateData;
import io.github.hectorvent.floci.services.ec2.model.Reservation;
import io.github.hectorvent.floci.services.ec2.model.Subnet;
import io.github.hectorvent.floci.services.ec2.model.Tag;
import io.github.hectorvent.floci.services.elb.ElbClassicService;
import io.github.hectorvent.floci.services.elbv2.ElbV2Service;
import io.github.hectorvent.floci.services.elbv2.model.TargetDescription;
@@ -1063,7 +1064,7 @@ public class AutoScalingReconciler {
String instanceType,
String keyName,
List<String> securityGroupIds,
List<io.github.hectorvent.floci.services.ec2.model.Tag> instanceTags,
List<Tag> instanceTags,
String userData,
String encodedUserData,
String iamInstanceProfile,
@@ -19,6 +19,7 @@ import org.jboss.logging.Logger;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -586,7 +587,7 @@ public class BackupController {
private Map<String, String> readStringMap(JsonNode node, String field) {
JsonNode mapNode = node.path(field);
if (mapNode.isMissingNode() || mapNode.isNull()) {
return new java.util.HashMap<>();
return new HashMap<>();
}
return objectMapper.convertValue(mapNode, Map.class);
}
@@ -32,6 +32,7 @@ import java.util.Objects;
import java.util.Set;
import java.util.function.Supplier;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
* CloudFormation provisioning for the EC2 networking types: {@code AWS::EC2::Subnet},
@@ -527,7 +528,7 @@ public class Ec2NetworkCfnProvisioner implements CfnResourceProvisioner {
String egressOnlyInternetGatewayId = ctx.resolveOptional(props, "EgressOnlyInternetGatewayId");
String vpcPeeringConnectionId = ctx.resolveOptional(props, "VpcPeeringConnectionId");
require(ROUTE, "RouteTableId", routeTableId);
long destinations = java.util.stream.Stream.of(destinationCidr, destinationIpv6Cidr, destinationPrefixListId)
long destinations = Stream.of(destinationCidr, destinationIpv6Cidr, destinationPrefixListId)
.filter(value -> value != null && !value.isBlank()).count();
if (destinations != 1) {
throw new AwsException("ValidationError", ROUTE + " requires exactly one of DestinationCidrBlock,"
@@ -827,7 +827,7 @@ public class CloudFrontService implements ServerCertificateReferenceProvider {
public ResponseHeadersPolicy getResponseHeadersPolicy(String id) {
return rhpStore.get(id)
.or(() -> java.util.Optional.ofNullable(MANAGED_RESPONSE_HEADERS_POLICIES.get(id)))
.or(() -> Optional.ofNullable(MANAGED_RESPONSE_HEADERS_POLICIES.get(id)))
.orElseThrow(() -> new AwsException("NoSuchResponseHeadersPolicy",
"The specified response headers policy does not exist.", 404));
}
@@ -927,7 +927,7 @@ public class CloudFrontService implements ServerCertificateReferenceProvider {
if (config == null) {
return;
}
Set<String> policyIds = new java.util.LinkedHashSet<>();
Set<String> policyIds = new LinkedHashSet<>();
if (config.getDefaultCacheBehavior() != null) {
addResponseHeadersPolicyId(
policyIds,
@@ -1232,7 +1232,7 @@ public class Ec2ContainerManager {
* attachment unknown rather than known to be absent
*/
private String bridgeNetworkIp(String containerId) {
var inspect = dockerClient.inspectContainerCmd(containerId).exec();
InspectContainerResponse inspect = dockerClient.inspectContainerCmd(containerId).exec();
if (inspect.getNetworkSettings() == null || inspect.getNetworkSettings().getNetworks() == null) {
return null;
}
@@ -1735,9 +1735,9 @@ public class Ec2ContainerManager {
private String getContainerBridgeIp(String containerId) {
try {
var inspect = dockerClient.inspectContainerCmd(containerId).exec();
InspectContainerResponse inspect = dockerClient.inspectContainerCmd(containerId).exec();
if (inspect.getNetworkSettings() != null) {
var networks = inspect.getNetworkSettings().getNetworks();
Map<String, ContainerNetwork> networks = inspect.getNetworkSettings().getNetworks();
if (networks != null) {
Optional<String> preferredIp = preferredMetadataSourceIp(networks);
if (preferredIp.isPresent()) {
@@ -49,6 +49,7 @@ import java.util.concurrent.Executors;
import java.util.concurrent.RejectedExecutionException;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import java.util.regex.Pattern;
@ApplicationScoped
public class FirehoseService implements ResourceProvider {
@@ -65,7 +66,7 @@ public class FirehoseService implements ResourceProvider {
* not a bare key id. Accepting anything else would let DescribeDeliveryStream report an
* encryption key that could never exist, where real AWS rejects the call outright.
*/
private static final java.util.regex.Pattern SSE_KEY_ARN_PATTERN = java.util.regex.Pattern.compile(
private static final Pattern SSE_KEY_ARN_PATTERN = Pattern.compile(
"arn:.*:kms:[a-zA-Z0-9\\-]+:\\d{12}:key/[a-zA-Z_0-9+=,.@\\-_/]+");
private static final int SSE_KEY_ARN_MAX_LENGTH = 512;
@@ -514,7 +515,7 @@ public class FirehoseService implements ResourceProvider {
current.canonicalizeProcessors();
}
stream.setVersionId(String.valueOf(parseVersionId(stream.getVersionId()) + 1));
stream.setLastUpdateTimestamp(java.time.Instant.now());
stream.setLastUpdateTimestamp(Instant.now());
streamPut(streamKey, stream);
LOG.infov("Updated destination {0} of Firehose delivery stream {1}", destinationId, name);
}
@@ -698,13 +698,13 @@ public class KinesisJsonHandler {
if (request.has("Timestamp") && !request.path("Timestamp").isNull()) {
JsonNode tsNode = request.path("Timestamp");
if (!tsNode.isNumber()) {
throw new io.github.hectorvent.floci.core.common.AwsException("InvalidArgumentException",
throw new AwsException("InvalidArgumentException",
"Timestamp must be a number (epoch seconds)", 400);
}
timestampMillis = Math.round(tsNode.asDouble() * 1000);
}
if ("AT_TIMESTAMP".equals(type) && timestampMillis == null) {
throw new io.github.hectorvent.floci.core.common.AwsException("InvalidArgumentException",
throw new AwsException("InvalidArgumentException",
"ShardIteratorType AT_TIMESTAMP requires a Timestamp", 400);
}
@@ -36,6 +36,7 @@ import java.util.PriorityQueue;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicLong;
import java.util.regex.Pattern;
@ApplicationScoped
public class KinesisService implements ResourceProvider {
@@ -464,12 +465,12 @@ public class KinesisService implements ResourceProvider {
shard2.setSequenceNumberRange(new KinesisShard.SequenceNumberRange(shard2.getSequenceNumberRange().startingSequenceNumber(), seq));
// Combine hash ranges (assuming they are adjacent)
java.math.BigInteger s1Start = new java.math.BigInteger(shard1.getHashKeyRange().startingHashKey());
java.math.BigInteger s2Start = new java.math.BigInteger(shard2.getHashKeyRange().startingHashKey());
BigInteger s1Start = new BigInteger(shard1.getHashKeyRange().startingHashKey());
BigInteger s2Start = new BigInteger(shard2.getHashKeyRange().startingHashKey());
String start = s1Start.min(s2Start).toString();
java.math.BigInteger s1End = new java.math.BigInteger(shard1.getHashKeyRange().endingHashKey());
java.math.BigInteger s2End = new java.math.BigInteger(shard2.getHashKeyRange().endingHashKey());
BigInteger s1End = new BigInteger(shard1.getHashKeyRange().endingHashKey());
BigInteger s2End = new BigInteger(shard2.getHashKeyRange().endingHashKey());
String end = s1End.max(s2End).toString();
KinesisShard child = new KinesisShard(nextShardId(stream), start, end, seq);
@@ -836,7 +837,7 @@ public class KinesisService implements ResourceProvider {
throw new AwsException("InvalidArgumentException", "Invalid shard iterator", 400);
}
// Use limit=-1 so trailing empty slots round-trip and old 5-part iterators still work.
String[] parts = new String(decoded, StandardCharsets.UTF_8).split(java.util.regex.Pattern.quote("|"), -1);
String[] parts = new String(decoded, StandardCharsets.UTF_8).split(Pattern.quote("|"), -1);
if (parts.length < 5) {
throw new AwsException("InvalidArgumentException", "Invalid shard iterator", 400);
}
@@ -15,6 +15,7 @@ import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Optional;
import java.util.regex.Pattern;
/**
* Builds the Pod manifest for one Lambda execution environment, as a plain JSON tree (see
@@ -28,11 +29,11 @@ public class LambdaPodSpecFactory {
private static final Logger LOG = Logger.getLogger(LambdaPodSpecFactory.class);
/** Label key: optional DNS-subdomain prefix (dot-separated valid segments), then a 63-char-max name. */
private static final java.util.regex.Pattern LABEL_KEY =
java.util.regex.Pattern.compile("([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?[a-zA-Z0-9]([-a-zA-Z0-9_.]{0,61}[a-zA-Z0-9])?");
private static final Pattern LABEL_KEY =
Pattern.compile("([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?[a-zA-Z0-9]([-a-zA-Z0-9_.]{0,61}[a-zA-Z0-9])?");
/** Label value: empty, or 63-char-max alphanumeric-bounded. */
private static final java.util.regex.Pattern LABEL_VALUE =
java.util.regex.Pattern.compile("([a-zA-Z0-9]([-a-zA-Z0-9_.]{0,61}[a-zA-Z0-9])?)?");
private static final Pattern LABEL_VALUE =
Pattern.compile("([a-zA-Z0-9]([-a-zA-Z0-9_.]{0,61}[a-zA-Z0-9])?)?");
static final String MANAGED_BY_LABEL = "app.kubernetes.io/managed-by";
static final String MANAGED_BY_VALUE = "floci";