[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Fedora-directory-commits] directoryconsole/src/com/netscape/admin/dirserv/panel ChainingSettingPanel.java, 1.1.1.1, 1.2



Author: nhosoi

Update of /cvs/dirsec/directoryconsole/src/com/netscape/admin/dirserv/panel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv2071

Modified Files:
	ChainingSettingPanel.java 
Log Message:
Resolves: #386041
Summary: "Select control OID(s) to add" dialog shows redundant OIDs at the end
Description: changed to initialize _possibleControls before copying the new list
(removed _knownUnsupportedControls from original _possibleControls) into
_possibleControls.



Index: ChainingSettingPanel.java
===================================================================
RCS file: /cvs/dirsec/directoryconsole/src/com/netscape/admin/dirserv/panel/ChainingSettingPanel.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- ChainingSettingPanel.java	18 Jul 2005 00:55:54 -0000	1.1.1.1
+++ ChainingSettingPanel.java	16 Nov 2007 21:22:46 -0000	1.2
@@ -426,12 +426,12 @@
 	Vector tmpControls = new Vector(_possibleControls.length);
 	for (int ii = 0; ii < _knownUnsupportedControls.length; ++ii) {
 		for (int jj = 0; jj < _possibleControls.length; ++jj) {
-			if (!_possibleControls[jj].
-				equals(_knownUnsupportedControls[ii])) {
+			if (!_possibleControls[jj].equals(_knownUnsupportedControls[ii])) {
 				tmpControls.addElement(_possibleControls[jj]);
 			}
 		}
     }
+	_possibleControls = new String[tmpControls.size()];
 	tmpControls.copyInto(_possibleControls);
 	}
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]