fixing the mvn build; whoops :)

This commit is contained in:
James Strachan
2012-07-19 15:51:19 +01:00
parent 1f4783efb3
commit d8d6dc1626
2 changed files with 10 additions and 10 deletions
-10
View File
@@ -4,7 +4,6 @@ import java.util.ArrayList
import java.util.Collection
import java.util.HashSet
import java.util.LinkedList
import java.util.concurrent.Callable
/**
Helper to make jet.Iterator usable in for
@@ -79,12 +78,3 @@ public inline fun runnable(action: ()-> Unit): Runnable {
}
}
/**
* A helper method for creating a [[Callable]] from a function
*/
public inline fun <T> callable(action: ()-> T): Callable<T> {
return object: Callable<T> {
public override fun call() = action()
}
}
@@ -10,6 +10,7 @@ import java.util.SortedSet
import java.util.Comparator
import java.io.PrintWriter
import java.io.PrintStream
import java.util.concurrent.Callable
/**
* Add iterated elements to a [[LinkedHashSet]] to preserve insertion order
@@ -44,3 +45,12 @@ public inline fun Throwable.printStackTrace(stream: PrintStream): Unit {
jlt.printStackTrace(stream)
}
/**
* A helper method for creating a [[Callable]] from a function
*/
public inline fun <T> callable(action: ()-> T): Callable<T> {
return object: Callable<T> {
public override fun call() = action()
}
}