Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Replaced a usage of '==' with 'equals' for comparing Strings.
  • Loading branch information
nirvdrum committed Jan 6, 2015
1 parent c9d8c77 commit 95b3cee
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -356,7 +356,7 @@ public RubyNode visitCallNode(CallNode node) {
final SourceSection sourceSection = translate(node.getPosition());

if (node.getReceiverNode() instanceof org.jruby.ast.ConstNode
&& ((ConstNode) node.getReceiverNode()).getName() == "Rubinius") {
&& ((ConstNode) node.getReceiverNode()).getName().equals("Rubinius")) {
if (node.getName().equals("primitive")) {
return translateRubiniusPrimitive(sourceSection, node);
} else if (node.getName().equals("invoke_primitive")) {
Expand Down

0 comments on commit 95b3cee

Please sign in to comment.