Skip to content

Commit 8ea4744

Browse files
committed
Update ErasureHelper.scala
1 parent cd32101 commit 8ea4744

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/scala-2/com/github/swagger/scala/converter/ErasureHelper.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
package com.github.swagger.scala.converter
22

3-
import scala.reflect.runtime.universe.TermName
3+
import scala.reflect.runtime.universe
44

55
object 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 {

0 commit comments

Comments
 (0)