Skip to content

Commit c911bc3

Browse files
committed
use type
1 parent b3005f6 commit c911bc3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/groovy/com/github/hauner/openapi/spring/generatr/TypeMappingReader.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class TypeMappingReader {
127127
private TypeMapping readTypMapping (Map<String, ?> source, String target = 'to') {
128128
Matcher matcher = source.to =~ GENERIC_INLINE
129129

130-
def (from, format) = source.from ? source.from.tokenize (':') : [null, null]
130+
def (from, format) = source.from ? (source.from as String).tokenize (':') : [null, null]
131131
String to = source[target]
132132
List<String> generics = []
133133

0 commit comments

Comments
 (0)