File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/main/scala-2/com/github/swagger/scala/converter Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 11package com .github .swagger .scala .converter
22
3- import scala .reflect .runtime .universe . TermName
3+ import scala .reflect .runtime .universe
44
55object ErasureHelper {
66
77 def erasedOptionalPrimitives (cls : Class [_]): Map [String , Class [_]] = {
8- import scala .reflect .runtime .universe
98 val mirror = universe.runtimeMirror(cls.getClassLoader)
109
1110 val moduleSymbol = mirror.moduleSymbol(Class .forName(cls.getName))
1211 val ConstructorName = " apply"
13- val companion : universe.Symbol = moduleSymbol.typeSignature.member(TermName (ConstructorName ))
12+ val companion : universe.Symbol = moduleSymbol.typeSignature.member(universe. TermName (ConstructorName ))
1413 val properties = if (companion.fullName.endsWith(ConstructorName )) {
1514 companion.asMethod.paramLists.flatten
1615 } else {
You can’t perform that action at this time.
0 commit comments