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) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 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
@ -39,8 +39,8 @@ package java.net;
public final class PasswordAuthentication {
private String userName;
private char[] password;
private final String userName;
private final char[] password;
/**
* Creates a new {@code PasswordAuthentication} object from the given