Commit a96939c
Address code review feedback
- Use static imports for constants in test file
- Consolidate SUCCESS/NEED_MORE_BYTES/COMPLETED case handling in policy
- Improve segment size validation against remaining message bytes
- Simplify condition using getAvailableBytes() helper
Co-authored-by: gunjansingh-msft <[email protected]>1 parent 67b25ec commit a96939c
File tree
3 files changed
+13
-16
lines changed- sdk/storage/azure-storage-common/src
- main/java/com/azure/storage/common
- implementation/structuredmessage
- policy
- test/java/com/azure/storage/common/implementation/structuredmessage
3 files changed
+13
-16
lines changedLines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
418 | | - | |
419 | | - | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
420 | 422 | | |
421 | 423 | | |
422 | 424 | | |
| |||
626 | 628 | | |
627 | 629 | | |
628 | 630 | | |
629 | | - | |
630 | | - | |
| 631 | + | |
| 632 | + | |
631 | 633 | | |
632 | 634 | | |
633 | 635 | | |
| |||
Lines changed: 3 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | 110 | | |
121 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
122 | 114 | | |
123 | 115 | | |
124 | 116 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
175 | 178 | | |
176 | 179 | | |
177 | 180 | | |
178 | | - | |
| 181 | + | |
179 | 182 | | |
180 | 183 | | |
181 | 184 | | |
| |||
0 commit comments