syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1598550 - in /syncope/trunk/console/src/main/java/org/apache/syncope/console/pages: ConnectorModalPage.java panels/ResourceConnConfPanel.java
Date Fri, 30 May 2014 11:08:30 GMT
Author: coheigea
Date: Fri May 30 11:08:30 2014
New Revision: 1598550

URL: http://svn.apache.org/r1598550
Log:
Minor cleanup

Modified:
    syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/ConnectorModalPage.java
    syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/panels/ResourceConnConfPanel.java

Modified: syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/ConnectorModalPage.java
URL: http://svn.apache.org/viewvc/syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/ConnectorModalPage.java?rev=1598550&r1=1598549&r2=1598550&view=diff
==============================================================================
--- syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/ConnectorModalPage.java
(original)
+++ syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/ConnectorModalPage.java
Fri May 30 11:08:30 2014
@@ -147,7 +147,7 @@ public class ConnectorModalPage extends 
         final AjaxDropDownChoicePanel<String> location =
                 new AjaxDropDownChoicePanel<String>("location", "location",
                         new Model<String>(bundleTO == null ? null : bundleTO.getLocation()));
-        ((DropDownChoice) location.getField()).setNullValid(true);
+        ((DropDownChoice<String>) location.getField()).setNullValid(true);
         location.setStyleSheet("long_dynamicsize");
         location.setChoices(new ArrayList<String>(mapConnBundleTOs.keySet()));
         location.setRequired(true);
@@ -160,7 +160,7 @@ public class ConnectorModalPage extends 
         final AjaxDropDownChoicePanel<String> connectorName =
                 new AjaxDropDownChoicePanel<String>("connectorName", "connectorName",
                         new Model<String>(bundleTO == null ? null : bundleTO.getBundleName()));
-        ((DropDownChoice) connectorName.getField()).setNullValid(true);
+        ((DropDownChoice<String>) connectorName.getField()).setNullValid(true);
         connectorName.setStyleSheet("long_dynamicsize");
         connectorName.setChoices(bundleTO == null
                 ? new ArrayList<String>()
@@ -232,7 +232,7 @@ public class ConnectorModalPage extends 
 
             @Override
             protected void onUpdate(final AjaxRequestTarget target) {
-                ((DropDownChoice) location.getField()).setNullValid(false);
+                ((DropDownChoice<String>) location.getField()).setNullValid(false);
                 connInstanceTO.setLocation(location.getModelObject());
                 target.add(location);
 
@@ -257,7 +257,7 @@ public class ConnectorModalPage extends 
 
             @Override
             protected void onUpdate(final AjaxRequestTarget target) {
-                ((DropDownChoice) connectorName.getField()).setNullValid(false);
+                ((DropDownChoice<String>) connectorName.getField()).setNullValid(false);
                 connInstanceTO.setBundleName(connectorName.getModelObject());
                 target.add(connectorName);
 
@@ -426,7 +426,7 @@ public class ConnectorModalPage extends 
                 conn.setVersion(bundleTO.getVersion());
                 conn.getConfiguration().addAll(connPropView.getModelObject());
 
-                // Set the model object's capabilites to capabilitiesPalette's converted
Set
+                // Set the model object's capabilities to capabilitiesPalette's converted
Set
                 conn.getCapabilities().addAll(selectedCapabilities.isEmpty()
                         ? EnumSet.noneOf(ConnectorCapability.class)
                         : EnumSet.copyOf(selectedCapabilities));

Modified: syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/panels/ResourceConnConfPanel.java
URL: http://svn.apache.org/viewvc/syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/panels/ResourceConnConfPanel.java?rev=1598550&r1=1598549&r2=1598550&view=diff
==============================================================================
--- syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/panels/ResourceConnConfPanel.java
(original)
+++ syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/panels/ResourceConnConfPanel.java
Fri May 30 11:08:30 2014
@@ -155,7 +155,6 @@ public class ResourceConnConfPanel exten
                             }
 
                             if (ClassUtils.isAssignable(Number.class, propertySchemaClass))
{
-                                @SuppressWarnings("unchecked")
                                 Class<Number> numberClass = (Class<Number>) propertySchemaClass;
                                 field = new SpinnerFieldPanel<Number>("panel", label.getDefaultModelObjectAsString(),
                                         numberClass, new Model<Number>(), null, null,
false);
@@ -263,7 +262,7 @@ public class ResourceConnConfPanel exten
     @Override
     public void onEvent(final IEvent<?> event) {
         if (event.getPayload() instanceof DetailsModEvent) {
-            // connectro change: update properties and forward event
+            // connector change: update properties and forward event
             final AjaxRequestTarget target = ((ResourceEvent) event.getPayload()).getTarget();
 
             connConfProperties = getConnConfProperties();



Mime
View raw message