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
ac272aee
Commit
ac272aee
authored
Oct 07, 2019
by
Markus Klinik
Browse files
Assignment02Rules: use PrintStream instead of System
parent
5054f9ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
java-feedback-rascal/src/Assignment02Rules.rsc
View file @
ac272aee
...
...
@@ -16,7 +16,7 @@ set[Message] allAssignment02Rules(M3 model)
;
// There should be one class that is not the main class and not the Gallows
// class, and this class is the only one that uses System
// class, and this class is the only one that uses System
.io, which is a PrintStream
set[Message] a02_all_io_in_view(M3 model)
{
set[Message] result = {};
...
...
@@ -29,7 +29,7 @@ set[Message] a02_all_io_in_view(M3 model)
// find all methods that use System
set[loc] ioMethods =
{ m
| m <- invert(model.typeDependency)[|java+class:///java/
lang/Syste
m|]
| m <- invert(model.typeDependency)[|java+class:///java/
io/PrintStrea
m|]
, isMethod(m)
};
// find the classes to which these methods belong
...
...
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