src/java.base/unix/classes/sun/nio/ch/UnixAsynchronousSocketChannelImpl.java
changeset 53018 8bf9268df0e2
parent 50933 76b5ee99ffc0
child 54246 f04e3492fd88
child 57270 3519688a4e4d
equal deleted inserted replaced
53017:e10a1f7aaa13 53018:8bf9268df0e2
    47 
    47 
    48     private static final boolean disableSynchronousRead;
    48     private static final boolean disableSynchronousRead;
    49     static {
    49     static {
    50         String propValue = GetPropertyAction.privilegedGetProperty(
    50         String propValue = GetPropertyAction.privilegedGetProperty(
    51             "sun.nio.ch.disableSynchronousRead", "false");
    51             "sun.nio.ch.disableSynchronousRead", "false");
    52         disableSynchronousRead = (propValue.length() == 0) ?
    52         disableSynchronousRead = propValue.isEmpty() ?
    53             true : Boolean.valueOf(propValue);
    53             true : Boolean.parseBoolean(propValue);
    54     }
    54     }
    55 
    55 
    56     private final Port port;
    56     private final Port port;
    57     private final int fdVal;
    57     private final int fdVal;
    58 
    58