You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/flamingock-core/src/main/java/io/flamingock/internal/core/pipeline/loaded/stage/AbstractLoadedStage.java
+25Lines changed: 25 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,31 @@ public Collection<AbstractLoadedChange> getChanges() {
103
103
returnchanges;
104
104
}
105
105
106
+
/**
107
+
* Returns a new instance of the same concrete stage type carrying the provided changes
108
+
* instead of this stage's current changes. Name, type, and the per-subclass validation
109
+
* context are preserved.
110
+
*
111
+
* <p>Used at runtime construction time to materialize a stage with a filtered subset
112
+
* of changes without mutating the original {@code AbstractLoadedStage} (whose
113
+
* {@code changes} collection is final and immutable post-construction). The copy is
114
+
* produced by reflecting on the concrete subclass to find its public
115
+
* {@code (String, StageType, Collection)} constructor — every concrete subclass
0 commit comments