We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70cecaa commit b80c3b7Copy full SHA for b80c3b7
tests/idempotency/IdempotencyCheck.scala
@@ -25,7 +25,7 @@ object IdempotencyCheck {
25
val bytecodeFiles = {
26
def bytecodeFiles(paths: JStream[JPath], dir: String): List[(String, JPath)] = {
27
def isBytecode(file: String) = file.endsWith(".class") || file.endsWith(".tasty")
28
- def tupleWithName(f: JPath) = (f.toString.substring(dir.length + 1, f.toString.length - 6), f)
+ def tupleWithName(f: JPath) = (f.toString.substring(dir.length, f.toString.length - 6), f)
29
paths.iterator.asScala.filter(path => isBytecode(path.toString)).map(tupleWithName).toList
30
}
31
bytecodeFiles(JFiles.walk(dir1Path), dir1String) ++ bytecodeFiles(JFiles.walk(dir2Path), dir2String)
0 commit comments