8299499: Usage of constructors of primitive wrapper classes should be avoided in java.net API docs
Backport-of: 63cf4aa0c897406fc9370a8e05cb035caafc5d69
This commit is contained in:
parent
98eae6dade
commit
dc5cc61621
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1996, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -54,9 +54,9 @@ public interface SocketOptions {
|
|||||||
* <BR><PRE>
|
* <BR><PRE>
|
||||||
* SocketImpl s;
|
* SocketImpl s;
|
||||||
* ...
|
* ...
|
||||||
* s.setOption(SO_LINGER, new Integer(10));
|
* s.setOption(SO_LINGER, Integer.valueOf(10));
|
||||||
* // OK - set SO_LINGER w/ timeout of 10 sec.
|
* // OK - set SO_LINGER w/ timeout of 10 sec.
|
||||||
* s.setOption(SO_LINGER, new Double(10));
|
* s.setOption(SO_LINGER, Double.valueOf(10));
|
||||||
* // ERROR - expects java.lang.Integer
|
* // ERROR - expects java.lang.Integer
|
||||||
*</PRE>
|
*</PRE>
|
||||||
* If the requested option is binary, it can be set using this method by
|
* If the requested option is binary, it can be set using this method by
|
||||||
|
Loading…
x
Reference in New Issue
Block a user