mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8211300: Convert C-style array declarations in JDK client code
Reviewed-by: prr, serb
This commit is contained in:
parent
c33f1a61de
commit
fc807d0914
339 changed files with 1645 additions and 1645 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2018, 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
|
||||
|
@ -471,7 +471,7 @@ public class JPasswordField extends JTextField {
|
|||
} else {
|
||||
// Treat the text displayed in the JPasswordField
|
||||
// as one word and sentence.
|
||||
char password[] = getPassword();
|
||||
char[] password = getPassword();
|
||||
if (password == null ||
|
||||
index < 0 || index >= password.length) {
|
||||
return null;
|
||||
|
@ -582,7 +582,7 @@ public class JPasswordField extends JTextField {
|
|||
} else {
|
||||
// Treat the text displayed in the JPasswordField
|
||||
// as one word, sentence, line and attribute run
|
||||
char password[] = getPassword();
|
||||
char[] password = getPassword();
|
||||
if (password == null ||
|
||||
index < 0 || index >= password.length) {
|
||||
return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue