summaryrefslogtreecommitdiff
path: root/test/files/presentation
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/presentation')
-rw-r--r--test/files/presentation/akka/src/com/eaio/uuid/UUIDGen.java10
-rw-r--r--test/files/presentation/akka/src/pi.scala2
-rw-r--r--test/files/presentation/callcc-interpreter/src/CallccInterpreter.scala4
-rw-r--r--test/files/presentation/ide-bug-1000475/src/Foo.scala2
-rw-r--r--test/files/presentation/ide-bug-1000531/src/CrashOnLoad.scala4
-rw-r--r--test/files/presentation/implicit-member/src/ImplicitMember.scala4
-rw-r--r--test/files/presentation/ping-pong/src/PingPong.scala14
-rw-r--r--test/files/presentation/random/src/Random.scala16
-rw-r--r--test/files/presentation/timeofday/src/timeofday.scala10
9 files changed, 33 insertions, 33 deletions
diff --git a/test/files/presentation/akka/src/com/eaio/uuid/UUIDGen.java b/test/files/presentation/akka/src/com/eaio/uuid/UUIDGen.java
index a42ed666bc..7b63f65447 100644
--- a/test/files/presentation/akka/src/com/eaio/uuid/UUIDGen.java
+++ b/test/files/presentation/akka/src/com/eaio/uuid/UUIDGen.java
@@ -73,7 +73,7 @@ public final class UUIDGen {
* The last time value. Used to remove duplicate UUIDs.
*/
private static long lastTime = Long.MIN_VALUE;
-
+
/**
* The cached MAC address.
*/
@@ -232,11 +232,11 @@ public final class UUIDGen {
public static long newTime() {
return createTime(System.currentTimeMillis());
}
-
+
/**
* Creates a new time field from the given timestamp. Note that even identical
* values of <code>currentTimeMillis</code> will produce different time fields.
- *
+ *
* @param currentTimeMillis the timestamp
* @return a new time value
* @see UUID#getTime()
@@ -271,10 +271,10 @@ public final class UUIDGen {
return time;
}
-
+
/**
* Returns the MAC address. Not guaranteed to return anything.
- *
+ *
* @return the MAC address, may be <code>null</code>
*/
public static String getMACAddress() {
diff --git a/test/files/presentation/akka/src/pi.scala b/test/files/presentation/akka/src/pi.scala
index 24eba5a013..b4c644052c 100644
--- a/test/files/presentation/akka/src/pi.scala
+++ b/test/files/presentation/akka/src/pi.scala
@@ -50,7 +50,7 @@ object Pi extends App {
// create the workers
val workers = Vector.fill(nrOfWorkers)(actorOf[Worker]./*!*/start())
-
+
// wrap them with a load-balancing router
val router = Routing./*!*/loadBalancerActor(CyclicIterator(workers))./*!*/start()
diff --git a/test/files/presentation/callcc-interpreter/src/CallccInterpreter.scala b/test/files/presentation/callcc-interpreter/src/CallccInterpreter.scala
index ce3b996b96..0e96dfaa05 100644
--- a/test/files/presentation/callcc-interpreter/src/CallccInterpreter.scala
+++ b/test/files/presentation/callcc-interpreter/src/CallccInterpreter.scala
@@ -2,8 +2,8 @@ object callccInterpreter {
type Answer = Value
- /**
- * A continuation monad.
+ /**
+ * A continuation monad.
*/
case class M[A](in: (A => Answer) => Answer) {
def bind[B](k: A => M[B]) = M[B](c => in (a => k(a) in c))
diff --git a/test/files/presentation/ide-bug-1000475/src/Foo.scala b/test/files/presentation/ide-bug-1000475/src/Foo.scala
index 5dd6b7d00d..b963bb7a88 100644
--- a/test/files/presentation/ide-bug-1000475/src/Foo.scala
+++ b/test/files/presentation/ide-bug-1000475/src/Foo.scala
@@ -1,7 +1,7 @@
class Foo {
val v = new Object
v.toS/*!*/
-
+
val m = Map(1 -> new Object)
m(1).toS/*!*/
m(1)./*!*/
diff --git a/test/files/presentation/ide-bug-1000531/src/CrashOnLoad.scala b/test/files/presentation/ide-bug-1000531/src/CrashOnLoad.scala
index 878bbfa19e..21d39c8923 100644
--- a/test/files/presentation/ide-bug-1000531/src/CrashOnLoad.scala
+++ b/test/files/presentation/ide-bug-1000531/src/CrashOnLoad.scala
@@ -1,7 +1,7 @@
/** When this files is opened within the IDE, a typing error is reported. */
class A[B] extends java.lang.Iterable[B] {
import scala.collection.JavaConversions._
- def iterator = Iterator.empty
-
+ def iterator = Iterator.empty
+
iterator. /*!*/
} \ No newline at end of file
diff --git a/test/files/presentation/implicit-member/src/ImplicitMember.scala b/test/files/presentation/implicit-member/src/ImplicitMember.scala
index a547b65a8e..06732f6dc6 100644
--- a/test/files/presentation/implicit-member/src/ImplicitMember.scala
+++ b/test/files/presentation/implicit-member/src/ImplicitMember.scala
@@ -1,8 +1,8 @@
object Implicit {
final class AppliedImplicit[A](val x: A)
-
+
implicit def AppliedImplicit[A](x: A): AppliedImplicit[A] = new AppliedImplicit(x)
-
+
this./*!*/x
} \ No newline at end of file
diff --git a/test/files/presentation/ping-pong/src/PingPong.scala b/test/files/presentation/ping-pong/src/PingPong.scala
index 94f52c4658..08bb4e3f2d 100644
--- a/test/files/presentation/ping-pong/src/PingPong.scala
+++ b/test/files/presentation/ping-pong/src/PingPong.scala
@@ -2,21 +2,21 @@
class Ping {
val pong = new Pong(this)
-
+
def name = "ping"
- def loop/*?*/ { poke() }
-
+ def loop/*?*/ { poke() }
+
def poke/*?*/ { pong./*!*/poke() }
-
- override def toString = name
+
+ override def toString = name
}
class Pong(ping: Ping) {
val name/*?*/ = "pong"
-
+
def poke() { ping./*!*/poke() }
-
+
override def toString = name
} \ No newline at end of file
diff --git a/test/files/presentation/random/src/Random.scala b/test/files/presentation/random/src/Random.scala
index af76a28f47..4fff783fa4 100644
--- a/test/files/presentation/random/src/Random.scala
+++ b/test/files/presentation/random/src/Random.scala
@@ -4,16 +4,16 @@ import java.io._
import java.net.{InetAddress,ServerSocket,Socket,SocketException}
import java.util.Random
-/**
- * Simple client/server application using Java sockets.
- *
- * The server simply generates random integer values and
- * the clients provide a filter function to the server
- * to get only values they interested in (eg. even or
- * odd values, and so on).
+/**
+ * Simple client/server application using Java sockets.
+ *
+ * The server simply generates random integer values and
+ * the clients provide a filter function to the server
+ * to get only values they interested in (eg. even or
+ * odd values, and so on).
*/
object randomclient {
-
+
def main(args: Array[String]) {
val filter/*?*/ = try {
Integer.parseInt(args(0)/*?*/) match {
diff --git a/test/files/presentation/timeofday/src/timeofday.scala b/test/files/presentation/timeofday/src/timeofday.scala
index b0d422a99e..d6355097f1 100644
--- a/test/files/presentation/timeofday/src/timeofday.scala
+++ b/test/files/presentation/timeofday/src/timeofday.scala
@@ -1,16 +1,16 @@
object timeofday {
class DateError extends Exception
- /** Simulating properties in Scala
- * (example 4.2.1 in ScalaReference.pdf)
+ /** Simulating properties in Scala
+ * (example 4.2.1 in ScalaReference.pdf)
*/
class TimeOfDayVar {
private var h, m, s: Int = 0
def hours = h
- /** A method 'ident_=' is a setter for 'ident'. 'code.ident = ...' will
- * be translated to a call to 'ident_='
+ /** A method 'ident_=' is a setter for 'ident'. 'code.ident = ...' will
+ * be translated to a call to 'ident_='
*/
def hours_= (h: Int) =
if (0 <= h && h < 24) this.h = h
@@ -26,7 +26,7 @@ object timeofday {
if (0 <= s && s < 60) this./*!*/s = s
else throw new DateError()
}
-
+
def main(args: Array[String]) {
val d = new TimeOfDayVar
d.hours = 8; d./*!*/minutes = 30; d.seconds = 0