You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ss...@apache.org on 2019/05/21 16:38:51 UTC

[sling-org-apache-sling-caconfig-api] 01/01: SLING-8272 add @NonNull annotation to config name parameter as well

This is an automated email from the ASF dual-hosted git repository.

sseifert pushed a commit to branch feature/SLING-8272-node-existence-check
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-caconfig-api.git

commit 6dc6276761e2d5871de1836f9ea50407df2fd6ba
Author: sseifert <ss...@pro-vision.de>
AuthorDate: Tue May 21 18:36:44 2019 +0200

    SLING-8272 add @NonNull annotation to config name parameter as well
---
 src/main/java/org/apache/sling/caconfig/ConfigurationBuilder.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/sling/caconfig/ConfigurationBuilder.java b/src/main/java/org/apache/sling/caconfig/ConfigurationBuilder.java
index 063fe9c..c76be80 100644
--- a/src/main/java/org/apache/sling/caconfig/ConfigurationBuilder.java
+++ b/src/main/java/org/apache/sling/caconfig/ConfigurationBuilder.java
@@ -102,10 +102,11 @@ public interface ConfigurationBuilder {
      * This method checks for the configuration existence based on provided {@code configName} value.
      * It checks if the configuration is available for the context path in the current resource hierarchy and if not found, also
      * checks in the global fall-back paths configured via {@link org.apache.sling.caconfig.resource.impl.def.DefaultConfigurationResourceResolvingStrategy}
-     * which by default are {@code /conf/global}, {@code /apps/config} and {@code /libs/config}.This method does not consider the default values provided in
+     * which by default are {@code /conf/global}, {@code /apps/config} and {@code /libs/config}. This method does not consider the default values provided in
      * the configuration definition.
      * @param configName Name of the configuration
      * @return True/False based on configuration resource node existence.
      */
-    boolean has(String configName);
+    boolean has(@NotNull String configName);
+
 }