FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Avoid direct constructors from JRuby by headius · Pull Request #355 · jruby/jruby-openssl · GitHub

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .java  (1) No extension  (1) All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
2 changes: 1 addition & 1 deletion Mavenfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ plugin :clean do
'failOnError' => 'false' )
end

jar 'org.jruby:jruby-core', '9.2.0.0', :scope => :provided
jar 'org.jruby:jruby-core', '9.2.1.0', :scope => :provided
# for invoker generated classes we need to add javax.annotation when on Java > 8
jar 'javax.annotation:javax.annotation-api', '1.3.1', :scope => :compile
jar 'org.junit.jupiter:junit-jupiter', '5.11.4', :scope => :test
Expand Down
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ static RubyString newString(final Ruby runtime, final byte[] bytes, final int co
}

static RubyString newString(final Ruby runtime, final CharSequence chars) {
return new RubyString(runtime, runtime.getString(), chars, ASCIIEncoding.INSTANCE);
return RubyString.newString(runtime, chars, ASCIIEncoding.INSTANCE);
}

static ByteList setByteListShared(final RubyString str) {
Expand All @@ -73,12 +73,12 @@ static ByteList setByteListShared(final RubyString str) {

static RubyString newUTF8String(final Ruby runtime, final ByteList bytes) {
ByteList byteList = new ByteList(RubyEncoding.encodeUTF8(bytes), UTF8Encoding.INSTANCE, false);
return new RubyString(runtime, runtime.getString(), byteList);
return RubyString.newString(runtime, byteList);
}

static RubyString newUTF8String(final Ruby runtime, final CharSequence chars) {
ByteList byteList = new ByteList(RubyEncoding.encodeUTF8(chars), UTF8Encoding.INSTANCE, false);
return new RubyString(runtime, runtime.getString(), byteList);
return RubyString.newString(runtime, byteList);
}

static RubyString newStringFrozen(final Ruby runtime, final ByteList bytes) {
Expand Down
Loading

Back | FazBrowse Home | New Git URL