Skip to content

Commit

Permalink
clean-up based on to-be-updated Faces 5.0 spec
Browse files Browse the repository at this point in the history
  • Loading branch information
BalusC committed Feb 1, 2025
1 parent 64aaa9d commit 62ea6b4
Showing 1 changed file with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@

package com.sun.faces.el;

import static com.sun.faces.util.Util.getFeatureDescriptor;
import static java.util.Arrays.asList;

import java.beans.FeatureDescriptor;
import java.util.Iterator;

Expand Down Expand Up @@ -80,27 +77,22 @@ public boolean isReadOnly(ELContext context, Object base, Object property) throw
public Class<?> getType(ELContext context, Object base, Object property) throws ELException {
if (base == null && COMPOSITE_COMPONENT_NAME.equals(property)) {
context.setPropertyResolved(true);
return UIComponent.class;
}

return null;
}

@Override
public Class<?> getCommonPropertyType(ELContext context, Object base) {
if (base != null) {
return null;
if (base == null) {
return String.class;
}

return String.class;
return null;
}

@Override
public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base) {
if (base != null) {
return null;
}

return asList(getFeatureDescriptor("cc", "cc", "cc", false, false, true, UIComponent.class, Boolean.TRUE)).iterator();
return null;
}
}

0 comments on commit 62ea6b4

Please sign in to comment.