diff --git a/mybatis-scala-core/src/main/scala/org/mybatis/scala/config/Configuration.scala b/mybatis-scala-core/src/main/scala/org/mybatis/scala/config/Configuration.scala index 64cc5707..5c509cd0 100644 --- a/mybatis-scala-core/src/main/scala/org/mybatis/scala/config/Configuration.scala +++ b/mybatis-scala-core/src/main/scala/org/mybatis/scala/config/Configuration.scala @@ -204,7 +204,7 @@ object Configuration { * Creates a Configuration built from a custom builder * @param builder Builder => Unit */ - def apply(builder: Builder): Configuration = builder.build + def apply(builder: Builder): Configuration = builder.build() /** Configuration builder */ class Builder { @@ -232,7 +232,7 @@ object Configuration { } /** Ordered deferred setter */ - private def set[A](i: Int, e: ArrayBuffer[ConfigElem[A]])(f: A => Unit) { + private def set[A](i: Int, e: ArrayBuffer[ConfigElem[A]])(f: A => Unit): Unit = { e += new ConfigElem[A] { val index = i def set(c: A) = f(c)