Commit 3f14d07
committed
Fix SpotBugs AT_STALE_THREAD_WRITE_OF_PRIMITIVE
- Fix SpotBugs [ERROR] Medium: Shared primitive variable "atSlashCr" in
one thread may not yield the value of the most recent write from another
thread [org.apache.commons.io.input.WindowsLineEndingInputStream,
org.apache.commons.io.input.WindowsLineEndingInputStream] At
WindowsLineEndingInputStream.java:[line 77]Another occurrence at
WindowsLineEndingInputStream.java:[line 81]
AT_STALE_THREAD_WRITE_OF_PRIMITIVE.
- Fix SpotBugs [ERROR] Medium: Shared primitive variable "atSlashCr" in
one thread may not yield the value of the most recent write from another
thread [org.apache.commons.io.input.WindowsLineEndingInputStream] At
WindowsLineEndingInputStream.java:[line 112]
AT_STALE_THREAD_WRITE_OF_PRIMITIVE.
- Fix SpotBugs [ERROR] Medium: Shared primitive variable "atSlashLf" in
one thread may not yield the value of the most recent write from another
thread [org.apache.commons.io.input.WindowsLineEndingInputStream] At
WindowsLineEndingInputStream.java:[line 113]
AT_STALE_THREAD_WRITE_OF_PRIMITIVE.
- Tested locally using commons-parent 83 for the latest SpotBugs1 parent 5080fa3 commit 3f14d07
2 files changed
Lines changed: 4 additions & 1 deletion
File tree
- src
- changes
- main/java/org/apache/commons/io/input
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
0 commit comments