Skip to content

Commit

Permalink
feat(#834): fix all the code offences
Browse files Browse the repository at this point in the history
  • Loading branch information
volodya-lombrozo committed Nov 8, 2024
1 parent c531ae7 commit 9bfd67d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/eolang/jeo/UnrollMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public final class UnrollMojo extends AbstractMojo {
@Override
public void execute() {
Logger.info(this, "Unrolling PHI/UNPHI transformations");
long start = System.currentTimeMillis();
final long start = System.currentTimeMillis();
final long count = new Unroller(this.sourcesDir.toPath(), this.outputDir.toPath()).unroll();
Logger.info(
this,
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/org/eolang/jeo/Unroller.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.stream.Stream;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.TransformerFactoryConfigurationError;
import org.eolang.jeo.representation.CanonicalXmir;

/**
Expand Down Expand Up @@ -129,6 +127,7 @@ private void unroll(final Path path) {
* Otherwise, the class loader won't be able to find `net.sf.saxon.TransformerFactoryImpl`.
* This method is a workaround for the problem with class loading during the unrolling process.
*/
@SuppressWarnings("PMD.UseProperClassLoader")
private void prepareThread() {
System.setProperty(
"javax.xml.transform.TransformerFactory",
Expand Down

0 comments on commit 9bfd67d

Please sign in to comment.