< prev index next >

src/com/sun/javatest/agent/AgentApplet.java

Print this page
rev 145 : 7902237: Fixing raw use of parameterized class
Reviewed-by: jjg

*** 126,136 **** PassiveModeOptions pmo = new PassiveModeOptions(); pmo.setPort(passivePort); ModeOptions smo = null; try { ! Class serial = Class.forName("com.sun.javatest.agent.SerialPortModeOptions"); smo = (ModeOptions)serial.newInstance(); } catch (Exception e) { System.err.println("There is no support for serial port"); } if (serialPort != null){ --- 126,136 ---- PassiveModeOptions pmo = new PassiveModeOptions(); pmo.setPort(passivePort); ModeOptions smo = null; try { ! Class<?> serial = Class.forName("com.sun.javatest.agent.SerialPortModeOptions"); smo = (ModeOptions)serial.newInstance(); } catch (Exception e) { System.err.println("There is no support for serial port"); } if (serialPort != null){
*** 161,171 **** }; AgentPanel ap = new AgentPanel(modeOptions, mapReader); if (observerClassName != null) { try { ! Class observerClass = Class.forName(observerClassName); Agent.Observer observer = (Agent.Observer)(observerClass.newInstance()); ap.addObserver(observer); } catch (ClassCastException e) { showStatus("observer is not of type " + --- 161,171 ---- }; AgentPanel ap = new AgentPanel(modeOptions, mapReader); if (observerClassName != null) { try { ! Class<?> observerClass = Class.forName(observerClassName); Agent.Observer observer = (Agent.Observer)(observerClass.newInstance()); ap.addObserver(observer); } catch (ClassCastException e) { showStatus("observer is not of type " +
< prev index next >