Skip to content

Commit 8ad4419

Browse files
committed
removed redundant code
1 parent d1954bd commit 8ad4419

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/main/java/com/appium/executor/ATDExecutor.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,18 +173,15 @@ public XmlSuite constructXmlAndExecuteTestCaseAtRuntime(List<String> testCases,
173173
for (Map.Entry<String, List<Method>> mapElement : methods.entrySet()) {
174174
XmlClass xmlClass = new XmlClass(mapElement.getKey());
175175
for (String testName : testCases) {
176-
List<XmlInclude> includedMethodsList = null;
177176
for (Method methodName : mapElement.getValue()) {
178177
if (methodName.getName().equalsIgnoreCase(testName)) {
179-
includedMethodsList = new ArrayList<>();
178+
List<XmlInclude> includedMethodsList = new ArrayList<>();
180179
XmlInclude includedTestMethod = new XmlInclude(testName);
181180
includedMethodsList.add(includedTestMethod);
182181
xmlClass.setIncludedMethods(includedMethodsList);
183182
classes.add(xmlClass);
184183
}
185184
}
186-
187-
188185
}
189186
}
190187

0 commit comments

Comments
 (0)