syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r1333950 - in /incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core: propagation/PropagationManager.java rest/data/UserDataBinder.java
Date Fri, 04 May 2012 13:32:22 GMT
Author: rene
Date: Fri May  4 13:32:22 2012
New Revision: 1333950

URL: http://svn.apache.org/viewvc?rev=1333950&view=rev
Log:
sonar: avoid catching throwable. Replaced by catching exception

Modified:
    incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/propagation/PropagationManager.java
    incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/data/UserDataBinder.java

Modified: incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/propagation/PropagationManager.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/propagation/PropagationManager.java?rev=1333950&r1=1333949&r2=1333950&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/propagation/PropagationManager.java
(original)
+++ incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/propagation/PropagationManager.java
Fri May  4 13:32:22 2012
@@ -767,7 +767,7 @@ public class PropagationManager {
                 execution.setStatus(task.getPropagationMode() == PropagationMode.ONE_PHASE
                         ? PropagationTaskExecStatus.FAILURE.name()
                         : PropagationTaskExecStatus.UNSUBMITTED.name());
-            } catch (Throwable wft) {
+            } catch (Exception wft) {
                 LOG.error("While executing KO action on {}", execution, wft);
             }
 

Modified: incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/data/UserDataBinder.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/data/UserDataBinder.java?rev=1333950&r1=1333949&r2=1333950&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/data/UserDataBinder.java
(original)
+++ incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/data/UserDataBinder.java
Fri May  4 13:32:22 2012
@@ -184,7 +184,7 @@ public class UserDataBinder extends Abst
             Policy policy = policyDAO.getGlobalPasswordPolicy();
             PasswordPolicySpec passwordPolicy = policy.getSpecification();
             passwordHistorySize = passwordPolicy.getHistoryLength();
-        } catch (Throwable ignore) {
+        } catch (Exception ignore) {
             // ignore exceptions
         }
 
@@ -229,7 +229,7 @@ public class UserDataBinder extends Abst
                 Policy policy = policyDAO.getGlobalPasswordPolicy();
                 PasswordPolicySpec passwordPolicy = policy.getSpecification();
                 passwordHistorySize = passwordPolicy.getHistoryLength();
-            } catch (Throwable ignore) {
+            } catch (Exception ignore) {
                 // ignore exceptions
             }
 



Mime
View raw message