Skip to content

Commit

Permalink
[refactor] minor - unnecessary cast to RubyString
Browse files Browse the repository at this point in the history
  • Loading branch information
kares committed Sep 21, 2023
1 parent 5ace6f8 commit 4b51219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/RubyString.java
Original file line number Diff line number Diff line change
Expand Up @@ -1348,7 +1348,7 @@ public boolean equals(Object other) {

@SuppressWarnings("NonOverridingEquals")
final boolean equals(RubyString other) {
return ((RubyString) other).value.equal(value);
return other.value.equal(value);
}

/** rb_obj_as_string
Expand Down

0 comments on commit 4b51219

Please sign in to comment.