< prev index next >

src/com/sun/javatest/tool/DesktopManager.java

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

*** 109,128 **** } } private static class SetLafCommand extends Command { ! private SetLafCommand(ListIterator argIter, CommandContext ctx) throws Fault { super("laf"); if (!argIter.hasNext()) { throw new Fault(i18n, "dt.opts.laf.missingArg"); } int laf; ! String lafName = (String) argIter.next(); if ("nimbus".equalsIgnoreCase(lafName)) { laf = CommandContext.NIMBUS_LAF; } else if ("metal".equalsIgnoreCase(lafName)) { laf = CommandContext.METAL_LAF; } else if ("system".equalsIgnoreCase(lafName) || "sys".equalsIgnoreCase(lafName)) { --- 109,128 ---- } } private static class SetLafCommand extends Command { ! private SetLafCommand(ListIterator<String> argIter, CommandContext ctx) throws Fault { super("laf"); if (!argIter.hasNext()) { throw new Fault(i18n, "dt.opts.laf.missingArg"); } int laf; ! String lafName = argIter.next(); if ("nimbus".equalsIgnoreCase(lafName)) { laf = CommandContext.NIMBUS_LAF; } else if ("metal".equalsIgnoreCase(lafName)) { laf = CommandContext.METAL_LAF; } else if ("system".equalsIgnoreCase(lafName) || "sys".equalsIgnoreCase(lafName)) {
< prev index next >