mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8314877: Make fields final in 'java.net' package
Reviewed-by: jpai
This commit is contained in:
parent
86115c2a2e
commit
283c360392
10 changed files with 23 additions and 27 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue