Skip to content

Commit

Permalink
compilation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
trespasserw committed Oct 9, 2015
1 parent cf2c84b commit 9496e48
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -115,4 +115,8 @@ abstract class OsgiBuildTestCase : JpsBuildTestCase() {
assertEquals(expected, actual)
}
}

private fun JarFile.use(block: (JarFile) -> Unit) {
try { block(this) } finally { close() }
}
}

0 comments on commit 9496e48

Please sign in to comment.