Changeset c5f9aea5


Ignore:
Timestamp:
Mar 28, 2019 4:59:56 PM (15 months ago)
Author:
zab2 <zab2@…>
Branches:
master
Children:
910a0d8
Parents:
84ea533
Message:

do not use equalsIgnoreCase

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/access/DefinitionParser.java

    r84ea533 rc5f9aea5  
    2929
    3030    private static Threshold parseThreshold(String s) throws InvalidDefinitionException {
    31         if ("allow".equalsIgnoreCase(s))
     31        if ("allow".equals(s))
    3232            return Threshold.ALLOW;
    33         if ("deny".equalsIgnoreCase(s))
     33        if ("deny".equals(s))
    3434            return Threshold.DENY;
    3535
     
    8383        if (split.length < 2)
    8484            throw new InvalidDefinitionException("invalid definition "+line);
    85         if ("explicit".equalsIgnoreCase(split[0]))
     85        if ("explicit".equals(split[0]))
    8686            return new ExplicitFilterDefinitionElement(split[1], threshold);
    87         if ("file".equalsIgnoreCase(split[0])) {
     87        if ("file".equals(split[0])) {
    8888            String line3 = line2.substring(4).trim();
    8989            File file = new File(line3);
Note: See TracChangeset for help on using the changeset viewer.