public final class ChangedMemberTarget extends AbstractDiffEvaluator
If the shape targeted by the member changes from a simple shape to a simple shape of the same type with the same traits, or a list or set that has a member that targets the shame exact shape and has the same traits, then the emitted event is a WARNING. If an enum trait is found on the old or newly targeted shape, then the event is an ERROR, because enum traits typically materialize as named types in codegen. All other changes are ERROR events.
Constructor and Description |
---|
ChangedMemberTarget() |
Modifier and Type | Method and Description |
---|---|
java.util.List<ValidationEvent> |
evaluate(Differences differences)
Returns validation events given two models and the detected
differences between them.
|
danger, danger, error, error, getEventId, note, note, warning, warning
public java.util.List<ValidationEvent> evaluate(Differences differences)
DiffEvaluator
differences
- Detected differences.