Compare with equalsIgnoreCase instead of changing casing

Former-commit-id: ab89ed68cb5e25d14d5fbd7ba93dc93948523d82
This commit is contained in:
Hans Joachim Desserud
2015-02-22 11:20:36 +01:00
parent 7c4cc1334b
commit 42939e4922

View File

@@ -140,7 +140,7 @@ public final class CliParser {
throw new FileNotFoundException(msg);
} else if (!path.contains("*") && !path.contains("?")) {
File f = new File(path);
if ("o".equals(argumentName.substring(0, 1).toLowerCase()) && !"ALL".equals(this.getReportFormat().toUpperCase())) {
if ("o".equalsIgnoreCase(argumentName.substring(0, 1)) && !"ALL".equalsIgnoreCase(this.getReportFormat())) {
final String checkPath = path.toLowerCase();
if (checkPath.endsWith(".html") || checkPath.endsWith(".xml") || checkPath.endsWith(".htm")) {
if (f.getParentFile() == null) {