Skip to content

Commit 12cca34

Browse files
Missing docs in kafka and vertx implementation (#183)
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
1 parent 83d9045 commit 12cca34

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

http/vertx/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@
3737
</properties>
3838

3939
<dependencies>
40+
<dependency>
41+
<groupId>com.google.code.findbugs</groupId>
42+
<artifactId>jsr305</artifactId>
43+
<version>3.0.2</version>
44+
<scope>provided</scope>
45+
<optional>true</optional>
46+
</dependency>
4047
<dependency>
4148
<groupId>io.cloudevents</groupId>
4249
<artifactId>cloudevents-core</artifactId>

http/vertx/src/main/java/io/cloudevents/http/vertx/VertxMessageFactory.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@
1414
import io.vertx.core.buffer.Buffer;
1515
import io.vertx.core.http.*;
1616

17+
import javax.annotation.ParametersAreNonnullByDefault;
1718
import java.util.function.Consumer;
1819

1920
/**
2021
* This class provides a collection of methods to create {@link io.cloudevents.core.message.MessageReader}
2122
* and {@link io.cloudevents.core.message.MessageWriter} for Vert.x HTTP Client and Server.
2223
*/
24+
@ParametersAreNonnullByDefault
2325
public final class VertxMessageFactory {
2426

2527
private VertxMessageFactory() {

kafka/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@
3636
</properties>
3737

3838
<dependencies>
39+
<dependency>
40+
<groupId>com.google.code.findbugs</groupId>
41+
<artifactId>jsr305</artifactId>
42+
<version>3.0.2</version>
43+
<scope>provided</scope>
44+
<optional>true</optional>
45+
</dependency>
3946
<dependency>
4047
<groupId>io.cloudevents</groupId>
4148
<artifactId>cloudevents-core</artifactId>

kafka/src/main/java/io/cloudevents/kafka/KafkaMessageFactory.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,13 @@
3030
import org.apache.kafka.clients.producer.ProducerRecord;
3131
import org.apache.kafka.common.header.Headers;
3232

33+
import javax.annotation.ParametersAreNonnullByDefault;
34+
3335
/**
3436
* This class provides a collection of methods to create {@link io.cloudevents.core.message.MessageReader}
3537
* and {@link io.cloudevents.core.message.MessageWriter} for Kafka Producer and Consumer.
3638
*/
39+
@ParametersAreNonnullByDefault
3740
public final class KafkaMessageFactory {
3841

3942
private KafkaMessageFactory() {

0 commit comments

Comments
 (0)