Skip to content

Commit

Permalink
Move from paths.get to path.of
Browse files Browse the repository at this point in the history
  • Loading branch information
hazendaz committed Feb 2, 2025
1 parent aaee49d commit 06d22d2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import org.codehaus.plexus.resource.loader.FileResourceLoader
import java.nio.charset.Charset
import java.nio.charset.StandardCharsets
import java.nio.file.Files
import java.nio.file.Paths
import java.nio.file.Path
import java.util.stream.Collectors

import javax.inject.Inject
Expand Down Expand Up @@ -710,7 +710,7 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
}

XDocsReporter xDocsReporter = new XDocsReporter(getBundle(locale), log, threshold, effort, outputEncoding)
xDocsReporter.setOutputWriter(Files.newBufferedWriter(Paths.get("${xmlOutputDirectory}/spotbugs.xml"), Charset.forName(outputEncoding)))
xDocsReporter.setOutputWriter(Files.newBufferedWriter(Path.of("${xmlOutputDirectory}/spotbugs.xml"), Charset.forName(outputEncoding)))
xDocsReporter.setSpotbugsResults(new XmlSlurper().parse(outputSpotbugsFile))
xDocsReporter.setCompileSourceRoots(session.getCurrentProject().compileSourceRoots)
xDocsReporter.setTestSourceRoots(session.getCurrentProject().testCompileSourceRoots)
Expand Down

0 comments on commit 06d22d2

Please sign in to comment.