794 B
794 B
CLEAN — Apache Commons Lang
Scanned 2026-03-29 for CWE-407 (algorithmic complexity).
Findings
ClassUtils.getAllInterfaces()— CLEAN: usesLinkedHashSetwithif (interfacesFound.add(i))guard; O(N+E) correctClassUtils.getAllSuperclasses()— CLEAN: simple linear superclass chain, no diamond issueTypeUtils.getClosestParentType()/ mutual recursion withisAssignable()— CLEAN: each recursive call reducesclsto ONE closest parent type; linear O(depth) not O(2^D)TypeUtils.determineTypeArguments()typeVarList.contains()— N is bounded by generic arity (typically 1–3); negligibleInheritanceUtils.distance()— CLEAN: simple linear recursionAnnotationUtils— CLEAN: no hierarchy traversal
Result: No actionable CWE-407 defects.