Commit 7771254
committed
GH-1448 - Polish deprecations in PublishedEvents.
Unfortunately, using the same overload for matching(Function, S) and matching(Function, Predicate<S>) doesn't work. Thus, the deprecation of matchingMapped(…) is broken as the suggested new method causes compiler errors on the command line (interestingly, they work in Eclipse). We now introduce a method matchingValue(Function, S) as a specialized version of matching(Function, Predicate<S>) as it's performing a static equality check.1 parent e442c3b commit 7771254
File tree
2 files changed
+23
-0
lines changed- spring-modulith-test/src/main/java/org/springframework/modulith/test
2 files changed
+23
-0
lines changedLines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
153 | 162 | | |
154 | 163 | | |
155 | 164 | | |
| |||
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
115 | 116 | | |
| 117 | + | |
116 | 118 | | |
117 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
118 | 132 | | |
119 | 133 | | |
120 | 134 | | |
| |||
0 commit comments