Address review feedback on footnotes - RubyString
Be more succinct and explicit when converting to RubyString
MODIFY
asciidoctorj-core/src/main/java/org/asciidoctor/jruby/ast/impl/FootnoteImpl.java
asciidoctorj-core/src/main/java/org/asciidoctor/jruby/ast/impl/FootnoteImpl.java
@@ -16,7 +16,7 @@ public class FootnoteImpl implements Footnote {
private String text;
private static Object aref(RubyStruct s, String key) {
- return JavaEmbedUtils.rubyToJava(s.aref(JavaEmbedUtils.javaToRuby(s.getRuntime(), key)));
+ return JavaEmbedUtils.rubyToJava(s.aref(s.getRuntime().newString(key)));
}
public static Footnote getInstance(Long index, String id, String text) {

Address review feedback on footnotes - RubyString

Be more succinct and explicit when converting to RubyString