continue
语句。
这些 continue
语句是不必要的语句,可以安全移除。
示例:
for (String element: elements) {
System.out.println();
continue;
}
在应用快速修复后:
for (String element: elements) {
System.out.println();
}
该检查不分析 JSP 文件。
使用在具有 'else' 分支的 'if' 语句的 then 分支中忽略选项,以忽略位于完整 if
-else
语句的 then
分支中的 continue
语句。
示例:
for (String element: elements) {
if(element.isEmpty()) {
continue;
} else {
//...
}
}