Skip to content
Permalink
Browse files
There seems to be no point in manually inlining a method here.
  • Loading branch information
nirvdrum committed Dec 9, 2014
1 parent 218eb08 commit 238637a7616398a29bce80dadeba09e94662e76a
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/main/java/org/jruby/RubyString.java
@@ -769,7 +769,7 @@ public static RubyString newUsAsciiStringNoCopy(Ruby runtime, ByteList bytes) {
}

public static RubyString newUsAsciiStringShared(Ruby runtime, ByteList bytes) {
RubyString str = newStringNoCopy(runtime, bytes, USASCIIEncoding.INSTANCE, CR_7BIT);
RubyString str = newUsAsciiStringNoCopy(runtime, bytes);
str.shareLevel = SHARE_LEVEL_BYTELIST;
return str;
}

0 comments on commit 238637a

Please sign in to comment.