mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-13 20:12:14 +00:00
Fix RV_RETURN_VALUE_IGNORED_BAD_PRACTICE SpotBugs violations (#6025)
This commit is contained in:
1 parent
b4a622922c
commit
165d559469
32 files changed
+225
-175
No files matched your search
@@ -246,12 +246,12 @@ public final class XmlFile {
|
||||
return file.exists();
|
||||
}
|
||||
|
||||
public void delete() {
|
||||
file.delete();
|
||||
public void delete() throws IOException {
|
||||
Files.deleteIfExists(Util.fileToPath(file));
|
||||
}
|
||||
|
||||
public void mkdirs() {
|
||||
file.getParentFile().mkdirs();
|
||||
public void mkdirs() throws IOException {
|
||||
Files.createDirectories(Util.fileToPath(file.getParentFile()));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user