diff --git a/src/library-aux/scala/AnyRef.scala b/src/library-aux/scala/AnyRef.scala index 8a8eb21d1d74..ec76a0fd02d4 100644 --- a/src/library-aux/scala/AnyRef.scala +++ b/src/library-aux/scala/AnyRef.scala @@ -116,15 +116,13 @@ trait AnyRef extends Any { */ final def notifyAll(): Unit - /** Causes the current Thread to wait until another Thread invokes - * the notify() or notifyAll() methods. + /** See [[https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--]]. * * @note not specified by SLS as a member of AnyRef */ final def wait (): Unit - /** Causes the current Thread to wait until another Thread invokes - * the notify() or notifyAll() methods, or a specified amount of time has elapsed. + /** See [[https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-]] * * @param timeout the maximum time to wait in milliseconds. * @param nanos additional time, in nanoseconds range 0-999999. @@ -132,8 +130,7 @@ trait AnyRef extends Any { */ final def wait (timeout: Long, nanos: Int): Unit - /** Causes the current Thread to wait until another Thread invokes - * the notify() or notifyAll() methods, or a specified amount of time has elapsed. + /** See [[https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-]]. * * @param timeout the maximum time to wait in milliseconds. * @note not specified by SLS as a member of AnyRef diff --git a/test/scaladoc/run/anyref-doc.check b/test/scaladoc/run/anyref-doc.check index 67e93e031569..c8a214ad0ccd 100644 --- a/test/scaladoc/run/anyref-doc.check +++ b/test/scaladoc/run/anyref-doc.check @@ -2,16 +2,13 @@ Some(Body(List(Paragraph(Chain(List(Summary(Chain(List(Text(Wakes up all threads )))))) ) List(scala.AnyRef#wait, scala.AnyRef#wait, scala.AnyRef#wait) -Some(Body(List(Paragraph(Chain(List(Summary(Chain(List(Text(Causes the current Thread to wait until another Thread invokes - the notify() or notifyAll() methods), Text(.)))), Text( +Some(Body(List(Paragraph(Chain(List(Summary(Chain(List(Chain(List(Text(See ), Link(https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--,Text(https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--)))), Text(.)))), Text( )))))) ) -Some(Body(List(Paragraph(Chain(List(Summary(Chain(List(Text(Causes the current Thread to wait until another Thread invokes -the notify() or notifyAll() methods, or a specified amount of time has elapsed), Text(.)))), Text( -)))))) +Some(Body(List(Paragraph(Chain(List(Summary(Chain(List(Text(See ), Link(https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-,Text(https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)), Text( +), Text())))))))) ) -Some(Body(List(Paragraph(Chain(List(Summary(Chain(List(Text(Causes the current Thread to wait until another Thread invokes -the notify() or notifyAll() methods, or a specified amount of time has elapsed), Text(.)))), Text( +Some(Body(List(Paragraph(Chain(List(Summary(Chain(List(Chain(List(Text(See ), Link(https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-,Text(https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-)))), Text(.)))), Text( )))))) ) Done.