Skip to content

Commit

Permalink
feat(objectionary#2331): Fix all qulice suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
volodya-lombrozo committed Aug 14, 2023
1 parent 02bf288 commit 3d9b174
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 9 additions & 4 deletions eo-maven-plugin/src/test/java/org/eolang/maven/FakeMaven.java
Original file line number Diff line number Diff line change
Expand Up @@ -529,10 +529,6 @@ private FakeMaven withProgram(final String content) throws IOException {
return this;
}

private String tojoId(final int id) {
return String.format("foo.x.main%s", FakeMaven.suffix(id));
}

/**
* Ensures the map of allowed params for the Mojo.
*
Expand All @@ -558,6 +554,15 @@ private String scope() {
return String.valueOf(this.params.getOrDefault("scope", "compile"));
}

/**
* The id of the program in tojos file.
* @param id Number of the program.
* @return String id.
*/
private static String tojoId(final int id) {
return String.format("foo.x.main%s", FakeMaven.suffix(id));
}

/**
* Looks for all declared fields for mojo and its parents.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@
*/
package org.eolang.maven;

import com.yegor256.tojos.MnCsv;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.LinkedList;
import java.util.Map;
import org.cactoos.io.ResourceOf;
import org.cactoos.map.MapEntry;
Expand Down

0 comments on commit 3d9b174

Please sign in to comment.