Skip to content

Commit b763772

Browse files
committed
[JENKINS-56466] SpotBugs cannot tell that checkId is only called with the FileLogStorage monitor already held
1 parent e929275 commit b763772

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/jenkinsci/plugins/workflow/log/FileLogStorage.java

+2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ public static synchronized LogStorage forFile(File log) {
7777
private final File index;
7878
@SuppressFBWarnings(value = "IS2_INCONSISTENT_SYNC", justification = "actually it is always accessed within the monitor")
7979
private FileOutputStream os;
80+
@SuppressFBWarnings(value = "IS2_INCONSISTENT_SYNC", justification = "actually it is always accessed within the monitor")
8081
private long osStartPosition;
82+
@SuppressFBWarnings(value = "IS2_INCONSISTENT_SYNC", justification = "actually it is always accessed within the monitor")
8183
private CountingOutputStream cos;
8284
@SuppressFBWarnings(value = "IS2_INCONSISTENT_SYNC", justification = "we only care about synchronizing writes")
8385
private OutputStream bos;

0 commit comments

Comments
 (0)