You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ra...@apache.org on 2020/12/01 08:55:02 UTC

[sling-whiteboard] branch master updated: the resource should not be null

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 3c83cda  the resource should not be null
3c83cda is described below

commit 3c83cda858ae7965cbffdeeceb58913615870f17
Author: Radu Cotescu <ra...@apache.org>
AuthorDate: Tue Dec 1 09:54:18 2020 +0100

    the resource should not be null
---
 .../org/apache/sling/experimental/typesystem/service/TypeService.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/remote-content-api/type-system/src/main/java/org/apache/sling/experimental/typesystem/service/TypeService.java b/remote-content-api/type-system/src/main/java/org/apache/sling/experimental/typesystem/service/TypeService.java
index 1b81046..d00fb23 100644
--- a/remote-content-api/type-system/src/main/java/org/apache/sling/experimental/typesystem/service/TypeService.java
+++ b/remote-content-api/type-system/src/main/java/org/apache/sling/experimental/typesystem/service/TypeService.java
@@ -20,6 +20,7 @@ package org.apache.sling.experimental.typesystem.service;
 
 import org.apache.sling.api.resource.Resource;
 import org.apache.sling.experimental.typesystem.Type;
+import org.jetbrains.annotations.NotNull;
 import org.jetbrains.annotations.Nullable;
 import org.osgi.annotation.versioning.ProviderType;
 
@@ -36,6 +37,6 @@ public interface TypeService {
      * @return the {@code Type}, if one was defined; {@code null} otherwise
      */
     @Nullable
-    Type getType(Resource resource);
+    Type getType(@NotNull Resource resource);
 
 }