Skip to content

Commit 5198ed1

Browse files
committed
fix/improve various string-related functions
1 parent 64912ac commit 5198ed1

File tree

6 files changed

+345
-164
lines changed

6 files changed

+345
-164
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/str/LazyString.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
4848
import com.oracle.truffle.api.profiles.ConditionProfile;
4949

50-
public class LazyString implements PCharSequence {
50+
public final class LazyString implements PCharSequence {
5151
public static int length(CharSequence cs, ConditionProfile profile1, ConditionProfile profile2) {
5252
if (profile1.profile(cs instanceof String)) {
5353
return ((String) cs).length();

0 commit comments

Comments
 (0)