Commit 8e8fdc4
authored
Decouple XContentBuilder from BytesReference (#28972)
* Decouple XContentBuilder from BytesReference
This commit removes all mentions of `BytesReference` from `XContentBuilder`.
This is needed so that we can completely decouple the XContent code and move it
into its own dependency.
While this change appears large, it is due to two main changes, moving
`.bytes()` and `.string()` out of XContentBuilder itself into static methods
`BytesReference.bytes` and `Strings.toString` respectively. The rest of the
change is code reacting to these changes (the majority of it in tests).
Relates to #285041 parent ef6fc1e commit 8e8fdc4
File tree
301 files changed
+3563
-3369
lines changed- client/rest-high-level/src
- main/java/org/elasticsearch/client
- test/java/org/elasticsearch/client
- documentation
- modules
- ingest-common/src
- main/java/org/elasticsearch/ingest/common
- test/java/org/elasticsearch/ingest/common
- lang-mustache/src
- main/java/org/elasticsearch/script/mustache
- test/java/org/elasticsearch/script/mustache
- mapper-extras/src/test/java/org/elasticsearch/index/mapper
- parent-join/src/test/java/org/elasticsearch/join
- mapper
- query
- percolator/src
- main/java/org/elasticsearch/percolator
- test/java/org/elasticsearch/percolator
- rank-eval/src/test/java/org/elasticsearch/index/rankeval
- reindex/src
- main/java/org/elasticsearch/index/reindex
- remote
- test/java/org/elasticsearch/index/reindex
- transport-netty4/src/test/java/org/elasticsearch/rest
- plugins
- analysis-icu/src/test/java/org/elasticsearch/index/mapper
- mapper-murmur3/src/test/java/org/elasticsearch/index/mapper/murmur3
- mapper-size/src/test/java/org/elasticsearch/index/mapper/size
- repository-gcs/src/test/java/org/elasticsearch/repositories/gcs
- qa
- full-cluster-restart/src/test/java/org/elasticsearch/upgrades
- mixed-cluster/src/test/java/org/elasticsearch/backwards
- query-builder-bwc/src/test/java/org/elasticsearch/bwc
- smoke-test-http/src/test/java/org/elasticsearch/http
- wildfly/src/test/java/org/elasticsearch/wildfly
- server/src
- main/java/org/elasticsearch
- action
- admin
- cluster
- node
- info
- stats
- usage
- repositories/put
- settings
- snapshots
- create
- restore
- stats
- indices
- alias
- analyze
- create
- mapping
- get
- put
- settings/put
- stats
- template/put
- index
- search
- termvectors
- update
- cluster/metadata
- common
- bytes
- document
- settings
- xcontent
- index
- get
- mapper
- query
- functionscore
- indices/recovery
- ingest
- rest
- script
- search
- fetch/subphase
- searchafter
- suggest
- completion
- context
- phrase
- tasks
- test/java/org/elasticsearch
- action
- admin
- cluster
- allocation
- node/tasks
- reroute
- settings
- indices
- alias
- create
- mapping/put
- rollover
- shards
- template/put
- bulk
- ingest
- main
- search
- support
- replication
- update
- cluster
- metadata
- routing
- common
- geo
- settings
- xcontent
- builder
- cbor
- support
- filtering
- discovery/zen
- document
- gateway
- get
- index
- analysis
- fielddata
- mapper
- query
- functionscore
- reindex
- search/geo
- shard
- similarity
- snapshots/blobstore
- translog
- indices
- mapping
- memory/breaker
- state
- ingest
- mget
- nodesinfo
- repositories
- rest
- action
- script
- search
- aggregations
- bucket
- histogram
- significant
- metrics
- basic
- builder
- fetch/subphase
- highlight
- fields
- geo
- internal
- morelikethis
- profile
- query
- query
- scroll
- searchafter
- slice
- sort
- suggest
- completion
- snapshots
- tasks
- threadpool
- transport
- update
- test/framework/src
- main/java/org/elasticsearch
- index/mapper
- search
- test
- rest
- yaml
- test/java/org/elasticsearch/test
- hamcrest
- rest/yaml
- test
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
301 files changed
+3563
-3369
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
331 | | - | |
| 331 | + | |
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
346 | | - | |
| 346 | + | |
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
617 | 617 | | |
618 | 618 | | |
619 | 619 | | |
620 | | - | |
| 620 | + | |
| 621 | + | |
621 | 622 | | |
622 | 623 | | |
623 | 624 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
272 | 273 | | |
273 | 274 | | |
274 | 275 | | |
275 | | - | |
| 276 | + | |
276 | 277 | | |
277 | 278 | | |
278 | 279 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
478 | 479 | | |
479 | 480 | | |
480 | 481 | | |
481 | | - | |
| 482 | + | |
482 | 483 | | |
483 | 484 | | |
484 | 485 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
| 269 | + | |
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
| 275 | + | |
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
78 | | - | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
92 | | - | |
| 93 | + | |
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | | - | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
66 | | - | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | | - | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
215 | 216 | | |
216 | 217 | | |
217 | 218 | | |
218 | | - | |
| 219 | + | |
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
| |||
0 commit comments