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 11:14:42 UTC
[incubator-plc4x] 05/06: use parseInt instead of valueOf
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 5dd6ab5892d83581393a847c21b5168d24f4efb6
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Fri Jan 12 12:08:59 2018 +0100
use parseInt instead of valueOf
---
.../s7/src/main/java/org/apache/plc4x/java/s7/S7PlcDriver.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plc4j/protocols/s7/src/main/java/org/apache/plc4x/java/s7/S7PlcDriver.java b/plc4j/protocols/s7/src/main/java/org/apache/plc4x/java/s7/S7PlcDriver.java
index 86127cc..9156f18 100644
--- a/plc4j/protocols/s7/src/main/java/org/apache/plc4x/java/s7/S7PlcDriver.java
+++ b/plc4j/protocols/s7/src/main/java/org/apache/plc4x/java/s7/S7PlcDriver.java
@@ -56,8 +56,8 @@ public class S7PlcDriver implements PlcDriver {
"Connection url doesn't match the format 's7://{host|ip}/{rack}/{slot}'");
}
String host = matcher.group("host");
- int rack = Integer.valueOf(matcher.group("rack"));
- int slot = Integer.valueOf(matcher.group("slot"));
+ int rack = Integer.parseInt(matcher.group("rack"));
+ int slot = Integer.parseInt(matcher.group("slot"));
return new S7PlcConnection(host, rack, slot);
}
--
To stop receiving notification emails like this one, please contact
"commits@plc4x.apache.org" <co...@plc4x.apache.org>.