8314877: Make fields final in 'java.net' package

Reviewed-by: jpai
This commit is contained in:
Andrey Turbanov 2023-09-19 08:26:25 +00:00
parent 86115c2a2e
commit 283c360392
10 changed files with 23 additions and 27 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2004, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 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
@ -42,7 +42,7 @@ public class HttpRetryException extends IOException {
/**
* The response code.
*/
private int responseCode;
private final int responseCode;
/**
* The URL to be redirected to.