Skip to content

Commit

Permalink
feat(#23): fix all qulice suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
volodya-lombrozo committed Sep 15, 2023
1 parent 67b2914 commit 093c1c3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
13 changes: 12 additions & 1 deletion src/main/java/org/eolang/jeo/Representation.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,22 @@ public interface Representation {
*/
byte[] toBytecode();


/**
* Named representation.
*
* @since 0.1.0
*/
class Named implements Representation {

/**
* Name of representation.
*/
private final String name;

/**
* Constructor.
* @param name Name of representation.
*/
public Named(final String name) {
this.name = name;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,16 @@ public final class ImprovementLogged implements Improvement {

/**
* Constructor.
* @since 0.1.0
*/
public ImprovementLogged() {
this((msg) -> Logger.info(ImprovementLogged.class, msg));
this(msg -> Logger.info(ImprovementLogged.class, msg));
}

/**
* Constructor.
* @param logger Logger.
* @since 0.1.0
*/
ImprovementLogged(final Consumer<String> logger) {
this.logger = logger;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,4 @@ void printsInformationAboutRepresentation() {
Matchers.containsString(expected)
);
}

}
}

1 comment on commit 093c1c3

@0pdd
Copy link

@0pdd 0pdd commented on 093c1c3 Sep 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puzzle 13-0aa69d09 disappeared from src/main/java/org/eolang/jeo/BoostLogged.java), that's why I closed #23. Please, remember that the puzzle was not necessarily removed in this particular commit. Maybe it happened earlier, but we discovered this fact only now.

Please sign in to comment.