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

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


The following commit(s) were added to refs/heads/master by this push:
     new 8f0b1fc  SLING-7798 Switch from JSR-305 annotations to JetBrains 
Nullable/NotNull annotations
8f0b1fc is described below

commit 8f0b1fcc9e21fd148c81ef8d1efc2af5ccbd8865
Author: Oliver Lietz <o...@apache.org>
AuthorDate: Sat Aug 11 13:51:34 2018 +0200

    SLING-7798 Switch from JSR-305 annotations to JetBrains Nullable/NotNull 
annotations
---
 pom.xml                                                           | 8 ++++----
 .../java/org/apache/sling/resource/presence/ResourcePresence.java | 2 ++
 .../java/org/apache/sling/resource/presence/package-info.java     | 2 +-
 3 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/pom.xml b/pom.xml
index f38362f..fc20ee4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,7 +24,7 @@
   <parent>
     <groupId>org.apache.sling</groupId>
     <artifactId>sling</artifactId>
-    <version>33</version>
+    <version>34</version>
     <relativePath />
   </parent>
 
@@ -106,10 +106,10 @@
       <version>1.0.0</version>
       <scope>provided</scope>
     </dependency>
-    <!-- jsr305 -->
+    <!-- nullability -->
     <dependency>
-      <groupId>com.google.code.findbugs</groupId>
-      <artifactId>jsr305</artifactId>
+      <groupId>org.jetbrains</groupId>
+      <artifactId>annotations</artifactId>
       <scope>provided</scope>
     </dependency>
     <!-- logging -->
diff --git 
a/src/main/java/org/apache/sling/resource/presence/ResourcePresence.java 
b/src/main/java/org/apache/sling/resource/presence/ResourcePresence.java
index 71b6a9d..d76fd8e 100644
--- a/src/main/java/org/apache/sling/resource/presence/ResourcePresence.java
+++ b/src/main/java/org/apache/sling/resource/presence/ResourcePresence.java
@@ -18,11 +18,13 @@
  */
 package org.apache.sling.resource.presence;
 
+import org.jetbrains.annotations.NotNull;
 import org.osgi.annotation.versioning.ProviderType;
 
 @ProviderType
 public interface ResourcePresence {
 
+    @NotNull
     String getPath();
 
 }
diff --git a/src/main/java/org/apache/sling/resource/presence/package-info.java 
b/src/main/java/org/apache/sling/resource/presence/package-info.java
index 0eec5e0..29e052a 100644
--- a/src/main/java/org/apache/sling/resource/presence/package-info.java
+++ b/src/main/java/org/apache/sling/resource/presence/package-info.java
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-@Version("1.0.0")
+@Version("1.0.1")
 package org.apache.sling.resource.presence;
 
 import org.osgi.annotation.versioning.Version;

Reply via email to