tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anat...@apache.org
Subject incubator-tamaya git commit: Fixed quality issues.
Date Thu, 03 Dec 2015 20:57:37 GMT
Repository: incubator-tamaya
Updated Branches:
  refs/heads/master ef38d6bd9 -> 6015ab711


Fixed quality issues.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/commit/6015ab71
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/tree/6015ab71
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/diff/6015ab71

Branch: refs/heads/master
Commit: 6015ab711161f7be8dddf833c45f5169650c66cc
Parents: ef38d6b
Author: anatole <anatole@apache.org>
Authored: Thu Dec 3 21:57:31 2015 +0100
Committer: anatole <anatole@apache.org>
Committed: Thu Dec 3 21:57:31 2015 +0100

----------------------------------------------------------------------
 .../java/org/apache/tamaya/inject/internal/InjectionHelper.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/6015ab71/modules/injection/src/main/java/org/apache/tamaya/inject/internal/InjectionHelper.java
----------------------------------------------------------------------
diff --git a/modules/injection/src/main/java/org/apache/tamaya/inject/internal/InjectionHelper.java
b/modules/injection/src/main/java/org/apache/tamaya/inject/internal/InjectionHelper.java
index fa4ba03..c6e59db 100644
--- a/modules/injection/src/main/java/org/apache/tamaya/inject/internal/InjectionHelper.java
+++ b/modules/injection/src/main/java/org/apache/tamaya/inject/internal/InjectionHelper.java
@@ -53,15 +53,14 @@ final class InjectionHelper {
 
     private static final boolean RESOLUTION_MODULE_LOADED = checkResolutionModuleLoaded();
 
-    private static boolean EVENTS_AVAILABLE = checkForEvents();
+    private static final boolean EVENTS_AVAILABLE = checkForEvents();
 
     private static boolean checkForEvents() {
         try{
             Class.forName("org.apache.tamaya.events.FrozenConfiguration");
             LOG.info("Detected tamaya-events is loaded, will trigger ConfigEvents...");
             return true;
-        }
-        catch(Exception e){
+        } catch(Exception e){
             LOG.info("Detected tamaya-events not found, will not trigger any ConfigEvents...");
             return false;
         }


Mime
View raw message