Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Look for words file in classpath.

  • Loading branch information...
commit 05bc3e83db34b4ce7024d8fc4d0f5e45d53c3a46 1 parent 7321776
Ismael Juma authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/main/scala/jsr166/scala/MapMicroBenchmark.scala
3  src/main/scala/jsr166/scala/MapMicroBenchmark.scala
View
@@ -276,7 +276,8 @@ object MapMicroBenchmark {
// Read in String keys from file if possible
def initStringKeys(keys: Array[AnyRef], n: Int) {
try {
- val in = new java.io.BufferedReader(new java.io.FileReader(wordFile))
+ val in = new java.io.BufferedReader(new java.io.InputStreamReader(
+ currentThread.getContextClassLoader.getResourceAsStream(wordFile)))
var line: String = null
var k = 0
while(k < n && {line = in.readLine; line != null}) {
Please sign in to comment.
Something went wrong with that request. Please try again.