Changeset fb5d0cd for apps/sam/java


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)

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

Legend:

Unmodified
Added
Removed
  • apps/sam/java/src/net/i2p/sam/SAMBridge.java

    r7c8ba61f rfb5d0cd  
    253253        SAMBridge bridge = new SAMBridge(host, port, opts, keyfile);
    254254        I2PAppThread t = new I2PAppThread(bridge, "SAMListener");
    255         if (Boolean.valueOf(System.getProperty("sam.shutdownOnOOM", "false")).booleanValue()) {
     255        if (Boolean.parseBoolean(System.getProperty("sam.shutdownOnOOM"))) {
    256256            t.addOOMEventThreadListener(new I2PAppThread.OOMEventListener() {
    257257                public void outOfMemory(OutOfMemoryError err) {
  • apps/sam/java/src/net/i2p/sam/SAMStreamSession.java

    r7c8ba61f rfb5d0cd  
    135135        socketMgr.addDisconnectListener(new DisconnectListener());
    136136
    137         forceFlush = Boolean.valueOf(allprops.getProperty(PROP_FORCE_FLUSH, DEFAULT_FORCE_FLUSH)).booleanValue();
     137        forceFlush = Boolean.parseBoolean(allprops.getProperty(PROP_FORCE_FLUSH, DEFAULT_FORCE_FLUSH));
    138138       
    139139        boolean canReceive = false;
Note: See TracChangeset for help on using the changeset viewer.