You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2019/01/03 18:55:34 UTC

[royale-compiler] branch develop updated: prevent duplicates when internal classes extend/implement the main class

This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git


The following commit(s) were added to refs/heads/develop by this push:
     new b1dfe54  prevent duplicates when internal classes extend/implement the main class
b1dfe54 is described below

commit b1dfe5491ec1ff3748976020d85e7d5db7b7df44
Author: Alex Harui <ah...@apache.org>
AuthorDate: Thu Jan 3 10:55:18 2019 -0800

    prevent duplicates when internal classes extend/implement the main class
---
 .../org/apache/royale/compiler/internal/graph/GoogDepsWriter.java   | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/graph/GoogDepsWriter.java b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/graph/GoogDepsWriter.java
index 887bd9d..1bc2e8a 100644
--- a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/graph/GoogDepsWriter.java
+++ b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/graph/GoogDepsWriter.java
@@ -1114,7 +1114,8 @@ public class GoogDepsWriter {
 					        				fi.impls = new ArrayList<String>();
 					        			c2 = line.indexOf("}", c);
 					        			String impl = line.substring(c + 13, c2);
-					        			fi.impls.add(impl);
+					        			if (!fi.impls.contains(impl))
+					        				fi.impls.add(impl);
 					        			if (impl.equals("org.apache.royale.core.ICSSImpl"))
 					        				needCSS = true;
 					        		}
@@ -1127,7 +1128,8 @@ public class GoogDepsWriter {
 						        				fi.impls = new ArrayList<String>();
 						        			c2 = line.indexOf("}", c);
 						        			String impl = line.substring(c + 10, c2);
-						        			fi.impls.add(impl);
+						        			if (!fi.impls.contains(impl))
+						        				fi.impls.add(impl);
 						        		}
 						        		else
 						        		{