I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit c5f9aea5 authored by zab2's avatar zab2
Browse files

do not use equalsIgnoreCase

parent 84ea533b
No related branches found
No related tags found
No related merge requests found
...@@ -28,9 +28,9 @@ class DefinitionParser { ...@@ -28,9 +28,9 @@ class DefinitionParser {
} }
private static Threshold parseThreshold(String s) throws InvalidDefinitionException { private static Threshold parseThreshold(String s) throws InvalidDefinitionException {
if ("allow".equalsIgnoreCase(s)) if ("allow".equals(s))
return Threshold.ALLOW; return Threshold.ALLOW;
if ("deny".equalsIgnoreCase(s)) if ("deny".equals(s))
return Threshold.DENY; return Threshold.DENY;
String [] split = DataHelper.split(s,"/"); String [] split = DataHelper.split(s,"/");
...@@ -82,9 +82,9 @@ class DefinitionParser { ...@@ -82,9 +82,9 @@ class DefinitionParser {
String[] split = DataHelper.split(line2," "); String[] split = DataHelper.split(line2," ");
if (split.length < 2) if (split.length < 2)
throw new InvalidDefinitionException("invalid definition "+line); throw new InvalidDefinitionException("invalid definition "+line);
if ("explicit".equalsIgnoreCase(split[0])) if ("explicit".equals(split[0]))
return new ExplicitFilterDefinitionElement(split[1], threshold); return new ExplicitFilterDefinitionElement(split[1], threshold);
if ("file".equalsIgnoreCase(split[0])) { if ("file".equals(split[0])) {
String line3 = line2.substring(4).trim(); String line3 = line2.substring(4).trim();
File file = new File(line3); File file = new File(line3);
return new FileFilterDefinitionElement(file, threshold); return new FileFilterDefinitionElement(file, threshold);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment