You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2018/10/24 20:29:57 UTC

[incubator-plc4x] 01/07: - Resolving some simple Sonar findings

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

cdutz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-plc4x.git

commit b8a391e27dd6a2ecffa4051b1d2624f1d96cfb3b
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Wed Oct 24 12:30:18 2018 +0100

    - Resolving some simple Sonar findings
---
 .../apache/plc4x/java/base/messages/DefaultPlcProprietaryRequest.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/plc4j/protocols/driver-bases/base/src/main/java/org/apache/plc4x/java/base/messages/DefaultPlcProprietaryRequest.java b/plc4j/protocols/driver-bases/base/src/main/java/org/apache/plc4x/java/base/messages/DefaultPlcProprietaryRequest.java
index 4e73899..fc06a26 100644
--- a/plc4j/protocols/driver-bases/base/src/main/java/org/apache/plc4x/java/base/messages/DefaultPlcProprietaryRequest.java
+++ b/plc4j/protocols/driver-bases/base/src/main/java/org/apache/plc4x/java/base/messages/DefaultPlcProprietaryRequest.java
@@ -18,6 +18,7 @@
  */
 package org.apache.plc4x.java.base.messages;
 
+import org.apache.plc4x.java.api.exceptions.PlcRuntimeException;
 import org.apache.plc4x.java.api.messages.PlcResponse;
 
 import java.util.concurrent.CompletableFuture;
@@ -26,7 +27,7 @@ public class DefaultPlcProprietaryRequest<REQUEST> implements InternalPlcProprie
 
     @Override
     public CompletableFuture<PlcResponse> execute() {
-        throw new RuntimeException("not supported"); // TODO: figure out what to do with this
+        throw new PlcRuntimeException("not supported"); // TODO: figure out what to do with this
     }
 
     private REQUEST proprietaryRequest;