~eloisant/play/httpcommons

« back to all changes in this revision

Viewing changes to framework/src/play/classloading/ApplicationCompiler.java

  • Committer: Erwan Loisant
  • Date: 2010-05-28 09:10:18 UTC
  • Revision ID: erwan@coot-20100528091018-rbr82vesdld0d19n
Code cleanup and generics

Show diffs side-by-side

added added

removed removed

Lines of Context:
232
232
            public void acceptResult(CompilationResult result) {
233
233
                // If error
234
234
                if (result.hasErrors()) {
235
 
                    IProblem[] problems = result.getErrors();
236
 
                    for (int i = 0; i < problems.length; i++) {
237
 
                        IProblem problem = problems[i];
 
235
                    for (IProblem problem: result.getErrors()) {
238
236
                        String className = new String(problem.getOriginatingFileName()).replace("/", ".");
239
237
                        className = className.substring(0, className.length() - 5);
240
238
                        String message = problem.getMessage();