public void check(BindingFeature thing, boolean fix) { BindingFeature to = thing.getBindsTo(); if (to != null) { if (to.getBindsTo() == null || !thing.equals(to.getBindsTo())) { error(thing, "symmetric.violated", fix, "bindsTo", thing.getBindsTo()); if(fix) { to.setBindsTo(thing); } } } }
public void check(final Validation validation, BindingFeature thing) { BindingFeature to = thing.getBindsTo(); if (to != null) { if (to.getBindsTo() == null || !thing.equals(to.getBindsTo())) { error(validation, thing, "symmetric.violated", validation.isFix(), "bindsTo", thing.getBindsTo()); if(validation.isFix()) { to.setBindsTo(thing); } } } }