Commit 91fd9ae6 authored by James C Bowden's avatar James C Bowden
Browse files

constructor hygiene not catch node either

parent 6261d038
No related merge requests found
Pipeline #58658 failed with stage
in 0 seconds
Showing with 3 additions and 2 deletions
+3 -2
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment