Commit 92cf561
committed
Fix CodeQL warnings in UnsynchronizedBufferedInputStream: Implicit
narrowing conversion in compound assignment.
- (int count - int pos) here is always an int so amount is also in the
int range if the above test is true.
- We can safely cast and avoid static analysis warnings: "Implicit
narrowing conversion in compound assignment"
- https://github.com/apache/commons-io/security/code-scanning/135
- https://github.com/apache/commons-io/security/code-scanning/881 parent a9c5067 commit 92cf561
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
97 | 100 | | |
98 | 101 | | |
99 | 102 | | |
| |||
0 commit comments