Repository: flex-falcon Updated Branches: refs/heads/IDEA-FLEX_JS_COMPILER f47c8490c -> bdf2549da
FLEX-34860 : Cleanup CompJSC Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/bdf2549d Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/bdf2549d Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/bdf2549d Branch: refs/heads/IDEA-FLEX_JS_COMPILER Commit: bdf2549da0d94c91ef864c32309253fff895525f Parents: f47c849 Author: Frédéric THOMAS <[email protected]> Authored: Wed May 27 15:08:11 2015 +0100 Committer: Frédéric THOMAS <[email protected]> Committed: Wed May 27 15:08:11 2015 +0100 ---------------------------------------------------------------------- flex-compiler-oem/src/flex2/tools/CompJSC.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/bdf2549d/flex-compiler-oem/src/flex2/tools/CompJSC.java ---------------------------------------------------------------------- diff --git a/flex-compiler-oem/src/flex2/tools/CompJSC.java b/flex-compiler-oem/src/flex2/tools/CompJSC.java index d270529..c6f107b 100644 --- a/flex-compiler-oem/src/flex2/tools/CompJSC.java +++ b/flex-compiler-oem/src/flex2/tools/CompJSC.java @@ -1,10 +1,6 @@ package flex2.tools; import org.apache.flex.compiler.clients.COMPJSC; -import org.apache.flex.compiler.clients.JSCompilerEntryPoint; -import org.apache.flex.compiler.driver.IBackend; - -import java.lang.reflect.InvocationTargetException; /** * @author: Frederic Thomas @@ -13,11 +9,5 @@ import java.lang.reflect.InvocationTargetException; */ public class CompJSC extends MxmlJSC { - private static Class<COMPJSC> COMPILER = COMPJSC.class; - - private JSCompilerEntryPoint compiler; - - protected JSCompilerEntryPoint getCompilerInstance(IBackend backend) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException { - return compiler != null ? compiler : COMPILER.getDeclaredConstructor(IBackend.class).newInstance(backend); - } + private static Class<COMPJSC> COMPILER = COMPJSC.class; }
