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/06/04 19:50:14 UTC
[royale-compiler] 02/03: try using a list instead of set to get
predictability
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch release_practice
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
commit 795b4b9483d4fd39d780bc365c19a723e6a040c5
Author: Alex Harui <ah...@apache.org>
AuthorDate: Tue Jun 4 12:49:48 2019 -0700
try using a list instead of set to get predictability
---
compiler/src/main/java/org/apache/royale/abc/semantics/Block.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/compiler/src/main/java/org/apache/royale/abc/semantics/Block.java b/compiler/src/main/java/org/apache/royale/abc/semantics/Block.java
index 930cf90..d404ae0 100644
--- a/compiler/src/main/java/org/apache/royale/abc/semantics/Block.java
+++ b/compiler/src/main/java/org/apache/royale/abc/semantics/Block.java
@@ -48,7 +48,7 @@ public class Block implements IBasicBlock
/**
* Successors to this block.
*/
- private Set<IBasicBlock> successors = Collections.emptySet();
+ private Collection<IBasicBlock> successors = Collections.emptySet();
/**
* @return successors of this block.
@@ -66,7 +66,7 @@ public class Block implements IBasicBlock
void addSuccessor(IBasicBlock succ)
{
if (this.successors.size() == 0)
- this.successors = new HashSet<IBasicBlock>();
+ this.successors = new ArrayList<IBasicBlock>();
this.successors.add(succ);
}