You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by jf...@apache.org on 2018/11/23 11:41:31 UTC

[incubator-plc4x] branch develop updated: Fixed Sonar Bug.

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

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


The following commit(s) were added to refs/heads/develop by this push:
     new 65ce7d8  Fixed Sonar Bug.
65ce7d8 is described below

commit 65ce7d8c4a0de09d4671f7e1d33e011033be9560
Author: Julian Feinauer <j....@pragmaticminds.de>
AuthorDate: Fri Nov 23 12:41:01 2018 +0100

    Fixed Sonar Bug.
---
 .../org/apache/plc4x/java/examples/integration/edgent/CliOptions.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/hello-integration-edgent/src/main/java/org/apache/plc4x/java/examples/integration/edgent/CliOptions.java b/examples/hello-integration-edgent/src/main/java/org/apache/plc4x/java/examples/integration/edgent/CliOptions.java
index 906f861..d049e52 100644
--- a/examples/hello-integration-edgent/src/main/java/org/apache/plc4x/java/examples/integration/edgent/CliOptions.java
+++ b/examples/hello-integration-edgent/src/main/java/org/apache/plc4x/java/examples/integration/edgent/CliOptions.java
@@ -64,7 +64,7 @@ public class CliOptions {
 
             String connectionString = commandLine.getOptionValue("connection-string");
             String fieldAddress = commandLine.getOptionValue("field-address");
-            int pollingInterval = Integer.valueOf(commandLine.getOptionValue("polling-interval"));
+            int pollingInterval = Integer.parseInt(commandLine.getOptionValue("polling-interval"));
 
             return new CliOptions(connectionString, fieldAddress, pollingInterval);
         } catch (ParseException e) {