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

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


The following commit(s) were added to refs/heads/master by this push:
     new 9a62440  add private constructors to utility classes
9a62440 is described below

commit 9a62440ea4ef0bff09349fe34e11cdbb197c98f9
Author: Justin Mclean <jmcl...@apache.org>
AuthorDate: Fri Jan 12 11:47:03 2018 +1100

    add private constructors to utility classes
---
 .../apache-camel/src/main/java/org/apache/plc4x/camel/Constants.java | 5 +++++
 .../src/main/java/org/apache/plc4x/edgent/PlcFunctions.java          | 4 ++++
 .../utils/src/main/java/org/apache/plc4x/java/utils/PcapngUtils.java | 4 ++++
 3 files changed, 13 insertions(+)

diff --git 
a/integrations/apache-camel/src/main/java/org/apache/plc4x/camel/Constants.java 
b/integrations/apache-camel/src/main/java/org/apache/plc4x/camel/Constants.java
index 65faa58..ca9dedd 100644
--- 
a/integrations/apache-camel/src/main/java/org/apache/plc4x/camel/Constants.java
+++ 
b/integrations/apache-camel/src/main/java/org/apache/plc4x/camel/Constants.java
@@ -19,5 +19,10 @@ under the License.
 package org.apache.plc4x.camel;
 
 public class Constants {
+
     public static final String ADDRESS_HEADER = "address";
+    
+    private Constants() {
+      throw new IllegalStateException("Utility class!");
+    }
 }
diff --git 
a/integrations/apache-edgent/src/main/java/org/apache/plc4x/edgent/PlcFunctions.java
 
b/integrations/apache-edgent/src/main/java/org/apache/plc4x/edgent/PlcFunctions.java
index 3d1e197..f0d1b6c 100644
--- 
a/integrations/apache-edgent/src/main/java/org/apache/plc4x/edgent/PlcFunctions.java
+++ 
b/integrations/apache-edgent/src/main/java/org/apache/plc4x/edgent/PlcFunctions.java
@@ -69,6 +69,10 @@ import com.google.gson.JsonObject;
  */
 public class PlcFunctions {
 
+  private PlcFunctions() {
+    throw new IllegalStateException("Utility class!");
+  }
+
   /**
    * Create a new Edgent {@link Supplier} to read data from the 
    * plc device.
diff --git 
a/plc4j/protocols/utils/src/main/java/org/apache/plc4x/java/utils/PcapngUtils.java
 
b/plc4j/protocols/utils/src/main/java/org/apache/plc4x/java/utils/PcapngUtils.java
index 2b2f118..1f32620 100644
--- 
a/plc4j/protocols/utils/src/main/java/org/apache/plc4x/java/utils/PcapngUtils.java
+++ 
b/plc4j/protocols/utils/src/main/java/org/apache/plc4x/java/utils/PcapngUtils.java
@@ -28,6 +28,10 @@ import java.nio.ByteBuffer;
 
 public class PcapngUtils {
 
+    private PcapngUtils() {
+      throw new IllegalStateException("Utility class!");
+    }
+
     public static void dumpPacket(ByteBuffer data, int length, String name) 
throws IOException {
         ByteArrayOutputStream out = new ByteArrayOutputStream();
         DataOutputStream dos = new DataOutputStream(out);

-- 
To stop receiving notification emails like this one, please contact
['"commits@plc4x.apache.org" <commits@plc4x.apache.org>'].

Reply via email to