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/12 10:26:49 UTC

[incubator-plc4x] 06/07: remove warning about unused cast

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

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

commit 8005b557233f76cb021fa1853004632bbe97cd2b
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Fri Jan 12 11:11:58 2018 +0100

    remove warning about unused cast
---
 .../java/org/apache/plc4x/edgent/PlcFunctionsTest.java     | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/integrations/apache-edgent/src/test/java/org/apache/plc4x/edgent/PlcFunctionsTest.java b/integrations/apache-edgent/src/test/java/org/apache/plc4x/edgent/PlcFunctionsTest.java
index 7d375d3..a175fad 100644
--- a/integrations/apache-edgent/src/test/java/org/apache/plc4x/edgent/PlcFunctionsTest.java
+++ b/integrations/apache-edgent/src/test/java/org/apache/plc4x/edgent/PlcFunctionsTest.java
@@ -58,7 +58,7 @@ public class PlcFunctionsTest {
     PlcConnectionAdapter adapter = new PlcConnectionAdapter(getMockConnection());
     MockConnection connection = (MockConnection) adapter.getConnection();
 
-    Supplier<?> supplier;
+    Supplier supplier;
     
     supplier = PlcFunctions.booleanSupplier(adapter, addressStr);
     PlcConnectionAdapterTest.checkSupplier(connection, address, (Supplier<Boolean>)supplier, true, false);
@@ -96,22 +96,22 @@ public class PlcFunctionsTest {
     Consumer<?> consumer;
     
     consumer = PlcFunctions.booleanConsumer(adapter, addressStr);
-    PlcConnectionAdapterTest.checkConsumer(connection, address, (Consumer<Boolean>)consumer, true, false);
+    PlcConnectionAdapterTest.checkConsumer(connection, address, consumer, true, false);
     
     consumer = PlcFunctions.byteConsumer(adapter, addressStr);
-    PlcConnectionAdapterTest.checkConsumer(connection, address, (Consumer<Byte>)consumer, (byte)0x1, (byte)0x2, (byte)0x3);
+    PlcConnectionAdapterTest.checkConsumer(connection, address, consumer, (byte)0x1, (byte)0x2, (byte)0x3);
     
     consumer = PlcFunctions.shortConsumer(adapter, addressStr);
-    PlcConnectionAdapterTest.checkConsumer(connection, address, (Consumer<Short>)consumer, (short)1, (short)2, (short)3);
+    PlcConnectionAdapterTest.checkConsumer(connection, address, consumer, (short)1, (short)2, (short)3);
 
     consumer = PlcFunctions.integerConsumer(adapter, addressStr);
-    PlcConnectionAdapterTest.checkConsumer(connection, address, (Consumer<Integer>)consumer, 1000, 1001, 1002);
+    PlcConnectionAdapterTest.checkConsumer(connection, address, consumer, 1000, 1001, 1002);
     
     consumer = PlcFunctions.floatConsumer(adapter, addressStr);
-    PlcConnectionAdapterTest.checkConsumer(connection, address, (Consumer<Float>)consumer, 1000.5f, 1001.5f, 1002.5f);
+    PlcConnectionAdapterTest.checkConsumer(connection, address, consumer, 1000.5f, 1001.5f, 1002.5f);
     
     consumer = PlcFunctions.stringConsumer(adapter, addressStr);
-    PlcConnectionAdapterTest.checkConsumer(connection, address, (Consumer<String>)consumer, "one", "two", "three");
+    PlcConnectionAdapterTest.checkConsumer(connection, address, consumer, "one", "two", "three");
     
     adapter.close();
   }

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