Commit f0128b3
Address review feedback: extract helper, fix formatting, clear removed vector
- Extract transferVector() helper to reduce duplication in addVector/removeVector
- Fix Spotless formatting violation in TestVectorSchemaRoot.java
- Clear the removed vector's buffers in removeVector() so the original root
is consistently empty after the operation, matching the documented behaviour
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent c706c5b commit f0128b3
2 files changed
Lines changed: 12 additions & 16 deletions
File tree
- vector/src
- main/java/org/apache/arrow/vector
- test/java/org/apache/arrow/vector
Lines changed: 11 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
211 | | - | |
212 | | - | |
| 210 | + | |
213 | 211 | | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
| 212 | + | |
218 | 213 | | |
219 | 214 | | |
220 | | - | |
221 | | - | |
222 | | - | |
| 215 | + | |
223 | 216 | | |
224 | 217 | | |
225 | 218 | | |
| |||
240 | 233 | | |
241 | 234 | | |
242 | 235 | | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
| 236 | + | |
247 | 237 | | |
248 | 238 | | |
| 239 | + | |
249 | 240 | | |
250 | 241 | | |
251 | 242 | | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
252 | 249 | | |
253 | 250 | | |
254 | 251 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
366 | | - | |
367 | | - | |
| 366 | + | |
368 | 367 | | |
369 | 368 | | |
370 | 369 | | |
| |||
0 commit comments