Skip to content

Commit 149e587

Browse files
committed
Update tool/generate-core-symbols.rb to use LeafRope
1 parent 8224f45 commit 149e587

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tool/generate-core-symbols.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import java.util.List;
3131
3232
import org.jcodings.specific.USASCIIEncoding;
33-
import org.truffleruby.core.rope.Rope;
33+
import org.truffleruby.core.rope.LeafRope;
3434
import org.truffleruby.core.rope.RopeConstants;
3535
import org.truffleruby.core.rope.RopeOperations;
3636
@@ -155,7 +155,7 @@
155155

156156
footer = <<JAVA
157157
public RubySymbol createRubySymbol(String string, long id) {
158-
Rope rope = RopeConstants.lookupUSASCII(string);
158+
LeafRope rope = RopeConstants.lookupUSASCII(string);
159159
if (rope == null) {
160160
rope = RopeOperations.encodeAscii(string, USASCIIEncoding.INSTANCE);
161161
}

0 commit comments

Comments
 (0)