Skip to content


[Truffle] Use Deque instead of Stack.
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvdrum committed Mar 9, 2015
1 parent 47252ce commit 0d82675
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@
import org.jruby.truffle.runtime.RubyContext;
import org.jruby.util.cli.Options;

import java.util.ArrayDeque;
import java.util.Arrays;
import java.util.Deque;
import java.util.HashSet;
import java.util.Set;
import java.util.Stack;

public abstract class Translator extends org.jruby.ast.visitor.AbstractNodeVisitor<RubyNode> {

Expand All @@ -33,7 +34,7 @@ public abstract class Translator extends org.jruby.ast.visitor.AbstractNodeVisit
protected final RubyContext context;
protected final Source source;

protected Stack<SourceSection> parentSourceSection = new Stack<>();
protected Deque<SourceSection> parentSourceSection = new ArrayDeque<>();

public Translator(Node currentNode, RubyContext context, Source source) {
this.currentNode = currentNode;
Expand Down

0 comments on commit 0d82675

Please sign in to comment.