SLING-4075 - added some tests, minor static analysis related fixes
authorTommaso Teofili <tommaso@apache.org>
Tue, 11 Apr 2017 09:04:05 +0000 (09:04 +0000)
committerTommaso Teofili <tommaso@apache.org>
Tue, 11 Apr 2017 09:04:05 +0000 (09:04 +0000)
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1790941 13f79535-47bb-0310-9956-ffa450edef68

src/main/java/org/apache/sling/distribution/DistributionRequest.java
src/main/java/org/apache/sling/distribution/event/DistributionEventProperties.java
src/main/java/org/apache/sling/distribution/event/DistributionEventTopics.java

index 0031dab..82af2ce 100644 (file)
@@ -36,7 +36,7 @@ public interface DistributionRequest {
      * @return the type of the request as a {@link DistributionRequestType}
      */
     @Nonnull
-    public DistributionRequestType getRequestType();
+    DistributionRequestType getRequestType();
 
     /**
      * Get the root paths for this distribution request
index 743aba3..a70f9b2 100644 (file)
@@ -30,21 +30,21 @@ public interface DistributionEventProperties {
     /**
      * property containing the name of component generating the event
      */
-    public static final String DISTRIBUTION_COMPONENT_NAME = "distribution.component.name";
+    String DISTRIBUTION_COMPONENT_NAME = "distribution.component.name";
 
 
     /**
      * property containing the kind of the component generating the event
      */
-    public static final String DISTRIBUTION_COMPONENT_KIND= "distribution.component.kind";
+    String DISTRIBUTION_COMPONENT_KIND= "distribution.component.kind";
 
     /**
      * property containing the type of the distribution request
      */
-    public static final String DISTRIBUTION_TYPE = "distribution.type";
+    String DISTRIBUTION_TYPE = "distribution.type";
 
     /**
      * property containing the type of the distribution paths
      */
-    public static final String DISTRIBUTION_PATHS= "distribution.paths";
+    String DISTRIBUTION_PATHS= "distribution.paths";
 }
index f06feb2..8a75dda 100644 (file)
@@ -26,26 +26,26 @@ import aQute.bnd.annotation.ProviderType;
 @ProviderType
 public interface DistributionEventTopics {
 
-    public static final String EVENT_BASE = "org/apache/sling/distribution";
+    String EVENT_BASE = "org/apache/sling/distribution";
 
     /**
      * event for package created
      */
-    public static final String AGENT_PACKAGE_CREATED = EVENT_BASE + "/agent/package/created";
+    String AGENT_PACKAGE_CREATED = EVENT_BASE + "/agent/package/created";
 
     /**
      * event for package queued
      */
-    public static final String AGENT_PACKAGE_QUEUED = EVENT_BASE + "/agent/package/queued";
+    String AGENT_PACKAGE_QUEUED = EVENT_BASE + "/agent/package/queued";
 
     /**
      * event for package distributed
      */
-    public static final String AGENT_PACKAGE_DISTRIBUTED = EVENT_BASE + "/agent/package/distributed";
+    String AGENT_PACKAGE_DISTRIBUTED = EVENT_BASE + "/agent/package/distributed";
 
 
     /**
      * event for package imported
      */
-    public static final String IMPORTER_PACKAGE_IMPORTED = EVENT_BASE + "/importer/package/imported";
+    String IMPORTER_PACKAGE_IMPORTED = EVENT_BASE + "/importer/package/imported";
 }