Use parseInt without substring method

This commit is contained in:
김보배(Bobae Kim)/Platform Engineering팀/11ST
2021-11-12 14:53:27 +09:00
committed by Arjen Poutsma
parent 79d3f5c64c
commit 804b343cab
13 changed files with 24 additions and 24 deletions

View File

@@ -707,7 +707,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
idx = host.indexOf(':');
}
if (idx != -1) {
return Integer.parseInt(host.substring(idx + 1));
return Integer.parseInt(host, idx + 1, host.length(), 10);
}
}