diff options
author | Philipp Haller <hallerp@gmail.com> | 2013-11-08 15:59:04 +0100 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2013-11-12 20:15:49 +0100 |
commit | aac015a84c2d64ce485078a5a854bc7533e2fc7b (patch) | |
tree | a892f2af1bd0c67490dcb6bfdb92d2c46e976749 /test/files/pos/t2484.scala | |
parent | 7ecfce1fb8d39275f082aaa3ad4dc0eee197391c (diff) | |
download | scala-aac015a84c2d64ce485078a5a854bc7533e2fc7b.tar.gz scala-aac015a84c2d64ce485078a5a854bc7533e2fc7b.tar.bz2 scala-aac015a84c2d64ce485078a5a854bc7533e2fc7b.zip |
SI-7958 Deprecate methods `future` and `promise` in the `scala.concurrent` package object
- The corresponding `apply` methods in the `Future` and `Promise` objects
should be used instead.
- Adjusted tests to use non-deprecated versions
- Fixed doc comments not to use deprecated methods
- Added comment about planned removal in 2.13.0
Diffstat (limited to 'test/files/pos/t2484.scala')
-rwxr-xr-x | test/files/pos/t2484.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/pos/t2484.scala b/test/files/pos/t2484.scala index 29f798edf9..88da6aaac8 100755 --- a/test/files/pos/t2484.scala +++ b/test/files/pos/t2484.scala @@ -3,7 +3,7 @@ import concurrent.ExecutionContext.Implicits.global class Admin extends javax.swing.JApplet { val jScrollPane = new javax.swing.JScrollPane (null, 0, 0) def t2484: Unit = { - scala.concurrent.future {jScrollPane.synchronized { + scala.concurrent.Future {jScrollPane.synchronized { def someFunction () = {} //scala.concurrent.ops.spawn {someFunction ()} jScrollPane.addComponentListener (new java.awt.event.ComponentAdapter {override def componentShown (e: java.awt.event.ComponentEvent) = { |