syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r1333947 - in /incubator/syncope/trunk: console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/ core/src/main/java/org/apache/syncope/core/scheduling/ core/src/main/java/org/apache/syncope/core/workflow/activiti/
Date Fri, 04 May 2012 13:30:08 GMT
Author: rene
Date: Fri May  4 13:30:08 2012
New Revision: 1333947

URL: http://svn.apache.org/viewvc?rev=1333947&view=rev
Log:
sonar: remove unused variables

Modified:
    incubator/syncope/trunk/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/DateFieldPanel.java
    incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/scheduling/SyncJob.java
    incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/workflow/activiti/Delete.java

Modified: incubator/syncope/trunk/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/DateFieldPanel.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/DateFieldPanel.java?rev=1333947&r1=1333946&r2=1333947&view=diff
==============================================================================
--- incubator/syncope/trunk/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/DateFieldPanel.java
(original)
+++ incubator/syncope/trunk/console/src/main/java/org/apache/syncope/console/wicket/markup/html/form/DateFieldPanel.java
Fri May  4 13:30:08 2012
@@ -84,7 +84,6 @@ public class DateFieldPanel extends Fiel
             @Override
             public void setObject(final Serializable object) {
                 if (object instanceof Date) {
-                    final Object obj = item.getModelObject();
                     item.setModelObject(formatter.format((Date) object));
                 } else {
                     item.setModelObject(null);

Modified: incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/scheduling/SyncJob.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/scheduling/SyncJob.java?rev=1333947&r1=1333946&r2=1333947&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/scheduling/SyncJob.java
(original)
+++ incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/scheduling/SyncJob.java
Fri May  4 13:30:08 2012
@@ -288,6 +288,14 @@ public class SyncJob extends AbstractTas
         return result;
     }
 
+    /**
+     * Creates user and stores the result in parameter delta (!)
+     * 
+     * @param delta
+     * @param dryRun
+     * @return
+     * @throws JobExecutionException 
+     */
     private SyncResult createUser(SyncDelta delta, final boolean dryRun) throws JobExecutionException
{
 
         final SyncResult result = new SyncResult();
@@ -684,7 +692,7 @@ public class SyncJob extends AbstractTas
     }
 
     /**
-     * Handle delatas.
+     * Handle deltas.
      *
      * @param syncTask sync task.
      * @param delta delta.

Modified: incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/workflow/activiti/Delete.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/workflow/activiti/Delete.java?rev=1333947&r1=1333946&r2=1333947&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/workflow/activiti/Delete.java
(original)
+++ incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/workflow/activiti/Delete.java
Fri May  4 13:30:08 2012
@@ -29,7 +29,11 @@ public class Delete extends AbstractActi
 
         SyncopeUser user = (SyncopeUser) execution.getVariable(ActivitiUserWorkflowAdapter.SYNCOPE_USER);
 
-        // do something with SyncopeUser...
+        // TODO: do something with SyncopeUser...
+        if (user != null) {
+            user.checkToken("");
+        }
+
 
         // remove SyncopeUser variable
         execution.removeVariable(ActivitiUserWorkflowAdapter.SYNCOPE_USER);



Mime
View raw message