flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mschma...@apache.org
Subject git commit: [flex-falcon] [refs/heads/develop] - Fixed parts of code using 1.7 code style.
Date Wed, 10 Jun 2015 10:24:04 GMT
Repository: flex-falcon
Updated Branches:
  refs/heads/develop 0bf2907d0 -> c5b0bdf88


Fixed parts of code using 1.7 code style.


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

Branch: refs/heads/develop
Commit: c5b0bdf88f3e31d585c54c3f108da80700451c61
Parents: 0bf2907
Author: Michael Schmalle <mschmalle@apache.org>
Authored: Wed Jun 10 06:23:48 2015 -0400
Committer: Michael Schmalle <mschmalle@apache.org>
Committed: Wed Jun 10 06:23:48 2015 -0400

----------------------------------------------------------------------
 .../codegen/externals/reference/ClassReference.java       |  4 ++--
 .../codegen/externals/reference/ConstantReference.java    |  2 +-
 .../codegen/externals/reference/ReferenceModel.java       | 10 +++++-----
 .../internal/codegen/externals/utils/TypeUtils.java       |  8 ++++----
 4 files changed, 12 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/c5b0bdf8/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/ClassReference.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/ClassReference.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/ClassReference.java
index fe4898d..6965f6e 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/ClassReference.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/ClassReference.java
@@ -112,7 +112,7 @@ public class ClassReference extends BaseReference
 
     public List<ClassReference> getSuperClasses()
     {
-        ArrayList<ClassReference> result = new ArrayList<>();
+        ArrayList<ClassReference> result = new ArrayList<ClassReference>();
         ClassReference superClass = getSuperClass();
         while (superClass != null)
         {
@@ -390,7 +390,7 @@ public class ClassReference extends BaseReference
     @SuppressWarnings("unused")
     private List<ClassReference> getSuperInterfaces()
     {
-        ArrayList<ClassReference> result = new ArrayList<>();
+        ArrayList<ClassReference> result = new ArrayList<ClassReference>();
         //        if (!TagUtils.hasTags(this, "implements"))
         //            return result;
         //

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/c5b0bdf8/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/ConstantReference.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/ConstantReference.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/ConstantReference.java
index f920fff..20c09cd 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/ConstantReference.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/ConstantReference.java
@@ -69,7 +69,7 @@ public class ConstantReference extends ClassReference
 
     private String resolveValue(String type)
     {
-        HashMap<String, String> map = new HashMap<>();
+        HashMap<String, String> map = new HashMap<String, String>();
         map.put("Number", "0");
         map.put("undefined", "0");
 

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/c5b0bdf8/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/ReferenceModel.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/ReferenceModel.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/ReferenceModel.java
index df5510b..e385b4b 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/ReferenceModel.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/ReferenceModel.java
@@ -51,10 +51,10 @@ public class ReferenceModel
     private File asFunctionRoot;
     private File asConstantRoot;
 
-    private List<ExcludedMemeber> excludesClass = new ArrayList<>();
-    private List<ExcludedMemeber> excludesField = new ArrayList<>();
-    private List<ExcludedMemeber> excludes = new ArrayList<>();
-    private List<ExternalFile> externals = new ArrayList<>();
+    private List<ExcludedMemeber> excludesClass = new ArrayList<ExcludedMemeber>();
+    private List<ExcludedMemeber> excludesField = new ArrayList<ExcludedMemeber>();
+    private List<ExcludedMemeber> excludes = new ArrayList<ExcludedMemeber>();
+    private List<ExternalFile> externals = new ArrayList<ExternalFile>();
 
     private HashMap<String, ClassReference> classes = new HashMap<String, ClassReference>();
     //private HashMap<String, ClassReference2> interfaces = new HashMap<String,
ClassReference2>();
@@ -343,7 +343,7 @@ public class ReferenceModel
 
         //Node script = compiler.parse(SourceFile.fromCode("[test]", source));
 
-        List<SourceFile> sources = new ArrayList<>();
+        List<SourceFile> sources = new ArrayList<SourceFile>();
         for (ExternalFile externalFile : externals)
         {
             String name = externalFile.getName();

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/c5b0bdf8/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/utils/TypeUtils.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/utils/TypeUtils.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/utils/TypeUtils.java
index e65976c..2e7aa20 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/utils/TypeUtils.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/utils/TypeUtils.java
@@ -264,7 +264,7 @@ public final class TypeUtils
         if (asType.indexOf("|") != -1)
             return "*";
 
-        HashMap<String, String> map = new HashMap<>();
+        HashMap<String, String> map = new HashMap<String, String>();
         map.put("*", "null");
         map.put("String", "null");
         map.put("Number", "null");
@@ -283,7 +283,7 @@ public final class TypeUtils
         if (type.indexOf("|") != -1)
             return "Object";
 
-        HashMap<String, String> map = new HashMap<>();
+        HashMap<String, String> map = new HashMap<String, String>();
         map.put("*", "*");
         map.put("string", "String");
         map.put("number", "Number");
@@ -303,7 +303,7 @@ public final class TypeUtils
         if (type.indexOf("|") != -1)
             return "Object";
 
-        HashMap<String, String> map = new HashMap<>();
+        HashMap<String, String> map = new HashMap<String, String>();
         map.put("?", "Object /* ? */");
         map.put("*", "*");
         map.put("string", "String");
@@ -320,7 +320,7 @@ public final class TypeUtils
 
     public static String transformType(String type)
     {
-        HashMap<String, String> map = new HashMap<>();
+        HashMap<String, String> map = new HashMap<String, String>();
         map.put("?", "Object /* ? */");
         map.put("*", "*");
         map.put("string", "String");


Mime
View raw message