Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions core/src/main/java/org/jruby/RubyArray.java
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ private RubyArray(Ruby runtime, IRubyObject[] vals, boolean objectSpace) {
/*
* plain internal array assignment
*/
@Deprecated(since = "10.0.6.0")
public RubyArray(Ruby runtime, IRubyObject[] vals, int begin, int length) {
super(runtime, runtime.getArray());
this.values = vals;
Expand All @@ -448,6 +449,7 @@ private RubyArray(Ruby runtime, RubyClass metaClass, IRubyObject[] vals, int beg
this.realLength = length;
}

@Deprecated(since = "10.0.6.0")
public RubyArray(Ruby runtime, int length) {
super(runtime, runtime.getArray());
this.values = IRubyObject.array(validateBufferLength(runtime, length));
Expand Down Expand Up @@ -482,12 +484,14 @@ protected RubyArray(Ruby runtime, RubyClass klass, boolean objectSpace) {
super(runtime, klass, objectSpace);
}

@Deprecated(since = "10.0.6.0")
public RubyArray(Ruby runtime, RubyClass klass, IRubyObject[] vals) {
super(runtime, klass);
values = vals;
realLength = vals.length;
}

@Deprecated(since = "10.0.6.0")
public RubyArray(RubyClass klass, IRubyObject[] vals, boolean shared) {
super(klass);
values = vals;
Expand Down
Loading