Commit 95e43c4
Refactor accessor fields: mixed instance-field + static-getter approach
Pattern A (private final instance fields) — 18 files:
CosmosAsyncClient, CosmosAsyncDatabase, CosmosAsyncScripts, CosmosAsyncUser,
ConnectionPolicy, RxDocumentClientImpl, BulkExecutor, TransactionalBulkExecutor,
HttpClientConfig, AggregateDocumentQueryExecutionContext,
DefaultDocumentQueryExecutionContext, DocumentQueryExecutionContextBase,
OrderByDocumentProducer, CosmosPagedFluxDefaultImpl, CosmosPagedFluxStaticListImpl
Pattern B (private static lazy getter methods) — 11 files:
CosmosAsyncContainer (11 methods), DiagnosticsProvider (3 methods),
ClientTelemetryMetrics (1 method), DocumentProducer, DocumentQueryExecutionContextFactory,
PipelinedDocumentQueryExecutionContext, PipelinedQueryExecutionContext,
HybridSearchDocumentQueryExecutionContext, NonStreamingOrderByDocumentQueryExecutionContext,
OrderByDocumentQueryExecutionContext, ParallelDocumentQueryExecutionContext
4 files originally listed as Pattern A were moved to Pattern B because their
accessors are only used in static inner classes (ItemToPageTransformer, etc.).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 66afd43 commit 95e43c4
26 files changed
Lines changed: 384 additions & 232 deletions
File tree
- sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos
- implementation
- batch
- clienttelemetry
- http
- query
- util
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
82 | 87 | | |
83 | 88 | | |
84 | 89 | | |
| |||
461 | 466 | | |
462 | 467 | | |
463 | 468 | | |
464 | | - | |
| 469 | + | |
465 | 470 | | |
466 | 471 | | |
467 | 472 | | |
| |||
470 | 475 | | |
471 | 476 | | |
472 | 477 | | |
473 | | - | |
| 478 | + | |
474 | 479 | | |
475 | 480 | | |
476 | 481 | | |
| |||
647 | 652 | | |
648 | 653 | | |
649 | 654 | | |
650 | | - | |
| 655 | + | |
651 | 656 | | |
652 | 657 | | |
653 | 658 | | |
654 | 659 | | |
655 | 660 | | |
656 | 661 | | |
657 | 662 | | |
658 | | - | |
| 663 | + | |
659 | 664 | | |
660 | 665 | | |
661 | 666 | | |
| |||
Lines changed: 101 additions & 57 deletions
Large diffs are not rendered by default.
Lines changed: 15 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
47 | 52 | | |
48 | 53 | | |
49 | 54 | | |
| |||
643 | 648 | | |
644 | 649 | | |
645 | 650 | | |
646 | | - | |
| 651 | + | |
647 | 652 | | |
648 | 653 | | |
649 | 654 | | |
650 | 655 | | |
651 | 656 | | |
652 | 657 | | |
653 | 658 | | |
654 | | - | |
| 659 | + | |
655 | 660 | | |
656 | 661 | | |
657 | 662 | | |
| |||
951 | 956 | | |
952 | 957 | | |
953 | 958 | | |
954 | | - | |
| 959 | + | |
955 | 960 | | |
956 | 961 | | |
957 | 962 | | |
958 | 963 | | |
959 | 964 | | |
960 | 965 | | |
961 | 966 | | |
962 | | - | |
| 967 | + | |
963 | 968 | | |
964 | 969 | | |
965 | 970 | | |
| |||
1014 | 1019 | | |
1015 | 1020 | | |
1016 | 1021 | | |
1017 | | - | |
| 1022 | + | |
1018 | 1023 | | |
1019 | 1024 | | |
1020 | 1025 | | |
1021 | 1026 | | |
1022 | 1027 | | |
1023 | 1028 | | |
1024 | 1029 | | |
1025 | | - | |
| 1030 | + | |
1026 | 1031 | | |
1027 | 1032 | | |
1028 | 1033 | | |
| |||
1115 | 1120 | | |
1116 | 1121 | | |
1117 | 1122 | | |
1118 | | - | |
| 1123 | + | |
1119 | 1124 | | |
1120 | 1125 | | |
1121 | 1126 | | |
| |||
1299 | 1304 | | |
1300 | 1305 | | |
1301 | 1306 | | |
1302 | | - | |
| 1307 | + | |
1303 | 1308 | | |
1304 | 1309 | | |
1305 | 1310 | | |
1306 | 1311 | | |
1307 | 1312 | | |
1308 | 1313 | | |
1309 | 1314 | | |
1310 | | - | |
| 1315 | + | |
1311 | 1316 | | |
1312 | 1317 | | |
1313 | 1318 | | |
| |||
1327 | 1332 | | |
1328 | 1333 | | |
1329 | 1334 | | |
1330 | | - | |
| 1335 | + | |
1331 | 1336 | | |
1332 | 1337 | | |
1333 | 1338 | | |
| |||
Lines changed: 17 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
| |||
124 | 129 | | |
125 | 130 | | |
126 | 131 | | |
127 | | - | |
| 132 | + | |
128 | 133 | | |
129 | 134 | | |
130 | 135 | | |
| |||
133 | 138 | | |
134 | 139 | | |
135 | 140 | | |
136 | | - | |
| 141 | + | |
137 | 142 | | |
138 | 143 | | |
139 | 144 | | |
| |||
257 | 262 | | |
258 | 263 | | |
259 | 264 | | |
260 | | - | |
| 265 | + | |
261 | 266 | | |
262 | 267 | | |
263 | 268 | | |
| |||
266 | 271 | | |
267 | 272 | | |
268 | 273 | | |
269 | | - | |
| 274 | + | |
270 | 275 | | |
271 | 276 | | |
272 | 277 | | |
| |||
389 | 394 | | |
390 | 395 | | |
391 | 396 | | |
392 | | - | |
| 397 | + | |
393 | 398 | | |
394 | 399 | | |
395 | 400 | | |
| |||
398 | 403 | | |
399 | 404 | | |
400 | 405 | | |
401 | | - | |
| 406 | + | |
402 | 407 | | |
403 | 408 | | |
404 | 409 | | |
| |||
472 | 477 | | |
473 | 478 | | |
474 | 479 | | |
475 | | - | |
| 480 | + | |
476 | 481 | | |
477 | 482 | | |
478 | 483 | | |
| |||
481 | 486 | | |
482 | 487 | | |
483 | 488 | | |
484 | | - | |
| 489 | + | |
485 | 490 | | |
486 | 491 | | |
487 | 492 | | |
| |||
503 | 508 | | |
504 | 509 | | |
505 | 510 | | |
506 | | - | |
| 511 | + | |
507 | 512 | | |
508 | 513 | | |
509 | 514 | | |
| |||
512 | 517 | | |
513 | 518 | | |
514 | 519 | | |
515 | | - | |
| 520 | + | |
516 | 521 | | |
517 | 522 | | |
518 | 523 | | |
| |||
541 | 546 | | |
542 | 547 | | |
543 | 548 | | |
544 | | - | |
| 549 | + | |
545 | 550 | | |
546 | 551 | | |
547 | 552 | | |
| |||
550 | 555 | | |
551 | 556 | | |
552 | 557 | | |
553 | | - | |
| 558 | + | |
554 | 559 | | |
555 | 560 | | |
556 | 561 | | |
| |||
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
| |||
162 | 167 | | |
163 | 168 | | |
164 | 169 | | |
165 | | - | |
| 170 | + | |
166 | 171 | | |
167 | 172 | | |
168 | 173 | | |
| |||
171 | 176 | | |
172 | 177 | | |
173 | 178 | | |
174 | | - | |
| 179 | + | |
175 | 180 | | |
176 | 181 | | |
177 | 182 | | |
| |||
218 | 223 | | |
219 | 224 | | |
220 | 225 | | |
221 | | - | |
| 226 | + | |
222 | 227 | | |
223 | 228 | | |
224 | 229 | | |
| |||
227 | 232 | | |
228 | 233 | | |
229 | 234 | | |
230 | | - | |
| 235 | + | |
231 | 236 | | |
232 | 237 | | |
233 | 238 | | |
| |||
0 commit comments