jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [9/9] jena git commit: reformat+comment
Date Fri, 15 Apr 2016 16:49:51 GMT
reformat+comment


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

Branch: refs/heads/master
Commit: d6609fad24883000fb8e57f67802de14043167c5
Parents: c4b932a
Author: Andy Seaborne <andy@apache.org>
Authored: Fri Apr 15 17:24:42 2016 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Fri Apr 15 17:24:42 2016 +0100

----------------------------------------------------------------------
 .../java/org/apache/jena/system/JenaSubsystemRegistryBasic.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/d6609fad/jena-core/src/main/java/org/apache/jena/system/JenaSubsystemRegistryBasic.java
----------------------------------------------------------------------
diff --git a/jena-core/src/main/java/org/apache/jena/system/JenaSubsystemRegistryBasic.java
b/jena-core/src/main/java/org/apache/jena/system/JenaSubsystemRegistryBasic.java
index db37924..52b6692 100644
--- a/jena-core/src/main/java/org/apache/jena/system/JenaSubsystemRegistryBasic.java
+++ b/jena-core/src/main/java/org/apache/jena/system/JenaSubsystemRegistryBasic.java
@@ -40,7 +40,9 @@ public class JenaSubsystemRegistryBasic implements JenaSubsystemRegistry
{
     public void load() {
         synchronized (registryLock) {
             // Find subsystems asking for initialization. 
-            ServiceLoader<JenaSubsystemLifecycle> sl = ServiceLoader.load(JenaSubsystemLifecycle.class,this.getClass().getClassLoader())
;
+            ServiceLoader<JenaSubsystemLifecycle> sl = 
+                // Use this->classloader form : better for OSGi 
+                ServiceLoader.load(JenaSubsystemLifecycle.class, this.getClass().getClassLoader())
;
             sl.forEach(this::add) ;
         }
     }


Mime
View raw message