@@ -17,8 +17,8 @@ class ScoverageHtmlWriter(sourceDirectory: File, outputDir: File) {
17
17
18
18
val index = IOUtils .readStreamAsString(getClass.getResourceAsStream(" /scoverage/index.html" ))
19
19
IOUtils .writeToFile(indexFile, index)
20
- IOUtils .writeToFile(packageFile, packageList(coverage).toString)
21
- IOUtils .writeToFile(overviewFile, overview(coverage).toString)
20
+ IOUtils .writeToFile(packageFile, packageList(coverage).toString() )
21
+ IOUtils .writeToFile(overviewFile, overview(coverage).toString() )
22
22
23
23
coverage.packages.foreach(writePackage)
24
24
}
@@ -31,15 +31,15 @@ class ScoverageHtmlWriter(sourceDirectory: File, outputDir: File) {
31
31
// to com.example.html
32
32
val file = new File (outputDir, packageOverviewRelativePath(pkg))
33
33
file.getParentFile.mkdirs()
34
- IOUtils .writeToFile(file, packageOverview(pkg).toString)
34
+ IOUtils .writeToFile(file, packageOverview(pkg).toString() )
35
35
pkg.files.foreach(writeFile)
36
36
}
37
37
38
38
private def writeFile (mfile : MeasuredFile ): Unit = {
39
39
// each highlighted file is written out using the same structure as the original file.
40
40
val file = new File (outputDir, relativeSource(mfile.source) + " .html" )
41
41
file.getParentFile.mkdirs()
42
- IOUtils .writeToFile(file, filePage(mfile).toString)
42
+ IOUtils .writeToFile(file, filePage(mfile).toString() )
43
43
}
44
44
45
45
private def packageOverviewRelativePath (pkg : MeasuredPackage ) = pkg.name.replace(" <empty>" , " (empty)" ) + " .html"
0 commit comments