Changeset 1e5a35c7 for apps/addressbook


Ignore:
Timestamp:
Nov 7, 2015 5:45:48 PM (5 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
8e77188
Parents:
83b9231
Message:

Use new split()

Location:
apps/addressbook/java/src/net/i2p/addressbook
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/addressbook/java/src/net/i2p/addressbook/ConfigIterator.java

    r83b9231 r1e5a35c7  
    3232import java.util.Map;
    3333import java.util.NoSuchElementException;
     34
     35import net.i2p.data.DataHelper;
    3436
    3537/**
     
    7072            while (inputLine != null) {
    7173                inputLine = ConfigParser.stripComments(inputLine);
    72                 String[] splitLine = inputLine.split("=");
     74                String[] splitLine = DataHelper.split(inputLine, "=");
    7375                if (splitLine.length == 2) {
    7476                    next = new ConfigEntry(splitLine[0].trim().toLowerCase(Locale.US), splitLine[1].trim());
  • apps/addressbook/java/src/net/i2p/addressbook/ConfigParser.java

    r83b9231 r1e5a35c7  
    3636import java.util.Map;
    3737
     38import net.i2p.data.DataHelper;
    3839import net.i2p.util.SecureFile;
    3940import net.i2p.util.SecureFileOutputStream;
     
    9495        while (inputLine != null) {
    9596            inputLine = stripComments(inputLine);
    96             String[] splitLine = inputLine.split("=");
     97            String[] splitLine = DataHelper.split(inputLine, "=");
    9798            if (splitLine.length == 2) {
    9899                result.put(splitLine[0].trim().toLowerCase(Locale.US), splitLine[1].trim());
Note: See TracChangeset for help on using the changeset viewer.