Skip to content

Commit 0d9dec6

Browse files
committed
removed some redundant code
1 parent c26f941 commit 0d9dec6

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/main/java/TestFileDetector.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ public void visit(ClassOrInterfaceDeclaration n, Void arg) {
101101
}
102102

103103
private Boolean containsKeyword(String input){
104-
Boolean hasKeyword = false;
105-
106104
Pattern pattern;
107105
Matcher matcher;
108106
for (String keyword : DEBT_KEYWORDS) {
@@ -117,11 +115,9 @@ private Boolean containsKeyword(String input){
117115
return true;
118116
}
119117
}
120-
121-
return hasKeyword;
118+
return false;
122119
}
123120

124-
125121
@Override
126122
public void visit(MethodDeclaration n, Void arg) {
127123
MethodEntity method = new MethodEntity(n.getNameAsString());

0 commit comments

Comments
 (0)