Skip to content

Commit

Permalink
Merge pull request #699 from hazendaz/master
Browse files Browse the repository at this point in the history
[cleanup] Use files create temp file instead of plexus
  • Loading branch information
hazendaz authored Dec 16, 2023
2 parents ae098ce + c6ee88b commit 5cfa4ad
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
*/
package org.codehaus.mojo.spotbugs

import java.nio.file.Files
import org.apache.maven.plugin.logging.Log
import org.codehaus.plexus.resource.loader.FileResourceCreationException
import org.codehaus.plexus.resource.loader.FileResourceLoader
import org.codehaus.plexus.resource.ResourceManager
import org.codehaus.plexus.util.FileUtils

final class ResourceHelper {

Expand Down Expand Up @@ -96,7 +96,7 @@ final class ResourceHelper {
File outputResourceFile

if (outputPath == null) {
outputResourceFile = FileUtils.createTempFile("plexus-resources", "tmp", null)
outputResourceFile = Files.createTempFile("plexus-resources", "tmp")
} else {
if (outputDirectory != null) {
outputResourceFile = new File(outputDirectory, outputPath)
Expand Down

0 comments on commit 5cfa4ad

Please sign in to comment.