Commit 8d735de
Drop EmptyHolder, make factories final, simplify test-helper instanceof
Post-fold tidy, all TagMap-scoped:
- Remove EmptyHolder: with one class there is no interface<->impl class-init
cycle to break, and the private constructor reads no statics, so EMPTY is a
direct `new TagMap(new Object[1], 0)` initializer.
- Static factories (create/fromMap/ledger/...) are now `public static final`
(not expressible on the old interface).
- assertSize/assertNotEmpty/assertEmpty/checkIntegrity test helpers dropped
their now-always-true `instanceof TagMap` guard + redundant cast.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 1e5db48 commit 8d735de
2 files changed
Lines changed: 15 additions & 31 deletions
File tree
- internal-api/src
- main/java/datadog/trace/api
- test/java/datadog/trace/api
Lines changed: 11 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
50 | 54 | | |
51 | 55 | | |
52 | | - | |
| 56 | + | |
53 | 57 | | |
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
59 | | - | |
| 63 | + | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
67 | | - | |
| 71 | + | |
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
71 | | - | |
| 75 | + | |
72 | 76 | | |
73 | 77 | | |
74 | 78 | | |
75 | 79 | | |
76 | | - | |
| 80 | + | |
77 | 81 | | |
78 | 82 | | |
79 | 83 | | |
80 | 84 | | |
81 | | - | |
| 85 | + | |
82 | 86 | | |
83 | 87 | | |
84 | 88 | | |
| |||
987 | 991 | | |
988 | 992 | | |
989 | 993 | | |
990 | | - | |
991 | | - | |
992 | | - | |
993 | | - | |
994 | | - | |
995 | | - | |
996 | | - | |
997 | | - | |
998 | | - | |
999 | | - | |
1000 | | - | |
1001 | 994 | | |
1002 | 995 | | |
1003 | 996 | | |
| |||
Lines changed: 4 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1064 | 1064 | | |
1065 | 1065 | | |
1066 | 1066 | | |
1067 | | - | |
1068 | | - | |
1069 | | - | |
| 1067 | + | |
1070 | 1068 | | |
1071 | 1069 | | |
1072 | 1070 | | |
| |||
1094 | 1092 | | |
1095 | 1093 | | |
1096 | 1094 | | |
1097 | | - | |
1098 | | - | |
1099 | | - | |
| 1095 | + | |
1100 | 1096 | | |
1101 | 1097 | | |
1102 | 1098 | | |
1103 | 1099 | | |
1104 | | - | |
1105 | | - | |
1106 | | - | |
| 1100 | + | |
1107 | 1101 | | |
1108 | 1102 | | |
1109 | 1103 | | |
| |||
1128 | 1122 | | |
1129 | 1123 | | |
1130 | 1124 | | |
1131 | | - | |
1132 | | - | |
1133 | | - | |
1134 | | - | |
| 1125 | + | |
1135 | 1126 | | |
1136 | 1127 | | |
0 commit comments