diff --git a/junit-platform-commons/src/main/java/org/junit/platform/commons/util/ReflectionUtils.java b/junit-platform-commons/src/main/java/org/junit/platform/commons/util/ReflectionUtils.java index 2dafd46d5344..5347a1fa1fbe 100644 --- a/junit-platform-commons/src/main/java/org/junit/platform/commons/util/ReflectionUtils.java +++ b/junit-platform-commons/src/main/java/org/junit/platform/commons/util/ReflectionUtils.java @@ -126,21 +126,6 @@ public enum HierarchyTraversalMode { BOTTOM_UP } - // Pattern: "[Ljava.lang.String;", "[[[[Ljava.lang.String;", etc. - private static final Pattern VM_INTERNAL_OBJECT_ARRAY_PATTERN = Pattern.compile("^(\\[+)L(.+);$"); - - /** - * Pattern: "[x", "[[[[x", etc., where x is Z, B, C, D, F, I, J, S, etc. - * - *
The pattern intentionally captures the last bracket with the
- * capital letter so that the combination can be looked up via
- * {@link #classNameToTypeMap}. For example, the last matched group
- * will contain {@code "[I"} instead of {@code "I"}.
- *
- * @see Class#getName()
- */
- private static final Pattern VM_INTERNAL_PRIMITIVE_ARRAY_PATTERN = Pattern.compile("^(\\[+)(\\[[ZBCDFIJS])$");
-
// Pattern: "java.lang.String[]", "int[]", "int[][][][]", etc.
// ?> => non-capturing atomic group
// ++ => possessive quantifier
@@ -856,32 +841,8 @@ public static Try