diff --git a/spring/src/main/kotlin/de/codecentric/hikaku/converters/spring/extensions/PathsSpringExtension.kt b/spring/src/main/kotlin/de/codecentric/hikaku/converters/spring/extensions/PathsSpringExtension.kt index 04c6e4de..626fa966 100644 --- a/spring/src/main/kotlin/de/codecentric/hikaku/converters/spring/extensions/PathsSpringExtension.kt +++ b/spring/src/main/kotlin/de/codecentric/hikaku/converters/spring/extensions/PathsSpringExtension.kt @@ -2,6 +2,7 @@ package de.codecentric.hikaku.converters.spring.extensions import org.springframework.web.servlet.mvc.method.RequestMappingInfo -internal fun RequestMappingInfo.paths(): Set { - return this.patternsCondition?.patterns ?: emptySet() +internal fun RequestMappingInfo.paths(): Set = buildSet { + patternsCondition?.patterns?.let(::addAll) + pathPatternsCondition?.patterns?.map { it.patternString }?.let(::addAll) }