Skip to content

Commit

Permalink
Merge pull request #628 from hazendaz/master
Browse files Browse the repository at this point in the history
[cleanup] Use integer.valueof instead of new integer
  • Loading branch information
hazendaz authored Nov 4, 2023
2 parents 830a63d + 6269d35 commit f36d3cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/org/mybatis/guice/AddressConverter.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public Address convert(String input) throws ParseException {
Matcher matcher = pattern.matcher(input);
if (matcher.matches()) {
Address address = new Address();
address.setNumber(new Integer(matcher.group(1)));
address.setNumber(Integer.valueOf(matcher.group(1)));
address.setStreet(matcher.group(2));
return address;
} else {
Expand Down

0 comments on commit f36d3cd

Please sign in to comment.