Skip to content

Commit

Permalink
[Truffle] Create a rope directly from a j.l.String without going thro…
Browse files Browse the repository at this point in the history
…ugh ByteList.
  • Loading branch information
nirvdrum committed Feb 9, 2016
1 parent 3960446 commit 918dfe1
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,7 @@ public static Rope shimModifiers(Rope bytes) {
throw new UnsupportedOperationException();
}

// TODO (nirvdrum 25-Jan-16): We probably just want a way to create a Rope from a java.lang.String.
bytes = StringOperations.ropeFromByteList(ByteList.create(bytesString));
bytes = StringOperations.createRope(bytesString, ASCIIEncoding.INSTANCE);
}

return bytes;
Expand Down

0 comments on commit 918dfe1

Please sign in to comment.