[강운덕] [LUCYSUS-1744] type casting이 잘못된 부분이 있어 수정.

git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@2567 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
Woonduk Kang
2013-10-21 06:15:28 +00:00
parent 993f475f20
commit 58449939ee
@@ -99,13 +99,13 @@ public class UdpDataSender implements DataSender {
protected void sendPacketN(Collection<TBase<?, ?>> dtoList) {
TBase<?, ?>[] dataList = (TBase<?, ?>[]) dtoList.toArray();
Object[] dataList = dtoList.toArray();
// for (Object data : dataList) {
// 이렇게 바꾸지 말것. copy해서 return 하는게 아니라 항상 max치가 나옴.
final int size = dtoList.size();
for (int i = 0; i < size; i++) {
try {
sendPacket(dataList[i]);
sendPacket((TBase<?, ?>)dataList[i]);
} catch (Throwable th) {
logger.warn("Unexpected Error. Cause:" + th.getMessage(), th);
}