Skip to content

Commit

Permalink
Default should be by-name argument
Browse files Browse the repository at this point in the history
  • Loading branch information
jonifreeman committed Jun 30, 2011
1 parent 3d1b20c commit f01b9d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/json/src/main/scala/net/liftweb/json/JsonAST.scala
Expand Up @@ -330,7 +330,7 @@ object JsonAST {
* JNothing.extractOrElse(Person("joe")) == Person("joe")
* </pre>
*/
def extractOrElse[A](default: A)(implicit formats: Formats, mf: scala.reflect.Manifest[A]): A =
def extractOrElse[A](default: => A)(implicit formats: Formats, mf: scala.reflect.Manifest[A]): A =
Extraction.extractOpt(this)(formats, mf).getOrElse(default)
}

Expand Down

0 comments on commit f01b9d5

Please sign in to comment.