Deleting now-dead code path.
@@ -928,13 +928,7 @@ public class Jenkins extends AbstractCIBase implements DirectlyModifiableTopLeve
try {
Field blacklistPatternsF = ClassFilter.DEFAULT.getClass().getDeclaredField("blacklistPatterns");
blacklistPatternsF.setAccessible(true);
- Object blacklistPatterns = blacklistPatternsF.get(ClassFilter.DEFAULT);
- if (blacklistPatterns instanceof List) {
- @SuppressWarnings("unchecked")
- List<Pattern> blacklistPatternsL = (List) blacklistPatterns;
- blacklistPatternsL.add(Pattern.compile("java[.]security[.]SignedObject"));
- } else { // remoting 2.62+
- Object[] blacklistPatternsA = (Object[]) blacklistPatterns;
+ Object[] blacklistPatternsA = (Object[]) blacklistPatternsF.get(ClassFilter.DEFAULT);
boolean found = false;
for (int i = 0; i < blacklistPatternsA.length; i++) {
if (blacklistPatternsA[i] instanceof Pattern) {
@@ -946,7 +940,6 @@ public class Jenkins extends AbstractCIBase implements DirectlyModifiableTopLeve
if (!found) {
throw new Error("no Pattern found among " + Arrays.toString(blacklistPatternsA));
}
- }
} catch (NoSuchFieldException | IllegalAccessException x) {
throw new Error("Unexpected ClassFilter implementation in bundled remoting.jar: " + x, x);
}
