Commit bbcdbab
authored
ZOOKEEPER-842: Generate jute method `copyFrom` to decouple `ZooKeeper` from `DataTree`
Currently, `ZooKeeper` uses `DataTree::copyStat` to copy `Stat` from one
to another. This couples client side `ZooKeeper` to server side
`DataTree`.
By using generated `copyFrom`, we decouple `ZooKeeper` from server side
codes.
This is a small step towards ZOOKEEPER-233.
Refs: ZOOKEEPER-233, ZOOKEEPER-835, ZOOKEEPER-1275 and ZOOKEEPER-842.
Reviewers: tisonkun
Author: kezhuw
Closes #2305 from kezhuw/ZOOKEEPER-842-drop-client-dependency-on-DataTree
1 parent d4f555f commit bbcdbab
File tree
5 files changed
+18
-36
lines changed- zookeeper-jute/src/main/java/org/apache/jute/compiler
- zookeeper-server/src/main/java/org/apache/zookeeper
- admin
- server
5 files changed
+18
-36
lines changedLines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
491 | 491 | | |
492 | 492 | | |
493 | 493 | | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
494 | 504 | | |
495 | 505 | | |
496 | 506 | | |
| |||
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | 89 | | |
91 | 90 | | |
92 | 91 | | |
| |||
1539 | 1538 | | |
1540 | 1539 | | |
1541 | 1540 | | |
1542 | | - | |
| 1541 | + | |
1543 | 1542 | | |
1544 | 1543 | | |
1545 | 1544 | | |
| |||
2056 | 2055 | | |
2057 | 2056 | | |
2058 | 2057 | | |
2059 | | - | |
| 2058 | + | |
2060 | 2059 | | |
2061 | 2060 | | |
2062 | 2061 | | |
| |||
2157 | 2156 | | |
2158 | 2157 | | |
2159 | 2158 | | |
2160 | | - | |
| 2159 | + | |
2161 | 2160 | | |
2162 | 2161 | | |
2163 | 2162 | | |
| |||
2319 | 2318 | | |
2320 | 2319 | | |
2321 | 2320 | | |
2322 | | - | |
| 2321 | + | |
2323 | 2322 | | |
2324 | 2323 | | |
2325 | 2324 | | |
| |||
2563 | 2562 | | |
2564 | 2563 | | |
2565 | 2564 | | |
2566 | | - | |
| 2565 | + | |
2567 | 2566 | | |
2568 | 2567 | | |
2569 | 2568 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
| |||
252 | 251 | | |
253 | 252 | | |
254 | 253 | | |
255 | | - | |
| 254 | + | |
256 | 255 | | |
257 | 256 | | |
258 | 257 | | |
| |||
Lines changed: 1 addition & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | 345 | | |
372 | 346 | | |
373 | 347 | | |
| |||
1305 | 1279 | | |
1306 | 1280 | | |
1307 | 1281 | | |
1308 | | - | |
| 1282 | + | |
1309 | 1283 | | |
1310 | 1284 | | |
1311 | 1285 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1064 | 1064 | | |
1065 | 1065 | | |
1066 | 1066 | | |
1067 | | - | |
| 1067 | + | |
1068 | 1068 | | |
1069 | 1069 | | |
1070 | 1070 | | |
| |||
0 commit comments