Skip to content
Snippets Groups Projects
Commit 3fd499a4 authored by Florian Hölzl's avatar Florian Hölzl
Browse files

completed constraint checkers for af3.component.

refs 437
parent 76e718f9
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ import org.fortiss.tooling.kernel.extension.data.IConstraintViolation;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 63108397E80BABBB4828D0094A82C776
* @ConQAT.Rating YELLOW Hash: F233654B247B3C3A35A368F7BB909B43
*/
public abstract class MultiViolationConstraintCheckerBase<T extends EObject, V extends EObject>
extends ConstraintCheckerBase<T> {
......@@ -47,7 +47,7 @@ public abstract class MultiViolationConstraintCheckerBase<T extends EObject, V e
public final List<? extends IConstraintViolation<V>> apply(T modelElement) {
List<IConstraintViolation<V>> results = new ArrayList<IConstraintViolation<V>>();
collectViolations(modelElement, results);
return results;
return results.isEmpty() ? null : results;
}
/** Collects the violations in the given result lists. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment