Repository: flex-falcon Updated Branches: refs/heads/develop ce631c7ce -> 3afc794b7
use List instead of HashSet so errors are reported in order Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/3afc794b Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/3afc794b Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/3afc794b Branch: refs/heads/develop Commit: 3afc794b71c544d6cffdccb9ac3c6d183c07bba8 Parents: ce631c7 Author: Alex Harui <[email protected]> Authored: Tue Oct 20 11:16:05 2015 -0700 Committer: Alex Harui <[email protected]> Committed: Tue Oct 20 11:16:05 2015 -0700 ---------------------------------------------------------------------- .../src/org/apache/flex/compiler/clients/COMPJSC.java | 3 +-- .../apache/flex/compiler/clients/JSCompilerEntryPoint.java | 4 ++-- .../src/org/apache/flex/compiler/clients/MXMLJSC.java | 9 ++++----- 3 files changed, 7 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3afc794b/compiler.jx/src/org/apache/flex/compiler/clients/COMPJSC.java ---------------------------------------------------------------------- diff --git a/compiler.jx/src/org/apache/flex/compiler/clients/COMPJSC.java b/compiler.jx/src/org/apache/flex/compiler/clients/COMPJSC.java index caf6577..33e662e 100644 --- a/compiler.jx/src/org/apache/flex/compiler/clients/COMPJSC.java +++ b/compiler.jx/src/org/apache/flex/compiler/clients/COMPJSC.java @@ -26,7 +26,6 @@ import java.io.FileOutputStream; import java.io.IOException; import java.util.ArrayList; import java.util.Collection; -import java.util.HashSet; import java.util.List; import java.util.Set; @@ -151,7 +150,7 @@ public class COMPJSC extends MXMLJSC } final COMPJSC mxmlc = new COMPJSC(backend); - final Set<ICompilerProblem> problems = new HashSet<ICompilerProblem>(); + final List<ICompilerProblem> problems = new ArrayList<ICompilerProblem>(); final int exitCode = mxmlc.mainNoExit(args, problems, true); long endTime = System.nanoTime(); http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3afc794b/compiler.jx/src/org/apache/flex/compiler/clients/JSCompilerEntryPoint.java ---------------------------------------------------------------------- diff --git a/compiler.jx/src/org/apache/flex/compiler/clients/JSCompilerEntryPoint.java b/compiler.jx/src/org/apache/flex/compiler/clients/JSCompilerEntryPoint.java index 534d9f5..0ffa22e 100644 --- a/compiler.jx/src/org/apache/flex/compiler/clients/JSCompilerEntryPoint.java +++ b/compiler.jx/src/org/apache/flex/compiler/clients/JSCompilerEntryPoint.java @@ -21,9 +21,9 @@ package org.apache.flex.compiler.clients; import org.apache.flex.compiler.problems.ICompilerProblem; -import java.util.Set; +import java.util.List; public interface JSCompilerEntryPoint { - public int mainNoExit(final String[] args, Set<ICompilerProblem> problems, + public int mainNoExit(final String[] args, List<ICompilerProblem> problems, Boolean printProblems); } http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3afc794b/compiler.jx/src/org/apache/flex/compiler/clients/MXMLJSC.java ---------------------------------------------------------------------- diff --git a/compiler.jx/src/org/apache/flex/compiler/clients/MXMLJSC.java b/compiler.jx/src/org/apache/flex/compiler/clients/MXMLJSC.java index a2742cb..750c54a 100644 --- a/compiler.jx/src/org/apache/flex/compiler/clients/MXMLJSC.java +++ b/compiler.jx/src/org/apache/flex/compiler/clients/MXMLJSC.java @@ -27,7 +27,6 @@ import java.io.IOException; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; -import java.util.HashSet; import java.util.List; import java.util.Set; @@ -163,7 +162,7 @@ public class MXMLJSC implements JSCompilerEntryPoint, ProblemQueryProvider, @Override public int execute(String[] args) { - final Set<ICompilerProblem> problems = new HashSet<ICompilerProblem>(); + final List<ICompilerProblem> problems = new ArrayList<ICompilerProblem>(); return mainNoExit(args, problems, true); } @@ -227,7 +226,7 @@ public class MXMLJSC implements JSCompilerEntryPoint, ProblemQueryProvider, } final MXMLJSC mxmlc = new MXMLJSC(backend); - final Set<ICompilerProblem> problems = new HashSet<ICompilerProblem>(); + final List<ICompilerProblem> problems = new ArrayList<ICompilerProblem>(); final int exitCode = mxmlc.mainNoExit(args, problems, true); long endTime = System.nanoTime(); @@ -263,7 +262,7 @@ public class MXMLJSC implements JSCompilerEntryPoint, ProblemQueryProvider, } @Override - public int mainNoExit(final String[] args, Set<ICompilerProblem> problems, + public int mainNoExit(final String[] args, List<ICompilerProblem> problems, Boolean printProblems) { int exitCode = -1; @@ -299,7 +298,7 @@ public class MXMLJSC implements JSCompilerEntryPoint, ProblemQueryProvider, * @return exit code */ private int _mainNoExit(final String[] args, - Set<ICompilerProblem> outProblems) + List<ICompilerProblem> outProblems) { ExitCode exitCode = ExitCode.SUCCESS; try
