@@ -152,7 +152,7 @@ private static Deque<TriggerState> getStates() {
152152 return THREAD_LOCAL_STATES .computeIfAbsent (Thread .currentThread (), thread -> new ArrayDeque <>());
153153 }
154154
155- private record TriggerState (Trigger trigger , TriggerPhase triggerPhase , TriggerEvent triggerEvent , XmldbURI src ,
155+ record TriggerState (Trigger trigger , TriggerPhase triggerPhase , TriggerEvent triggerEvent , XmldbURI src ,
156156 @ Nullable XmldbURI dst , boolean possiblyCyclic ) {
157157
158158 @ Override
@@ -186,7 +186,7 @@ public String toString() {
186186 }
187187
188188
189- private boolean equalsIgnoringPhase (final Trigger otherTrigger , final TriggerEvent otherTriggerEvent , final XmldbURI otherSrc , @ Nullable final XmldbURI otherDst ) {
189+ boolean equalsIgnoringPhase (final Trigger otherTrigger , final TriggerEvent otherTriggerEvent , final XmldbURI otherSrc , @ Nullable final XmldbURI otherDst ) {
190190 if (!trigger .equals (otherTrigger )) {
191191 return false ;
192192 }
@@ -222,29 +222,5 @@ public boolean isCompletedBy(final Trigger otherTrigger, final TriggerPhase othe
222222
223223 return Objects .equals (dst , otherDst );
224224 }
225-
226- public boolean completes (final Object o ) {
227- if (o instanceof TriggerState that ) {
228- if (this .triggerPhase != TriggerPhase .AFTER
229- || that .triggerPhase != TriggerPhase .BEFORE ) {
230- return false ;
231- }
232-
233- if (!trigger .equals (that .trigger )) {
234- return false ;
235- }
236-
237- if (triggerEvent != that .triggerEvent ) {
238- return false ;
239- }
240-
241- if (!src .equals (that .src )) {
242- return false ;
243- }
244-
245- return Objects .equals (dst , that .dst );
246- }
247- return false ;
248- }
249225 }
250226}
0 commit comments