mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-17 16:56:15 +10:00
[강운덕] [LUCYSUS-1744] null, range체크 강화. ArrayUtils에서 range경계선에서 문자열 부정확하게 생성되는 부분이 있어 수정.
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-profiler-bootstrap/trunk@2802 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
@@ -24,6 +24,9 @@ public final class StringUtils {
|
||||
if (str == null) {
|
||||
return "null";
|
||||
}
|
||||
if (length < 0) {
|
||||
throw new IllegalArgumentException("negative length:" + length);
|
||||
}
|
||||
if (str.length() > length) {
|
||||
StringBuilder buffer = new StringBuilder(length + 10);
|
||||
buffer.append(str.substring(0, length));
|
||||
|
||||
Reference in New Issue
Block a user