Skip to content

Commit 6889321

Browse files
committed
Fix spotbugs warning.
1 parent 4b47e1c commit 6889321

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib-extra/src/main/java/com/diffplug/spotless/extra/GitWorkarounds.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232

3333
import com.diffplug.common.base.Errors;
3434

35+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
36+
3537
/**
3638
* Utility methods for Git workarounds.
3739
*/
@@ -172,6 +174,7 @@ private static IOException emptyFile(File commonDir) {
172174
return new IOException("Empty 'commondir' file: " + commonDir.getAbsolutePath());
173175
}
174176

177+
@SuppressFBWarnings(value = "BC_UNCONFIRMED_CAST_OF_RETURN_VALUE")
175178
@Override
176179
public FileRepositoryBuilder readEnvironment(SystemReader sr) {
177180
super.readEnvironment(sr);

0 commit comments

Comments
 (0)