From e527a340051b55a6f05d05f397d82ec797165163 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 3 May 2013 14:49:28 +0200 Subject: Java cleanup, convert more Vector to ArrayList Change-Id: Icb807382eaf50f515f2c9dfada0c061414baed33 --- embeddedobj/test/Container1/EmbedContApp.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'embeddedobj') diff --git a/embeddedobj/test/Container1/EmbedContApp.java b/embeddedobj/test/Container1/EmbedContApp.java index 89dc27cf397f..4481a980dcd0 100644 --- a/embeddedobj/test/Container1/EmbedContApp.java +++ b/embeddedobj/test/Container1/EmbedContApp.java @@ -174,7 +174,7 @@ public class EmbedContApp extends Applet } catch( Exception e ) { System.exit( 0 ); } m_oActionsNumberLock = new Object(); - m_aActionsList = new Vector(); + m_aActionsList = new ArrayList(); m_oInHandlerLock = new Object(); m_oImageLock = new Object(); @@ -484,7 +484,7 @@ public class EmbedContApp extends Applet { for( int nInd = 0; nInd < m_aActionsList.size(); nInd++ ) { - ActionObject aAction = ( ActionObject ) m_aActionsList.get( nInd ); + ActionObject aAction = m_aActionsList.get( nInd ); if ( aAction != null ) { if ( aAction.m_nID == DESTROY ) @@ -784,7 +784,7 @@ public class EmbedContApp extends Applet m_aActionsList.add( new ActionObject( nActionID, sParam ) ); else { - ActionObject aAction = ( ActionObject ) m_aActionsList.get( nSize - 1 ); + ActionObject aAction = m_aActionsList.get( nSize - 1 ); if ( aAction != null && aAction.m_nID != DESTROY ) m_aActionsList.add( new ActionObject( nActionID, sParam ) ); } -- cgit