Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pieter Koopman
Personal Prof public repository
Commits
38e39ad4
Commit
38e39ad4
authored
Feb 17, 2020
by
Markus Klinik
Browse files
Condition also considered synchronization
parent
0ddbe89b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/AssignmentSupermarketRules.rsc
View file @
38e39ad4
...
...
@@ -29,5 +29,6 @@ set[Message] aSupermarket_no_synchronized_block(set[Declaration] ast) =
set[Message] aSupermarket_only_register_belt_synchronization(M3 model) =
{ error("class <getName(model,c)> should not have synchronization code", c)
| c <- classes(model) - { findClass(model, "Register"), findClass(model, "ConveyorBelt") }
, javaUtilLock in allTypeDependenciesLoc(model, c)
, javaUtilLock in allTypeDependenciesLoc(model, c)
|| javaUtilCondition in allTypeDependenciesLoc(model, c)
};
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment