diff --git a/src/java.base/share/classes/java/net/SocketOptions.java b/src/java.base/share/classes/java/net/SocketOptions.java
index 5dbe88bb1fd..7dac20ac55b 100644
--- a/src/java.base/share/classes/java/net/SocketOptions.java
+++ b/src/java.base/share/classes/java/net/SocketOptions.java
@@ -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 {
*
* 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 ** If the requested option is binary, it can be set using this method by