From ff47a6e4c2b3692c9ed0cc6cfa7610b3880545a3 Mon Sep 17 00:00:00 2001 From: Alwin Joseph Date: Wed, 17 Jan 2024 13:31:20 +0530 Subject: [PATCH] remove instead of commenting the getFeatureDescriptors() usage --- .../jsp/common/util/JspResolverTest.java | 38 ------------------- 1 file changed, 38 deletions(-) diff --git a/jsp/src/main/java/com/sun/ts/tests/jsp/common/util/JspResolverTest.java b/jsp/src/main/java/com/sun/ts/tests/jsp/common/util/JspResolverTest.java index f051d0da5a..9bc7fdb846 100644 --- a/jsp/src/main/java/com/sun/ts/tests/jsp/common/util/JspResolverTest.java +++ b/jsp/src/main/java/com/sun/ts/tests/jsp/common/util/JspResolverTest.java @@ -131,25 +131,6 @@ public static boolean testImplicitObjELResolver(ELContext elContext, buf.append("getCommonPropertyType() returns Class java.lang.String\n"); } - // avoid the usage of removed method getFeatureDescriptors from EL 6.0(EE11) - // getFeatureDescriptors() - // elContext.setPropertyResolved(false); - // Iterator i = resolver.getFeatureDescriptors(elContext, base); - // if (base != null) { - // if (i == null) { - // buf.append("getFeatureDescriptors() returned null for "); - // buf.append("a non-null base as expected\n"); - // } else { - // buf.append("getFeatureDescriptors() returned non-null "); - // buf.append("value for a non-null base\n"); - // pass = false; - // } - // } else { - // boolean fdPass = ResolverTest.testFeatureDescriptors(i, resolver, base, - // buf); - // if (!fdPass) - // pass = false; - // } return pass; } @@ -250,25 +231,6 @@ public static boolean testScopedAttrELResolver(ELContext elContext, buf.append("getCommonPropertyType() returns Class java.lang.String\n"); } - // avoid the usage of removed method getFeatureDescriptors from EL 6.0(EE11) - // getFeatureDescriptors() - // elContext.setPropertyResolved(false); - // Iterator i = resolver.getFeatureDescriptors(elContext, base); - // if (base != null) { - // if (i == null) { - // buf.append("getFeatureDescriptors() returned null for "); - // buf.append("a non-null base as expected\n"); - // } else { - // buf.append("getFeatureDescriptors() returned non-null "); - // buf.append("value for a non-null base\n"); - // pass = false; - // } - // } else { - // boolean fdPass = ResolverTest.testFeatureDescriptors(i, resolver, base, - // buf); - // if (!fdPass) - // pass = false; - // } return pass; } }