Skip to content

Commit

Permalink
remove instead of commenting the getFeatureDescriptors() usage
Browse files Browse the repository at this point in the history
  • Loading branch information
alwin-joseph committed Jan 17, 2024
1 parent 7e0e6bc commit ff47a6e
Showing 1 changed file with 0 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}
}

0 comments on commit ff47a6e

Please sign in to comment.