anon-iclr-submission/benchname-bug-localization huggingface dataset:
Repository: asciidoctor/asciidoctorj
Issue: RubyExtensionRegistry references Impl

While refactoring the RubyExtensionRegistry to interfaces the implementation of this interface slipped through and appears as the return type:
https://github.com/asciidoctor/asciidoctorj/blob/15fd95849ad7f236a34a3e7a38321093ea741283/asciidoctorj-core/src/main/java/org/asciidoctor/extension/RubyExtensionRegistry.java#L8

Instead all methods should return just RubyExtensionRegistry.

This cannot be fixed on 1.6.0 as this would result in a binary incompatibility.

Changed files:
asciidoctorj-core/src/main/java/org/asciidoctor/extension/RubyExtensionRegistry.java

diff --git a/asciidoctorj-core/src/main/java/org/asciidoctor/extension/RubyExtensionRegistry.java b/asciidoctorj-core/src/main/java/org/asciidoctor/extension/RubyExtensionRegistry.java
index d575a139..b6ada669 100644
--- a/asciidoctorj-core/src/main/java/org/asciidoctor/extension/RubyExtensionRegistry.java
+++ b/asciidoctorj-core/src/main/java/org/asciidoctor/extension/RubyExtensionRegistry.java
@@ -1,33 +1,32 @@
 package org.asciidoctor.extension;
 
-import org.asciidoctor.internal.RubyExtensionRegistryImpl;
-
 import java.io.InputStream;
 
 public interface RubyExtensionRegistry {
-    RubyExtensionRegistryImpl requireLibrary(String requiredLibrary);
 
-    RubyExtensionRegistryImpl loadClass(InputStream rubyClassStream);
+    RubyExtensionRegistry requireLibrary(String requiredLibrary);
+
+    RubyExtensionRegistry loadClass(InputStream rubyClassStream);
 
-    RubyExtensionRegistryImpl preprocessor(String preprocessor);
+    RubyExtensionRegistry preprocessor(String preprocessor);
 
-    RubyExtensionRegistryImpl postprocessor(String postprocessor);
+    RubyExtensionRegistry postprocessor(String postprocessor);
 
-    RubyExtensionRegistryImpl docinfoProcessor(String docinfoProcessor);
+    RubyExtensionRegistry docinfoProcessor(String docinfoProcessor);
 
-    RubyExtensionRegistryImpl includeProcessor(String includeProcessor);
+    RubyExtensionRegistry includeProcessor(String includeProcessor);
 
-    RubyExtensionRegistryImpl treeprocessor(String treeProcessor);
+    RubyExtensionRegistry treeprocessor(String treeProcessor);
 
-    RubyExtensionRegistryImpl block(String blockName, String blockProcessor);
+    RubyExtensionRegistry block(String blockName, String blockProcessor);
 
-    RubyExtensionRegistryImpl block(String blockProcessor);
+    RubyExtensionRegistry block(String blockProcessor);
 
-    RubyExtensionRegistryImpl blockMacro(String blockName, String blockMacroProcessor);
+    RubyExtensionRegistry blockMacro(String blockName, String blockMacroProcessor);
 
-    RubyExtensionRegistryImpl blockMacro(String blockMacroProcessor);
+    RubyExtensionRegistry blockMacro(String blockMacroProcessor);
 
-    RubyExtensionRegistryImpl inlineMacro(String blockName, String inlineMacroProcessor);
+    RubyExtensionRegistry inlineMacro(String blockName, String inlineMacroProcessor);
 
-    RubyExtensionRegistryImpl inlineMacro(String inlineMacroProcessor);
+    RubyExtensionRegistry inlineMacro(String inlineMacroProcessor);
 }