Skip to content

Commit

Permalink
Fixes AsciidoctorDoxiaParserModule
Browse files Browse the repository at this point in the history
* Remove use of deprecated constructor
* Add 'asciidoc' as valid file extension
  • Loading branch information
abelsromero committed Aug 21, 2022
1 parent 6f2b5bd commit bb54a92
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,14 @@ public class AsciidoctorDoxiaParserModule extends AbstractParserModule {
public static final String SOURCE_DIRECTORY = AsciidoctorDoxiaParser.ROLE_HINT;

/**
* The extension for AsciiDoc files.
* The extensions for AsciiDoc files.
*/
// TODO change type to String[] and value to { "adoc", "asciidoc" } once available in Doxia
public static final String FILE_EXTENSION = "adoc";
public static final String[] FILE_EXTENSIONS = new String[]{"adoc", "asciidoc"};

/**
* Build a new instance of {@link AsciidoctorDoxiaParserModule}.
*/
public AsciidoctorDoxiaParserModule() {
super(SOURCE_DIRECTORY, FILE_EXTENSION, AsciidoctorDoxiaParser.ROLE_HINT);
super(SOURCE_DIRECTORY, AsciidoctorDoxiaParser.ROLE_HINT, FILE_EXTENSIONS);
}
}

0 comments on commit bb54a92

Please sign in to comment.