Commit c194b3b
Fix throwIfFalseEOF if skip method was called before read (googleapis#447)
* Fix throwIfFalseEOF when using skip method
throwIfFalseEOF method don't take into account bytes read/skipped in skip method and throws IOException when legit EOF was reached.
* Fix variables naming
* Fix variable type
* Remove '-1' check - `skip` method never returns it
* Add test1 parent 2777514 commit c194b3b
File tree
2 files changed
+21
-0
lines changed- google-http-client/src
- main/java/com/google/api/client/http/javanet
- test/java/com/google/api/client/http/javanet
2 files changed
+21
-0
lines changedLines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
189 | 196 | | |
190 | 197 | | |
191 | 198 | | |
| |||
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
97 | 111 | | |
0 commit comments