Skip to content

Commit b7f0889

Browse files
committed
fix code warnings
1 parent 3c97320 commit b7f0889

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scalac-scoverage-plugin/src/main/scala/scoverage/report/ScoverageHtmlWriter.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ class ScoverageHtmlWriter(sourceDirectory: File, outputDir: File) {
1717

1818
val index = IOUtils.readStreamAsString(getClass.getResourceAsStream("/scoverage/index.html"))
1919
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())
2222

2323
coverage.packages.foreach(writePackage)
2424
}
@@ -31,15 +31,15 @@ class ScoverageHtmlWriter(sourceDirectory: File, outputDir: File) {
3131
// to com.example.html
3232
val file = new File(outputDir, packageOverviewRelativePath(pkg))
3333
file.getParentFile.mkdirs()
34-
IOUtils.writeToFile(file, packageOverview(pkg).toString)
34+
IOUtils.writeToFile(file, packageOverview(pkg).toString())
3535
pkg.files.foreach(writeFile)
3636
}
3737

3838
private def writeFile(mfile: MeasuredFile): Unit = {
3939
// each highlighted file is written out using the same structure as the original file.
4040
val file = new File(outputDir, relativeSource(mfile.source) + ".html")
4141
file.getParentFile.mkdirs()
42-
IOUtils.writeToFile(file, filePage(mfile).toString)
42+
IOUtils.writeToFile(file, filePage(mfile).toString())
4343
}
4444

4545
private def packageOverviewRelativePath(pkg: MeasuredPackage) = pkg.name.replace("<empty>", "(empty)") + ".html"

0 commit comments

Comments
 (0)