Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/java.base/share/classes/java/net/ServerSocket.java
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,11 @@ public int getReceiveBufferSize() throws SocketException {
* bandwidth
*
* @since 1.5
*
* @deprecated This method was intended to allow for protocols that are now
* obsolete.
*/
@Deprecated(since = "26", forRemoval = true)
public void setPerformancePreferences(int connectionTime,
int latency,
int bandwidth)
Expand Down
4 changes: 4 additions & 0 deletions src/java.base/share/classes/java/net/Socket.java
Original file line number Diff line number Diff line change
Expand Up @@ -1853,7 +1853,11 @@ public static synchronized void setSocketImplFactory(SocketImplFactory fac)
* bandwidth
*
* @since 1.5
*
* @deprecated This method was intended to allow for protocols that are now
* obsolete.
*/
@Deprecated(since = "26", forRemoval = true)
public void setPerformancePreferences(int connectionTime,
int latency,
int bandwidth)
Expand Down
4 changes: 4 additions & 0 deletions src/java.base/share/classes/java/net/SocketImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,11 @@ void reset() {
* bandwidth
*
* @since 1.5
*
* @deprecated This method was intended to allow for protocols that are now
* obsolete.
*/
@Deprecated(since = "26", forRemoval = true)
protected void setPerformancePreferences(int connectionTime,
int latency,
int bandwidth)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2025, 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
Expand Down Expand Up @@ -556,6 +556,7 @@ public final boolean getReuseAddress() throws SocketException {
* @see java.net.Socket#setPerformancePreferences(int, int, int)
*/
@Override
@SuppressWarnings("removal")
public void setPerformancePreferences(int connectionTime,
int latency, int bandwidth) {
if (self == this) {
Expand Down