Skip to content

Commit

Permalink
Add proper deprecation warnings to two methods.
Browse files Browse the repository at this point in the history
These were deprecated in the scaladoc but not annotated as such, so did not
emit warnings.
  • Loading branch information
Shadowfiend committed Apr 18, 2014
1 parent 65aeefb commit d009f02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ trait TimeHelpers { self: ControlHelpers =>
* @deprecated use today instead
* @return the current Day as a Date object
*/
@deprecated("use today instead", "2.6")
def dayNow: Date = 0.seconds.later.noTime

/** alias for new Date(millis) */
Expand Down
1 change: 1 addition & 0 deletions web/webkit/src/main/scala/net/liftweb/http/SHtml.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1679,6 +1679,7 @@ trait SHtml {
*
* @deprecated Use ajaxForm(NodeSeq,JsCmd) instead
*/
@deprecated("Use ajaxForm(NodeSeq, JsCmd) instead.", "2.6")
def ajaxForm(onSubmit: JsCmd, body: NodeSeq) = (<lift:form onsubmit={onSubmit.toJsCmd}>{body}</lift:form>)

/**
Expand Down

0 comments on commit d009f02

Please sign in to comment.