Skip to content
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.

Commit

Permalink
fixed issue #565
Browse files Browse the repository at this point in the history
  • Loading branch information
terfloth committed Apr 5, 2016
1 parent e1cba7f commit 2b05e12
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,13 @@ public void checkExpression(Guard expression) {

@Check(CheckType.FAST)
public void transitionsWithNoTrigger(Transition trans) {
if (trans.getSource() instanceof Entry || trans.getSource() instanceof Choice
|| trans.getSource() instanceof Synchronization) {
return;
}

if (trans.getSource() instanceof Entry
|| trans.getSource() instanceof Choice
|| trans.getSource() instanceof Synchronization
|| (trans.getTarget() instanceof Synchronization && (trans.getTarget().getIncomingTransitions().size() > 1))
) { return; }

if (trans.getSource() instanceof org.yakindu.sct.model.sgraph.State) {
org.yakindu.sct.model.sgraph.State state = (org.yakindu.sct.model.sgraph.State) trans.getSource();
if (state.isComposite()) {
Expand Down

0 comments on commit 2b05e12

Please sign in to comment.