Skip to content

Commit

Permalink
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
@@ -76,7 +76,7 @@ public Encoding checkEncoding(CodeRangeable other) {

@Override
public ByteList getByteList() {
return StringOperations.getByteList(string);
throw new RuntimeException("Replace with read-only call or rope update for String.");
}


Original file line number Diff line number Diff line change
@@ -216,10 +216,6 @@ public static Rope createRope(String s, Encoding encoding) {
return RopeOperations.create(ByteList.encode(s, "ISO-8859-1"), encoding, CodeRange.CR_UNKNOWN);
}

public static ByteList getByteList(DynamicObject object) {
throw new RuntimeException("Replace with read-only call or rope update for String.");
}

public static ByteList getByteListReadOnly(DynamicObject object) {
return Layouts.STRING.getRope(object).getUnsafeByteList();
}

0 comments on commit 02fd011

Please sign in to comment.