Skip to content
Permalink
Browse files

fix: address static analysis warning correctly this time

  • Loading branch information...
rhwood committed Jul 16, 2019
1 parent 73ccf49 commit 1739bc6b418ef1835959a8737708fb25e7027ded
Showing with 2 additions and 2 deletions.
  1. +2 −2 java/src/jmri/jmrix/lenz/XNetSensorManager.java
@@ -134,7 +134,7 @@ public String validateSystemNameFormat(String name, Locale locale) {
Bundle.getMessage(locale, "SystemNameInvalidAddress", name));
}
try {
int address = Integer.valueOf(parts[0]);
int address = Integer.parseInt(parts[0]);
if (address < 1 || address > 127) {
throw new NamedBean.BadSystemNameException(
Bundle.getMessage(Locale.ENGLISH, "SystemNameInvalidModule", name, parts[0]),
@@ -146,7 +146,7 @@ public String validateSystemNameFormat(String name, Locale locale) {
Bundle.getMessage(locale, "SystemNameInvalidModule", name, parts[0]));
}
try {
int bit = Integer.valueOf(parts[1]);
int bit = Integer.parseInt(parts[1]);
if (bit < 1 || bit > 8) {
throw new NamedBean.BadSystemNameException(
Bundle.getMessage(Locale.ENGLISH, "SystemNameInvalidBit", name, parts[1]),

0 comments on commit 1739bc6

Please sign in to comment.
You can’t perform that action at this time.