mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8299499: Usage of constructors of primitive wrapper classes should be avoided in java.net API docs
Reviewed-by: naoto, jpai
This commit is contained in:
parent
5393dc9a48
commit
63cf4aa0c8
1 changed files with 3 additions and 3 deletions
|
@ -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.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -54,9 +54,9 @@ public interface SocketOptions {
|
|||
* <BR><PRE>
|
||||
* 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.
|
||||
* s.setOption(SO_LINGER, new Double(10));
|
||||
* s.setOption(SO_LINGER, Double.valueOf(10));
|
||||
* // ERROR - expects java.lang.Integer
|
||||
*</PRE>
|
||||
* If the requested option is binary, it can be set using this method by
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue