Skip to content

Commit

Permalink
feat(#2266): inline xml variable
Browse files Browse the repository at this point in the history
  • Loading branch information
volodya-lombrozo committed Jul 19, 2023
1 parent d895bfb commit 2fb1607
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,14 @@ public void exec() throws FileNotFoundException {
*/
private Collection<String> discover(final Path file)
throws FileNotFoundException {
final XML xml = new XMLDocument(file);
final XML saxon = new SaxonDocument(new UncheckedText(new TextOf(file)).asString());
final Collection<String> names = DiscoverMojo.names(saxon, this.xpath(false));
if (this.withVersions) {
names.addAll(
DiscoverMojo.names(saxon, this.xpath(true))
);
}
if (!xml.nodes("//o[@vararg]").isEmpty()) {
if (!new XMLDocument(file).nodes("//o[@vararg]").isEmpty()) {
names.add("org.eolang.tuple");
}
if (names.isEmpty()) {
Expand Down

0 comments on commit 2fb1607

Please sign in to comment.