RFR: 8329825: Clarify the value type for java.net.SocketOptions.SO_LINGER [v2]
    Jaikiran Pai 
    jpai at openjdk.org
       
    Fri May 17 05:44:29 UTC 2024
    
    
  
On Wed, 15 May 2024 11:07:05 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Jaikiran Pai has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   reword the javadoc
>
> src/java.base/share/classes/java/net/SocketOptions.java line 197:
> 
>> 195:      * {@link #setOption(int, Object)}, can either be a {@linkplain Boolean#FALSE Boolean.FALSE}
>> 196:      * or an integer value. {@code Boolean.FALSE} represents that this option is disabled whereas
>> 197:      * an integer value represents the linger timeout.
> 
> When the value is an integer then a positive integer enables, a negative integer disables. I think you'll have to work that into the wording.
Hello Alan, I had a look at the code which deals with this option. Based on that I've updated the PR to reword this documentation. Is this accurate now?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/19243#discussion_r1604376009
    
    
More information about the net-dev
mailing list