jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1463961 - in /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/osgi: AbstractServiceTracker.java OsgiEditorProvider.java OsgiIndexHookProvider.java
Date Wed, 03 Apr 2013 12:31:30 GMT
Author: angela
Date: Wed Apr  3 12:31:30 2013
New Revision: 1463961

URL: http://svn.apache.org/r1463961
Log:
minor improvement

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/osgi/AbstractServiceTracker.java
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/osgi/OsgiEditorProvider.java
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/osgi/OsgiIndexHookProvider.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/osgi/AbstractServiceTracker.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/osgi/AbstractServiceTracker.java?rev=1463961&r1=1463960&r2=1463961&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/osgi/AbstractServiceTracker.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/osgi/AbstractServiceTracker.java
Wed Apr  3 12:31:30 2013
@@ -29,7 +29,7 @@ import org.osgi.util.tracker.ServiceTrac
 import org.osgi.util.tracker.ServiceTrackerCustomizer;
 
 /**
- * <code>AbstractServiceTracker</code> is a base class for the various OSGi based
+ * {@code AbstractServiceTracker} is a base class for the various OSGi based
  * providers.
  */
 public abstract class AbstractServiceTracker<T> implements ServiceTrackerCustomizer
{
@@ -38,8 +38,7 @@ public abstract class AbstractServiceTra
 
     private ServiceTracker tracker;
 
-    private final Map<ServiceReference, T> services =
-            new HashMap<ServiceReference, T>();
+    private final Map<ServiceReference, T> services = new HashMap<ServiceReference,
T>();
 
     private final Class<T> serviceClass;
 
@@ -49,8 +48,7 @@ public abstract class AbstractServiceTra
 
     public void start(BundleContext bundleContext) throws Exception {
         context = bundleContext;
-        tracker = new ServiceTracker(
-                bundleContext, serviceClass.getName(), this);
+        tracker = new ServiceTracker(bundleContext, serviceClass.getName(), this);
         tracker.open();
     }
 
@@ -59,7 +57,7 @@ public abstract class AbstractServiceTra
     }
 
     /**
-     * Returns all services of type <code>T</code> currently available.
+     * Returns all services of type {@code T} currently available.
      *
      * @return services currently available.
      */

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/osgi/OsgiEditorProvider.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/osgi/OsgiEditorProvider.java?rev=1463961&r1=1463960&r2=1463961&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/osgi/OsgiEditorProvider.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/osgi/OsgiEditorProvider.java
Wed Apr  3 12:31:30 2013
@@ -40,7 +40,8 @@ public class OsgiEditorProvider
 
     //----------------------------------------------------< EditorProvider >--
 
-    @Override @CheckForNull
+    @Override
+    @CheckForNull
     public Editor getRootEditor(
             NodeState before, NodeState after, NodeBuilder builder) {
         EditorProvider provider =

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/osgi/OsgiIndexHookProvider.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/osgi/OsgiIndexHookProvider.java?rev=1463961&r1=1463960&r2=1463961&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/osgi/OsgiIndexHookProvider.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/osgi/OsgiIndexHookProvider.java
Wed Apr  3 12:31:30 2013
@@ -38,11 +38,10 @@ public class OsgiIndexHookProvider exten
         super(IndexHookProvider.class);
     }
 
-    @Override @Nonnull
-    public List<? extends IndexHook> getIndexHooks(String type,
-            NodeBuilder builder) {
-        IndexHookProvider composite = CompositeIndexHookProvider
-                .compose(getServices());
+    @Override
+    @Nonnull
+    public List<? extends IndexHook> getIndexHooks(String type, NodeBuilder builder)
{
+        IndexHookProvider composite = CompositeIndexHookProvider.compose(getServices());
         return composite.getIndexHooks(type, builder);
     }
 



Mime
View raw message