Skip to content

Commit

Permalink
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/RubyArray.java
Original file line number Diff line number Diff line change
@@ -1206,7 +1206,7 @@ public IRubyObject shift(ThreadContext context) {
}

@JRubyMethod(name = "shift")
public RubyArray shift(ThreadContext context, IRubyObject num) {
public IRubyObject shift(ThreadContext context, IRubyObject num) {
modify();

RubyArray result = makeSharedFirst(context, num, false, context.runtime.getArray());
Original file line number Diff line number Diff line change
@@ -263,8 +263,8 @@ public synchronized IRubyObject shift(ThreadContext context) {
}

@Override
public synchronized RubyArray shift(ThreadContext context, IRubyObject num) {
RubyArray result = super.shift(context, num);
public synchronized IRubyObject shift(ThreadContext context, IRubyObject num) {
IRubyObject result = super.shift(context, num);
rehash();
return result;
}

0 comments on commit 06ec9c0

Please sign in to comment.