flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ftho...@apache.org
Subject git commit: [flex-falcon] [refs/heads/IDEA-FLEX_JS_COMPILER] - Adding support for COMP C/JSC
Date Thu, 28 May 2015 11:45:34 GMT
Repository: flex-falcon
Updated Branches:
  refs/heads/IDEA-FLEX_JS_COMPILER 4d5fab885 -> 15b6dd076


Adding support for COMP C/JSC


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/15b6dd07
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/15b6dd07
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/15b6dd07

Branch: refs/heads/IDEA-FLEX_JS_COMPILER
Commit: 15b6dd076c26a08c5572ae5625841b4c5888fc02
Parents: 4d5fab8
Author: Frédéric THOMAS <webdoublefx@gmail.com>
Authored: Thu May 28 12:45:19 2015 +0100
Committer: Frédéric THOMAS <webdoublefx@gmail.com>
Committed: Thu May 28 12:45:19 2015 +0100

----------------------------------------------------------------------
 flex-compiler-oem/src/flex2/tools/CompJSC.java | 14 ++------------
 flex-compiler-oem/src/flex2/tools/MxmlJSC.java |  2 +-
 2 files changed, 3 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/15b6dd07/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 0491ba0..d291678 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,13 +9,7 @@ import java.lang.reflect.InvocationTargetException;
  */
 public class CompJSC extends MxmlJSC {
 
-    private static Class<COMPJSC> COMPILER = COMPJSC.class;
-
-    @Override
-    protected JSCompilerEntryPoint getCompilerInstance(IBackend backend) throws NoSuchMethodException,
IllegalAccessException, InvocationTargetException, InstantiationException {
-        if (compiler == null) {
-            compiler = COMPILER.getDeclaredConstructor(IBackend.class).newInstance(backend);
-        }
-        return compiler;
+    static {
+        COMPILER = COMPJSC.class;
     }
 }

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/15b6dd07/flex-compiler-oem/src/flex2/tools/MxmlJSC.java
----------------------------------------------------------------------
diff --git a/flex-compiler-oem/src/flex2/tools/MxmlJSC.java b/flex-compiler-oem/src/flex2/tools/MxmlJSC.java
index 5dc4557..f23dc2a 100644
--- a/flex-compiler-oem/src/flex2/tools/MxmlJSC.java
+++ b/flex-compiler-oem/src/flex2/tools/MxmlJSC.java
@@ -23,7 +23,7 @@ import java.util.Set;
  */
 public class MxmlJSC implements ProblemQueryProvider {
 
-    private static Class<MXMLJSC> COMPILER = MXMLJSC.class;
+    protected static Class<? extends MXMLJSC> COMPILER = MXMLJSC.class;
 
     protected JSCompilerEntryPoint compiler;
 


Mime
View raw message