sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tma...@apache.org
Subject svn commit: r1782014 - /sling/trunk/contrib/extensions/distribution/core/src/main/java/org/apache/sling/distribution/monitor/impl/MonitoringDistributionPackageBuilder.java
Date Tue, 07 Feb 2017 15:47:02 GMT
Author: tmaret
Date: Tue Feb  7 15:47:02 2017
New Revision: 1782014

URL: http://svn.apache.org/viewvc?rev=1782014&view=rev
Log:
trivial - add missing inherited annotations to MonitoringDistributionPackageBuilder

Modified:
    sling/trunk/contrib/extensions/distribution/core/src/main/java/org/apache/sling/distribution/monitor/impl/MonitoringDistributionPackageBuilder.java

Modified: sling/trunk/contrib/extensions/distribution/core/src/main/java/org/apache/sling/distribution/monitor/impl/MonitoringDistributionPackageBuilder.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/distribution/core/src/main/java/org/apache/sling/distribution/monitor/impl/MonitoringDistributionPackageBuilder.java?rev=1782014&r1=1782013&r2=1782014&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/distribution/core/src/main/java/org/apache/sling/distribution/monitor/impl/MonitoringDistributionPackageBuilder.java
(original)
+++ sling/trunk/contrib/extensions/distribution/core/src/main/java/org/apache/sling/distribution/monitor/impl/MonitoringDistributionPackageBuilder.java
Tue Feb  7 15:47:02 2017
@@ -24,6 +24,7 @@ import java.util.Hashtable;
 import java.util.Queue;
 import java.util.concurrent.ArrayBlockingQueue;
 
+import javax.annotation.Nonnull;
 import javax.management.ObjectName;
 
 import org.apache.sling.api.resource.ResourceResolver;
@@ -58,31 +59,34 @@ public final class MonitoringDistributio
         return wrapped.getType();
     }
 
+    @Nonnull
     @Override
-    public DistributionPackage createPackage(ResourceResolver resourceResolver, DistributionRequest
request) throws DistributionException {
+    public DistributionPackage createPackage(@Nonnull ResourceResolver resourceResolver,
@Nonnull DistributionRequest request) throws DistributionException {
         long start = System.currentTimeMillis();
         DistributionPackage distributionPackage = wrapped.createPackage(resourceResolver,
request);
         registerDistributionPackageMBean(start, distributionPackage);
         return distributionPackage;
     }
 
+    @Nonnull
     @Override
-    public DistributionPackage readPackage(ResourceResolver resourceResolver, InputStream
stream) throws DistributionException {
+    public DistributionPackage readPackage(@Nonnull ResourceResolver resourceResolver, @Nonnull
InputStream stream) throws DistributionException {
         return wrapped.readPackage(resourceResolver, stream);
     }
 
     @Override
-    public DistributionPackage getPackage(ResourceResolver resourceResolver, String id) throws
DistributionException {
+    public DistributionPackage getPackage(@Nonnull ResourceResolver resourceResolver, @Nonnull
String id) throws DistributionException {
         return wrapped.getPackage(resourceResolver, id);
     }
 
     @Override
-    public boolean installPackage(ResourceResolver resourceResolver, DistributionPackage
distributionPackage) throws DistributionException {
+    public boolean installPackage(@Nonnull ResourceResolver resourceResolver, @Nonnull DistributionPackage
distributionPackage) throws DistributionException {
         return wrapped.installPackage(resourceResolver, distributionPackage);
     }
 
+    @Nonnull
     @Override
-    public DistributionPackageInfo installPackage(ResourceResolver resourceResolver, InputStream
stream) throws DistributionException {
+    public DistributionPackageInfo installPackage(@Nonnull ResourceResolver resourceResolver,
@Nonnull InputStream stream) throws DistributionException {
         return wrapped.installPackage(resourceResolver, stream);
     }
 



Mime
View raw message