mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-16 16:28:48 +10:00
[강운덕] [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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user