Skip to content

Commit 95b3cee

Browse files
committed
Replaced a usage of '==' with 'equals' for comparing Strings.
1 parent c9d8c77 commit 95b3cee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/java/org/jruby/truffle/translator/BodyTranslator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ public RubyNode visitCallNode(CallNode node) {
356356
final SourceSection sourceSection = translate(node.getPosition());
357357

358358
if (node.getReceiverNode() instanceof org.jruby.ast.ConstNode
359-
&& ((ConstNode) node.getReceiverNode()).getName() == "Rubinius") {
359+
&& ((ConstNode) node.getReceiverNode()).getName().equals("Rubinius")) {
360360
if (node.getName().equals("primitive")) {
361361
return translateRubiniusPrimitive(sourceSection, node);
362362
} else if (node.getName().equals("invoke_primitive")) {

0 commit comments

Comments
 (0)