From ddf0c10f207b210ed8defeea2196caa662da16ca Mon Sep 17 00:00:00 2001 From: Daniel Fuchs Date: Tue, 3 Sep 2024 12:03:06 +0100 Subject: [PATCH] Review feedback --- test/jdk/java/net/httpclient/ProxyServer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/jdk/java/net/httpclient/ProxyServer.java b/test/jdk/java/net/httpclient/ProxyServer.java index 3e3b38909e520..7de14a79225a5 100644 --- a/test/jdk/java/net/httpclient/ProxyServer.java +++ b/test/jdk/java/net/httpclient/ProxyServer.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2024, 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 @@ -195,8 +195,8 @@ class Connection { volatile InputStream clientIn, serverIn; volatile OutputStream clientOut, serverOut; - volatile boolean proxyInClosed; - volatile boolean proxyOutClosed; + boolean proxyInClosed; // only accessed from synchronized block + boolean proxyOutClosed; // only accessed from synchronized block final static int CR = 13; final static int LF = 10;