You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by fm...@apache.org on 2015/10/23 12:29:37 UTC

[36/54] [abbrv] syncope git commit: refactoring of the domain stack, SYNCOPE-158

refactoring of the domain stack, SYNCOPE-158


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/171c0ae3
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/171c0ae3
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/171c0ae3

Branch: refs/heads/SYNCOPE-156
Commit: 171c0ae360d913c20c846a4a17983e5ca1540002
Parents: dfc1df4
Author: massi <ma...@tirasa.net>
Authored: Wed Oct 21 13:29:56 2015 +0200
Committer: massi <ma...@tirasa.net>
Committed: Wed Oct 21 13:29:56 2015 +0200

----------------------------------------------------------------------
 .../main/java/org/apache/syncope/client/cli/SyncopeAdm.java  | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/171c0ae3/client/cli/src/main/java/org/apache/syncope/client/cli/SyncopeAdm.java
----------------------------------------------------------------------
diff --git a/client/cli/src/main/java/org/apache/syncope/client/cli/SyncopeAdm.java b/client/cli/src/main/java/org/apache/syncope/client/cli/SyncopeAdm.java
index ea11a22..7308c57 100644
--- a/client/cli/src/main/java/org/apache/syncope/client/cli/SyncopeAdm.java
+++ b/client/cli/src/main/java/org/apache/syncope/client/cli/SyncopeAdm.java
@@ -28,7 +28,7 @@ public final class SyncopeAdm {
 
     private static final Logger LOG = LoggerFactory.getLogger(SyncopeAdm.class);
     
-    private static final ResultManager resultManager = new ResultManager();
+    private static final ResultManager RESULT_MANAGER = new ResultManager();
 
     public static void main(final String[] args) {
         LOG.debug("Starting with args \n");
@@ -50,12 +50,12 @@ public final class SyncopeAdm {
             System.out.println(helpMessage());
         } catch (final IllegalArgumentException ex) {
             LOG.error("Error in main", ex);
-            resultManager.generic(ex.getMessage());
+            RESULT_MANAGER.generic(ex.getMessage());
             if (!ex.getMessage().startsWith("It seems you")) {
                 System.out.println(helpMessage());
             }
         } catch (final ProcessingException e) {
-            resultManager.generic("Syncope server offline", e.getCause().getMessage());
+            RESULT_MANAGER.generic("Syncope server offline", e.getCause().getMessage());
         }
 
     }
@@ -73,7 +73,7 @@ public final class SyncopeAdm {
                 helpMessageBuilder.append("\n");
             }
         } catch (final IllegalAccessException | IllegalArgumentException | InstantiationException ex) {
-            resultManager.generic(ex.getMessage());
+            RESULT_MANAGER.generic(ex.getMessage());
         }
 
         return helpMessageBuilder.toString();