summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-03-27 02:04:49 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2012-03-28 13:18:05 -0500
commit176905c3cf27a3ca295921f33d1be956397d4117 (patch)
treea26b265dab06313d4e5916dc8047d640ca1cebce /base
parent018467598ec9d771daacae70b5397ad568b2ca80 (diff)
downloadpki-176905c3cf27a3ca295921f33d1be956397d4117.tar.gz
pki-176905c3cf27a3ca295921f33d1be956397d4117.tar.xz
pki-176905c3cf27a3ca295921f33d1be956397d4117.zip
Replaced deprecated JPasswordField.getText().
The deprecated getText() method in JPasswordField has been replaced with getPassword(). Ticket #3
Diffstat (limited to 'base')
-rw-r--r--base/common/src/com/netscape/cmscore/base/JDialogPasswordCallback.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/base/common/src/com/netscape/cmscore/base/JDialogPasswordCallback.java b/base/common/src/com/netscape/cmscore/base/JDialogPasswordCallback.java
index 7a7709466..51685f42e 100644
--- a/base/common/src/com/netscape/cmscore/base/JDialogPasswordCallback.java
+++ b/base/common/src/com/netscape/cmscore/base/JDialogPasswordCallback.java
@@ -142,10 +142,7 @@ public class JDialogPasswordCallback implements PasswordCallback {
public void actionPerformed(ActionEvent e) {
//input = (JPasswordField)e.getSource();
- // XXX!!! Change to char[] in JDK 1.2
- String pwString = pwField.getText();
-
- pwHolder.password = new Password(pwString.toCharArray());
+ pwHolder.password = new Password(pwField.getPassword());
pwHolder.cancelled = false;
f.dispose();
}