Skip to content

Commit

Permalink
Spotbugs fixup.
Browse files Browse the repository at this point in the history
  • Loading branch information
nedtwigg committed Jun 4, 2024
1 parent 6858c18 commit abf887d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/src/main/java/com/diffplug/spotless/npm/ShadowCopy.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@

import com.diffplug.spotless.ThrowingEx;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

class ShadowCopy {

private static final Logger logger = LoggerFactory.getLogger(ShadowCopy.class);
Expand Down Expand Up @@ -69,6 +71,7 @@ public void addEntry(String key, File orig) {
}
}

@SuppressFBWarnings("NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE")
private void storeEntry(String key, File orig, File target) throws IOException {
// Create a temp directory in the same directory as target
Files.createDirectories(target.toPath().getParent());
Expand Down

0 comments on commit abf887d

Please sign in to comment.