Author: elecharny
Date: Mon Nov 19 00:44:45 2007
New Revision: 596224
URL: http://svn.apache.org/viewvc?rev=596224&view=rev
Log:
Solved a compilation pb. You can't use List<? extends String> as String is a final class
(it can't be extended).
The solution is to cast the result of the getCheckedElements() (which returns an Object[])
to String[].
Modified:
directory/studio/trunk/studio-apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/editor/GeneralPage.java
Modified: directory/studio/trunk/studio-apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/editor/GeneralPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/editor/GeneralPage.java?rev=596224&r1=596223&r2=596224&view=diff
==============================================================================
--- directory/studio/trunk/studio-apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/editor/GeneralPage.java
(original)
+++ directory/studio/trunk/studio-apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/editor/GeneralPage.java
Mon Nov 19 00:44:45 2007
@@ -873,8 +873,8 @@
configuration.setSynchronizationPeriod( Long.parseLong( synchPeriodText.getText()
) );
configuration.setMaxThreads( Integer.parseInt( maxThreadsText.getText() ) );
- configuration.setSupportedMechanisms( new ArrayList<String>( ( List<? extends
String> ) Arrays
- .asList( supportedMechanismsTableViewer.getCheckedElements() ) ) );
+ configuration.setSupportedMechanisms( new ArrayList<String>( ( List<String>
) Arrays
+ .asList( (String[])supportedMechanismsTableViewer.getCheckedElements() ) ) );
configuration.setAllowAnonymousAccess( allowAnonymousAccessCheckbox.getSelection()
);
configuration.setEnableAccessControl( enableAccesControlCheckbox.getSelection() );
|