Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs2-22wi
project03
Commits
91fd9ae6
Commit
91fd9ae6
authored
3 years ago
by
James C Bowden
Browse files
Options
Download
Email Patches
Plain Diff
constructor hygiene not catch node either
parent
6261d038
master
No related merge requests found
Pipeline
#58658
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/edu/caltech/cs2/helpers/Inspection.java
+3
-2
tests/edu/caltech/cs2/helpers/Inspection.java
with
3 additions
and
2 deletions
+3
-2
tests/edu/caltech/cs2/helpers/Inspection.java
View file @
91fd9ae6
...
...
@@ -106,8 +106,9 @@ public class Inspection {
CONSTRUCTOR_COLLECTOR
.
visit
(
cu
,
constructors
);
int
nonThisConstructors
=
0
;
for
(
ConstructorDeclaration
c
:
constructors
)
{
// if is iterator constructor, should not count
if
(
c
.
toString
().
toLowerCase
(
Locale
.
ROOT
).
contains
(
"iterator"
))
{
// if is iterator or node constructor, should not count
String
full
=
c
.
toString
().
toLowerCase
(
Locale
.
ROOT
);
if
(
full
.
contains
(
"iterator"
)
||
full
.
contains
(
"node"
))
{
continue
;
}
BlockStmt
body
=
c
.
getBody
();
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
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
Menu
Projects
Groups
Snippets
Help