This is an automated email from the ASF dual-hosted git repository.
dklco pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-event-api.git
The following commit(s) were added to refs/heads/master by this push:
new 595bb1d SLING-11831 - Update api to use @NotNull annotations
new 306688f Merge pull request #4 from andrewmkhoury/SLING-11831-2
595bb1d is described below
commit 595bb1d5e261163d13794191429083bf18ceafe0
Author: Andrew Khoury <[email protected]>
AuthorDate: Tue May 2 15:35:10 2023 -0700
SLING-11831 - Update api to use @NotNull annotations
---
pom.xml | 5 +++++
.../org/apache/sling/event/jobs/consumer/JobExecutionContext.java | 5 +++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index a453864..8c3914b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -61,5 +61,10 @@
<artifactId>org.osgi.annotation.versioning</artifactId>
<scope>provided</scope>
</dependency>
+ <dependency>
+ <groupId>org.jetbrains</groupId>
+ <artifactId>annotations</artifactId>
+ <scope>compile</scope>
+ </dependency>
</dependencies>
</project>
diff --git
a/src/main/java/org/apache/sling/event/jobs/consumer/JobExecutionContext.java
b/src/main/java/org/apache/sling/event/jobs/consumer/JobExecutionContext.java
index 5f04d9a..dc3b589 100644
---
a/src/main/java/org/apache/sling/event/jobs/consumer/JobExecutionContext.java
+++
b/src/main/java/org/apache/sling/event/jobs/consumer/JobExecutionContext.java
@@ -18,6 +18,7 @@
*/
package org.apache.sling.event.jobs.consumer;
+import org.jetbrains.annotations.NotNull;
import org.osgi.annotation.versioning.ProviderType;
/**
@@ -90,7 +91,7 @@ public interface JobExecutionContext {
* @param name The property name
* @param value The property value
*/
- void setProperty(String name, Object value);
+ void setProperty(@NotNull String name, @NotNull Object value);
/**
* Log a message.
@@ -105,7 +106,7 @@ public interface JobExecutionContext {
* @param message A message
* @param args Additional arguments
*/
- void log(String message, Object...args);
+ void log(@NotNull String message, Object...args);
/**
* Build a result for the processing.