You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2018/01/11 14:24:19 UTC
[incubator-plc4x] branch refactoring/java_generify updated: added
missing Objects.requireNonNull assertion
This is an automated email from the ASF dual-hosted git repository.
sruehl pushed a commit to branch refactoring/java_generify
in repository https://gitbox.apache.org/repos/asf/incubator-plc4x.git
The following commit(s) were added to refs/heads/refactoring/java_generify by this push:
new be5fec1 added missing Objects.requireNonNull assertion
be5fec1 is described below
commit be5fec1401673181dd812956b6dbbf106d02a237
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Thu Jan 11 15:24:16 2018 +0100
added missing Objects.requireNonNull assertion
---
.../src/main/java/org/apache/plc4x/java/api/connection/PlcWriter.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/plc4j/api/src/main/java/org/apache/plc4x/java/api/connection/PlcWriter.java b/plc4j/api/src/main/java/org/apache/plc4x/java/api/connection/PlcWriter.java
index adb81a4..cfc6257 100644
--- a/plc4j/api/src/main/java/org/apache/plc4x/java/api/connection/PlcWriter.java
+++ b/plc4j/api/src/main/java/org/apache/plc4x/java/api/connection/PlcWriter.java
@@ -25,6 +25,7 @@ import org.apache.plc4x.java.api.messages.specific.TypeSafePlcReadResponse;
import org.apache.plc4x.java.api.messages.specific.TypeSafePlcWriteRequest;
import org.apache.plc4x.java.api.messages.specific.TypeSafePlcWriteResponse;
+import java.util.Objects;
import java.util.concurrent.CompletableFuture;
/**
@@ -49,6 +50,7 @@ public interface PlcWriter {
*/
@SuppressWarnings("unchecked")
default <T> CompletableFuture<TypeSafePlcWriteResponse<T>> write(TypeSafePlcWriteRequest<T> writeRequest) {
+ Objects.requireNonNull(writeRequest);
return write((PlcWriteRequest) writeRequest).thenApply(TypeSafePlcWriteResponse::new);
}
--
To stop receiving notification emails like this one, please contact
['"commits@plc4x.apache.org" <co...@plc4x.apache.org>'].