[강운덕] [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:
Woonduk Kang
2013-11-06 05:28:12 +00:00
parent c3c020b264
commit c960df2287
@@ -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));