equal
deleted
inserted
replaced
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 |