public int doLogic() throws Exception {try {Locale locale = getRunData().getLocale();if (locale == null) throw new RuntimeException("Locale must be set with the NewLocale task!");Analyzer analyzer = createAnalyzer(locale, impl);getRunData().setAnalyzer(analyzer);System.out.println("Changed Analyzer to: "+ analyzer.getClass().getName() + "(" + locale + ")");} catch (Exception e) {throw new RuntimeException("Error creating Analyzer: impl=" + impl, e);}return 1;}
public override int DoLogic(){try{CultureInfo locale = RunData.Locale;if (locale == null) throw new Exception("Locale must be set with the NewLocale task!");Analyzer analyzer = CreateAnalyzer(locale, impl);RunData.Analyzer = analyzer;Console.WriteLine("Changed Analyzer to: "+ analyzer.GetType().Name + "(" + locale + ")");}catch (Exception e){throw new Exception("Error creating Analyzer: impl=" + impl, e);}return 1;}