Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Nov 11, 2024
1 parent af79b3f commit db675d4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions core/src/main/java/lucee/runtime/type/util/MemberUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ public static Map<Collection.Key, FunctionLibFunction> getMembers(PageContext pc
f = it.next();
names = f.getMemberNames();
if (!ArrayUtil.isEmpty(names) && f.getMemberType() == type && f.getArgType() == FunctionLibFunction.ARG_FIX) {
for (int y = 0; y < names.length; y++)
for (int y = 0; y < names.length; y++) {
match.put(KeyImpl.init(names[y]), f);
}
}
}
matchesCFML.put(type, match);
Expand All @@ -94,6 +95,7 @@ public static Object call(PageContext pc, Object coll, Collection.Key methodName
Map<Key, FunctionLibFunction> members = null;
boolean hasAny = false;
boolean isChked = false;
FunctionLibFunction member, tmp;
for (int i = 0; i <= types.length; i++) {
if (i == types.length) {
if (hasAny) break;
Expand All @@ -106,8 +108,8 @@ public static Object call(PageContext pc, Object coll, Collection.Key methodName
if (type == CFTypes.TYPE_ANY) hasAny = true;
}
members = getMembers(pc, type);
FunctionLibFunction member = members.get(methodName), tmp;
if (member == null && !isChked) {
member = members.get(methodName);
if (!isChked && member == null) {
if (type == CFTypes.TYPE_NUMERIC) {
members = getMembers(pc, CFTypes.TYPE_STRING);
member = members.get(methodName);
Expand Down

0 comments on commit db675d4

Please sign in to comment.