Skip to content

Create a tmp directory when such doesn't exist. In some cases the tmp…

ci.jenkins.io / SpotBugs failed Nov 21, 2024 in 0s

1 new issue

Total New Outstanding Fixed Trend
1 1 0 0 👎

Reference build: Core » jenkins » master #6765

Details

Severity distribution of new issues

Error Warning High Warning Normal Warning Low
0 0 1 0

Annotations

Check warning on line 444 in core/src/main/java/hudson/Util.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / SpotBugs

RV_RETURN_VALUE_IGNORED_BAD_PRACTICE

NORMAL:
Exceptional return value of java.io.File.mkdirs() ignored in hudson.Util.createTempDir()
Raw output
<p> This method returns a value that is not checked. The return value should be checked since it can indicate an unusual or unexpected function execution. For example, the <code>File.delete()</code> method returns false if the file could not be successfully deleted (rather than throwing an Exception). If you don't check the result, you won't notice if the method invocation signals unexpected behavior by returning an atypical return value. </p>