Skip to content
Snippets Groups Projects
Commit e9346887 authored by Martin Entlicher's avatar Martin Entlicher
Browse files

Do not intern.

parent 67303c95
No related branches found
No related tags found
No related merge requests found
......@@ -121,8 +121,7 @@ public class RSource {
* Create a cached source from {@code text} and {@code name}.
*/
public static Source fromText(String text, String name) {
String uniqueText = text.intern();
return getCachedByOrigin(uniqueText, origin -> Source.newBuilder(uniqueText).name(name).language(RRuntime.R_LANGUAGE_ID).build());
return getCachedByOrigin(text, origin -> Source.newBuilder(text).name(name).language(RRuntime.R_LANGUAGE_ID).build());
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment