Changeset fb5d0cd for apps/addressbook


Ignore:
Timestamp:
Sep 28, 2012 5:50:41 PM (8 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
076558d
Parents:
7c8ba61f
Message:

Boolean.valueOf(x).booleanValue() → Boolean.parseBoolean(x)

File:
1 edited

Legend:

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

    r7c8ba61f rfb5d0cd  
    231231    public static void update(Map<String, String> settings, String home) {
    232232        File published = null;
    233         boolean should_publish = Boolean.valueOf(settings.get("should_publish")).booleanValue();
     233        boolean should_publish = Boolean.parseBoolean(settings.get("should_publish"));
    234234        if (should_publish)
    235235            published = new File(home, settings
     
    262262        // If false, add hosts via naming service; if true, write hosts.txt file directly
    263263        // Default false
    264         if (Boolean.valueOf(settings.get("update_direct")).booleanValue()) {
     264        if (Boolean.parseBoolean(settings.get("update_direct"))) {
    265265            // Direct hosts.txt access
    266266            File routerFile = new File(home, settings.get("router_addressbook"));
Note: See TracChangeset for help on using the changeset viewer.