@@ -91,8 +91,8 @@ private void updateOutTupleLeft(OutTuple_ outTuple, LeftTuple_ leftTuple) {
91
91
private void doUpdateOutTuple (OutTuple_ outTuple ) {
92
92
var state = outTuple .state ;
93
93
if (!state .isActive ()) { // Impossible because they shouldn't linger in the indexes.
94
- throw new IllegalStateException ("Impossible state: The tuple (" + outTuple . state + ") in node (" +
95
- this + ") is in an unexpected state (" + outTuple .state + ")." );
94
+ throw new IllegalStateException ("Impossible state: The tuple (%s) in node (%s) is in an unexpected state (%s)."
95
+ . formatted ( outTuple , this , outTuple .state ) );
96
96
} else if (state != TupleState .OK ) { // Already in the queue in the correct state.
97
97
return ;
98
98
}
@@ -155,10 +155,9 @@ protected final void retractOutTuple(OutTuple_ outTuple) {
155
155
ElementAwareListEntry <OutTuple_ > outEntryRight = outTuple .removeStore (outputStoreIndexRightOutEntry );
156
156
outEntryRight .remove ();
157
157
var state = outTuple .state ;
158
- if (!state .isActive ()) {
159
- // Impossible because they shouldn't linger in the indexes.
160
- throw new IllegalStateException ("Impossible state: The tuple (" + outTuple .state + ") in node (" + this
161
- + ") is in an unexpected state (" + outTuple .state + ")." );
158
+ if (!state .isActive ()) { // Impossible because they shouldn't linger in the indexes.
159
+ throw new IllegalStateException ("Impossible state: The tuple (%s) in node (%s) is in an unexpected state (%s)."
160
+ .formatted (outTuple , this , outTuple .state ));
162
161
}
163
162
propagationQueue .retract (outTuple , state == TupleState .CREATING ? TupleState .ABORTING : TupleState .DYING );
164
163
}
0 commit comments