From 6e52a8d9e20f2b1958727575b3c04d4df8bb1540 Mon Sep 17 00:00:00 2001 From: "stirlingbot[bot]" <195170888+stirlingbot[bot]@users.noreply.github.com> Date: Wed, 29 Oct 2025 19:50:49 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20format=20everything=20with=20pre?= =?UTF-8?q?-commit=20by=20stirlingbot=20(#4403)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Auto-generated by [create-pull-request][1] with **stirlingbot** [1]: https://github.com/peter-evans/create-pull-request Signed-off-by: stirlingbot[bot] Co-authored-by: stirlingbot[bot] <195170888+stirlingbot[bot]@users.noreply.github.com> --- .../software/common/util/GeneralUtils.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/app/common/src/main/java/stirling/software/common/util/GeneralUtils.java b/app/common/src/main/java/stirling/software/common/util/GeneralUtils.java index 110b94ecf7..7f5dd7a64c 100644 --- a/app/common/src/main/java/stirling/software/common/util/GeneralUtils.java +++ b/app/common/src/main/java/stirling/software/common/util/GeneralUtils.java @@ -33,7 +33,9 @@ import stirling.software.common.configuration.InstallationPathConfig; @UtilityClass public class GeneralUtils { - /** Maximum number of resolved DNS addresses allowed for a host before it is considered unsafe. */ + /** + * Maximum number of resolved DNS addresses allowed for a host before it is considered unsafe. + */ private static final int MAX_DNS_ADDRESSES = 20; private final Set DEFAULT_VALID_SCRIPTS = Set.of("png_to_webp.py", "split_photos.py"); @@ -298,8 +300,8 @@ public class GeneralUtils { } /** - * Checks whether a URL is reachable using configurable timeouts. Only {@code http} and - * {@code https} protocols are permitted, and local/private/multicast ranges are blocked. + * Checks whether a URL is reachable using configurable timeouts. Only {@code http} and {@code + * https} protocols are permitted, and local/private/multicast ranges are blocked. * * @param urlStr the URL to probe * @param connectTimeout connection timeout in milliseconds @@ -417,8 +419,8 @@ public class GeneralUtils { } /** - * Checks whether an IPv4 address is private or reserved. Any malformed input defaults to - * {@code true} (conservative) to avoid misuse. + * Checks whether an IPv4 address is private or reserved. Any malformed input defaults to {@code + * true} (conservative) to avoid misuse. * * @param address 4-byte IPv4 address * @return {@code true} if private/reserved @@ -488,8 +490,8 @@ public class GeneralUtils { } /** - * Checks whether an IPv6 address is an IPv4-mapped address (::ffff:0:0/96). Any malformed - * input defaults to {@code false} (conservative) to avoid misuse. + * Checks whether an IPv6 address is an IPv4-mapped address (::ffff:0:0/96). Any malformed input + * defaults to {@code false} (conservative) to avoid misuse. * * @param address 16-byte IPv6 address * @return {@code true} if IPv4-mapped