Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
There seems to be no point in manually inlining a method here.
  • Loading branch information
nirvdrum committed Dec 9, 2014
1 parent 218eb08 commit 238637a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/RubyString.java
Expand Up @@ -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;
}
Expand Down

0 comments on commit 238637a

Please sign in to comment.