You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by kw...@apache.org on 2021/11/03 18:07:22 UTC

[sling-org-apache-sling-api] branch master updated: add missing null annotation

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

kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-api.git


The following commit(s) were added to refs/heads/master by this push:
     new c1ef62d  add missing null annotation
     new df03e11  Merge branch 'master' of git@github.com:apache/sling-org-apache-sling-api.git
c1ef62d is described below

commit c1ef62d4c2f1bfe67c69f9a77abf4c246ce38d77
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Wed Nov 3 19:06:36 2021 +0100

    add missing null annotation
---
 src/main/java/org/apache/sling/api/resource/ResourceWrapper.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/sling/api/resource/ResourceWrapper.java b/src/main/java/org/apache/sling/api/resource/ResourceWrapper.java
index 7d0d997..6beb2fe 100644
--- a/src/main/java/org/apache/sling/api/resource/ResourceWrapper.java
+++ b/src/main/java/org/apache/sling/api/resource/ResourceWrapper.java
@@ -31,7 +31,7 @@ import org.jetbrains.annotations.NotNull;
 public class ResourceWrapper implements Resource {
 
     /** the wrapped resource */
-    private final Resource resource;
+    private final @NotNull Resource resource;
 
     /**
      * Creates a new wrapper instance delegating all method calls to the given
@@ -48,7 +48,7 @@ public class ResourceWrapper implements Resource {
      * this class use this method to get the resource object.
      * @return The resource wrapped by this instance.
      */
-    public Resource getResource() {
+    public @NotNull Resource getResource() {
         return resource;
     }