diff --git a/htmlSanityCheck-core/src/main/java/org/aim42/htmlsanitycheck/tools/Web.java b/htmlSanityCheck-core/src/main/java/org/aim42/htmlsanitycheck/tools/Web.java
index 240524ed..9fc3d93d 100644
--- a/htmlSanityCheck-core/src/main/java/org/aim42/htmlsanitycheck/tools/Web.java
+++ b/htmlSanityCheck-core/src/main/java/org/aim42/htmlsanitycheck/tools/Web.java
@@ -34,23 +34,22 @@ private Web() {
public static final Set HTTP_REDIRECT_CODES = Collections.unmodifiableSet(new HashSet<>(Arrays.asList(
// tag::HTTP_REDIRECT_CODES[]
- 300, 301, 302, 303, 304,
- 305, 306, 307, 308
+ 301, 302, 303, 307, 308
// end::HTTP_REDIRECT_CODES[]
)));
- private static Set join (Set first, Set second) {
+ private static Set extendedByRedirects(Set first) {
Set result = new HashSet<>(first);
- result.addAll(second);
+ result.addAll(Web.HTTP_REDIRECT_CODES);
return Collections.unmodifiableSet(result);
}
- public static final Set HTTP_WARNING_CODES = join (Collections.unmodifiableSet(new HashSet<>(Arrays.asList(
+ public static final Set HTTP_WARNING_CODES = extendedByRedirects(new HashSet<>(Arrays.asList(
// tag::HTTP_WARNING_CODES[]
100, 101, 102
// end::HTTP_WARNING_CODES[]
- ))), HTTP_REDIRECT_CODES);
+ )));
public static final Set HTTP_ERROR_CODES = Collections.unmodifiableSet(new HashSet<>(Arrays.asList(
// tag::HTTP_ERROR_CODES[]