diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/Cages.java b/eo-runtime/src/main/java/EOorg/EOeolang/Cages.java index 16567cdde4..c4a2c5b304 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/Cages.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/Cages.java @@ -24,8 +24,9 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang; +package EOorg.EOeolang; // NOPMD import java.util.concurrent.ConcurrentHashMap; import org.eolang.ExFailure; @@ -46,13 +47,13 @@ final class Cages { /** * Encaged objects. */ - private final ConcurrentHashMap objects = new ConcurrentHashMap<>(0); + private final ConcurrentHashMap objects; /** * Ctor. */ private Cages() { - // singleton :( + this.objects = new ConcurrentHashMap<>(0); } /** diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EOas_phi.java b/eo-runtime/src/main/java/EOorg/EOeolang/EOas_phi.java index df3842d161..fe6688fc6d 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EOas_phi.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EOas_phi.java @@ -24,8 +24,9 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang; +package EOorg.EOeolang; // NOPMD import org.eolang.AtVoid; import org.eolang.Atom; @@ -47,6 +48,7 @@ public final class EOas_phi extends PhDefault implements Atom { /** * Ctor. */ + @SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors") public EOas_phi() { this.add("x", new AtVoid("x")); } diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOand.java b/eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOand.java index eccbfe9377..253149045c 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOand.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOand.java @@ -24,8 +24,9 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang; +package EOorg.EOeolang; // NOPMD import org.eolang.AtVoid; import org.eolang.Atom; @@ -45,10 +46,12 @@ */ @Versionized @XmirObject(oname = "bytes.and") +@SuppressWarnings("PMD.AvoidDollarSigns") public final class EObytes$EOand extends PhDefault implements Atom { /** * Ctor. */ + @SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors") public EObytes$EOand() { this.add("b", new AtVoid("b")); } diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOconcat.java b/eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOconcat.java index c99c1ffa9a..8c6d8f9551 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOconcat.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOconcat.java @@ -24,8 +24,9 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang; +package EOorg.EOeolang; // NOPMD import org.eolang.AtVoid; import org.eolang.Atom; @@ -45,10 +46,12 @@ */ @Versionized @XmirObject(oname = "bytes.concat") +@SuppressWarnings("PMD.AvoidDollarSigns") public final class EObytes$EOconcat extends PhDefault implements Atom { /** * Ctor. */ + @SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors") public EObytes$EOconcat() { this.add("b", new AtVoid("b")); } diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOeq.java b/eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOeq.java index 614a82c829..85e02842df 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOeq.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOeq.java @@ -24,8 +24,9 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang; +package EOorg.EOeolang; // NOPMD import java.util.Arrays; import org.eolang.AtVoid; @@ -46,10 +47,12 @@ */ @Versionized @XmirObject(oname = "bytes.eq") +@SuppressWarnings("PMD.AvoidDollarSigns") public final class EObytes$EOeq extends PhDefault implements Atom { /** * Ctor. */ + @SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors") public EObytes$EOeq() { this.add("b", new AtVoid("b")); } diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOor.java b/eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOor.java index 566304f10a..8ff8b6465d 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOor.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOor.java @@ -24,8 +24,9 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang; +package EOorg.EOeolang; // NOPMD import org.eolang.AtVoid; import org.eolang.Atom; @@ -45,10 +46,12 @@ */ @Versionized @XmirObject(oname = "bytes.or") +@SuppressWarnings("PMD.AvoidDollarSigns") public final class EObytes$EOor extends PhDefault implements Atom { /** * Ctor. */ + @SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors") public EObytes$EOor() { this.add("b", new AtVoid("b")); } diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOright.java b/eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOright.java index 0edb6ce9fd..ce96546879 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOright.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOright.java @@ -24,8 +24,9 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang; +package EOorg.EOeolang; // NOPMD import org.eolang.AtVoid; import org.eolang.Atom; @@ -45,10 +46,12 @@ */ @Versionized @XmirObject(oname = "bytes.right") +@SuppressWarnings("PMD.AvoidDollarSigns") public final class EObytes$EOright extends PhDefault implements Atom { /** * Ctor. */ + @SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors") public EObytes$EOright() { this.add("x", new AtVoid("x")); } diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOsize.java b/eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOsize.java index b3025fd4c5..a2751a1689 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOsize.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOsize.java @@ -24,8 +24,9 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang; +package EOorg.EOeolang; // NOPMD import org.eolang.Atom; import org.eolang.Attr; @@ -44,6 +45,7 @@ */ @Versionized @XmirObject(oname = "bytes.size") +@SuppressWarnings("PMD.AvoidDollarSigns") public final class EObytes$EOsize extends PhDefault implements Atom { @Override public Phi lambda() { diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOslice.java b/eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOslice.java index f33f9ec29f..ab50f93dc5 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOslice.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOslice.java @@ -24,8 +24,9 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang; +package EOorg.EOeolang; // NOPMD import java.util.Arrays; import org.eolang.AtVoid; @@ -46,10 +47,12 @@ */ @Versionized @XmirObject(oname = "bytes.slice") +@SuppressWarnings("PMD.AvoidDollarSigns") public final class EObytes$EOslice extends PhDefault implements Atom { /** * Ctor. */ + @SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors") public EObytes$EOslice() { this.add("start", new AtVoid("start")); this.add("len", new AtVoid("len")); diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOxor.java b/eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOxor.java index 4d3de028c7..cbb9336a44 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOxor.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EObytes$EOxor.java @@ -24,8 +24,9 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang; +package EOorg.EOeolang; // NOPMD import org.eolang.AtVoid; import org.eolang.Atom; @@ -45,10 +46,12 @@ */ @Versionized @XmirObject(oname = "bytes.xor") +@SuppressWarnings("PMD.AvoidDollarSigns") public final class EObytes$EOxor extends PhDefault implements Atom { /** * Ctor. */ + @SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors") public EObytes$EOxor() { this.add("b", new AtVoid("b")); } diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EOcage$EOencaged$EOencage.java b/eo-runtime/src/main/java/EOorg/EOeolang/EOcage$EOencaged$EOencage.java index c7784dcde3..13e365f686 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EOcage$EOencaged$EOencage.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EOcage$EOencaged$EOencage.java @@ -24,8 +24,9 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang; +package EOorg.EOeolang; // NOPMD import org.eolang.AtVoid; import org.eolang.Atom; @@ -44,10 +45,12 @@ */ @Versionized @XmirObject(oname = "cage.encaged.encage") +@SuppressWarnings("PMD.AvoidDollarSigns") public final class EOcage$EOencaged$EOencage extends PhDefault implements Atom { /** * Ctor. */ + @SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors") EOcage$EOencaged$EOencage() { this.add("object", new AtVoid("object")); } diff --git "a/eo-runtime/src/main/java/EOorg/EOeolang/EOcage$EO\317\206.java" "b/eo-runtime/src/main/java/EOorg/EOeolang/EOcage$EO\317\206.java" index 48170b0770..9f7e0229a9 100644 --- "a/eo-runtime/src/main/java/EOorg/EOeolang/EOcage$EO\317\206.java" +++ "b/eo-runtime/src/main/java/EOorg/EOeolang/EOcage$EO\317\206.java" @@ -24,8 +24,9 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang; +package EOorg.EOeolang; // NOPMD import org.eolang.Atom; import org.eolang.Attr; @@ -42,6 +43,7 @@ */ @Versionized @XmirObject(oname = "cage.@") +@SuppressWarnings("PMD.AvoidDollarSigns") public final class EOcage$EOφ extends PhDefault implements Atom { @Override public Phi lambda() throws Exception { diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EOdataized.java b/eo-runtime/src/main/java/EOorg/EOeolang/EOdataized.java index 560c4a2656..6d254c8fe4 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EOdataized.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EOdataized.java @@ -24,8 +24,9 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang; +package EOorg.EOeolang; // NOPMD import org.eolang.AtVoid; import org.eolang.Atom; @@ -46,6 +47,7 @@ public final class EOdataized extends PhDefault implements Atom { /** * Ctor. */ + @SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors") public EOdataized() { this.add("target", new AtVoid("target")); } diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOdir$EOmade$EOmkdir.java b/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOdir$EOmade$EOmkdir.java index f7d6a0a4f7..d2ab169673 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOdir$EOmade$EOmkdir.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOdir$EOmade$EOmkdir.java @@ -24,8 +24,9 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang.EOfs; +package EOorg.EOeolang.EOfs; // NOPMD import java.nio.file.Paths; import org.eolang.Atom; @@ -43,6 +44,7 @@ * @checkstyle TypeNameCheck (100 lines) */ @XmirObject(oname = "dir.made.mkdir") +@SuppressWarnings("PMD.AvoidDollarSigns") public final class EOdir$EOmade$EOmkdir extends PhDefault implements Atom { @Override public Phi lambda() throws Exception { diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOdir$EOtmpfile$EOtouch.java b/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOdir$EOtmpfile$EOtouch.java index 67c5c82f79..1c83a88679 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOdir$EOtmpfile$EOtouch.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOdir$EOtmpfile$EOtouch.java @@ -24,8 +24,9 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang.EOfs; +package EOorg.EOeolang.EOfs; // NOPMD import java.nio.file.Files; import java.nio.file.Path; @@ -45,6 +46,7 @@ * @checkstyle TypeNameCheck (100 lines) */ @XmirObject(oname = "dir.tmpfile.touch") +@SuppressWarnings("PMD.AvoidDollarSigns") public final class EOdir$EOtmpfile$EOtouch extends PhDefault implements Atom { @Override public Phi lambda() throws Exception { diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOfile$EOexists.java b/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOfile$EOexists.java index 7ae74a7ff0..c3a201e2bd 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOfile$EOexists.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOfile$EOexists.java @@ -24,8 +24,9 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang.EOfs; +package EOorg.EOeolang.EOfs; // NOPMD import java.nio.file.Files; import java.nio.file.Paths; @@ -44,6 +45,7 @@ * @checkstyle TypeNameCheck (100 lines) */ @XmirObject(oname = "file.exists") +@SuppressWarnings("PMD.AvoidDollarSigns") public final class EOfile$EOexists extends PhDefault implements Atom { @Override public Phi lambda() throws Exception { diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOfile$EOmoved$EOmove.java b/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOfile$EOmoved$EOmove.java index 7830c7de2b..bade501019 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOfile$EOmoved$EOmove.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOfile$EOmoved$EOmove.java @@ -24,8 +24,9 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang.EOfs; +package EOorg.EOeolang.EOfs; // NOPMD import java.nio.file.Files; import java.nio.file.Path; @@ -45,6 +46,7 @@ * @checkstyle TypeNameCheck (100 lines) */ @XmirObject(oname = "file.moved.move") +@SuppressWarnings("PMD.AvoidDollarSigns") public final class EOfile$EOmoved$EOmove extends PhDefault implements Atom { @Override public Phi lambda() throws Exception { diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOfile$EOopen$EOfile_stream$EOwrite$EOwritten_bytes.java b/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOfile$EOopen$EOfile_stream$EOwrite$EOwritten_bytes.java index e07418650a..ce4d068bce 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOfile$EOopen$EOfile_stream$EOwrite$EOwritten_bytes.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOfile$EOopen$EOfile_stream$EOwrite$EOwritten_bytes.java @@ -24,8 +24,9 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang.EOfs; +package EOorg.EOeolang.EOfs; // NOPMD import java.nio.file.Paths; import org.eolang.AtVoid; @@ -44,6 +45,7 @@ * @checkstyle TypeNameCheck (100 lines) */ @XmirObject(oname = "file.open.file-stream.write.written-bytes") +@SuppressWarnings("PMD.AvoidDollarSigns") public final class EOfile$EOopen$EOfile_stream$EOwrite$EOwritten_bytes extends PhDefault implements Atom { @@ -51,6 +53,7 @@ public final class EOfile$EOopen$EOfile_stream$EOwrite$EOwritten_bytes /** * Ctor. */ + @SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors") public EOfile$EOopen$EOfile_stream$EOwrite$EOwritten_bytes() { this.add("buffer", new AtVoid("buffer")); } diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOfile$EOopen$EOprocess_file.java b/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOfile$EOopen$EOprocess_file.java index ecb25cbfd7..928ba0f7cb 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOfile$EOopen$EOprocess_file.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOfile$EOopen$EOprocess_file.java @@ -24,8 +24,9 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang.EOfs; +package EOorg.EOeolang.EOfs; // NOPMD import java.nio.file.Paths; import org.eolang.Atom; diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOfile$EOresolved$EOresolve.java b/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOfile$EOresolved$EOresolve.java index b4c89adb45..d391dda411 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOfile$EOresolved$EOresolve.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOfile$EOresolved$EOresolve.java @@ -24,12 +24,11 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang.EOfs; +package EOorg.EOeolang.EOfs; // NOPMD -import java.nio.file.Files; import java.nio.file.Paths; -import java.util.Arrays; import org.eolang.Atom; import org.eolang.Attr; import org.eolang.Data; @@ -45,6 +44,7 @@ * @checkstyle TypeNameCheck (100 lines) */ @XmirObject(oname = "file.resolved.resolve") +@SuppressWarnings("PMD.AvoidDollarSigns") public final class EOfile$EOresolved$EOresolve extends PhDefault implements Atom { @Override public Phi lambda() throws Exception { diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOfile$EOsize.java b/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOfile$EOsize.java index 6f28e32b1e..177795ab1a 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOfile$EOsize.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOfile$EOsize.java @@ -24,8 +24,9 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang.EOfs; +package EOorg.EOeolang.EOfs; // NOPMD import java.io.File; import org.eolang.Atom; @@ -43,6 +44,7 @@ * @checkstyle TypeNameCheck (100 lines) */ @XmirObject(oname = "file.size") +@SuppressWarnings("PMD.AvoidDollarSigns") public final class EOfile$EOsize extends PhDefault implements Atom { @Override public Phi lambda() throws Exception { diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOfile$EOtouched$EOtouch.java b/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOfile$EOtouched$EOtouch.java index 70d5952c32..647dc3b067 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOfile$EOtouched$EOtouch.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/EOfile$EOtouched$EOtouch.java @@ -24,8 +24,9 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang.EOfs; +package EOorg.EOeolang.EOfs; // NOPMD import java.nio.file.Paths; import org.eolang.Atom; @@ -43,6 +44,7 @@ * @checkstyle TypeNameCheck (100 lines) */ @XmirObject(oname = "file.touched.touch") +@SuppressWarnings("PMD.AvoidDollarSigns") public final class EOfile$EOtouched$EOtouch extends PhDefault implements Atom { @Override public Phi lambda() throws Exception { diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/Files.java b/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/Files.java index b713837d7d..cd00bd1722 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/Files.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/Files.java @@ -24,8 +24,9 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang.EOfs; +package EOorg.EOeolang.EOfs; // NOPMD import java.io.FileInputStream; import java.io.FileNotFoundException; @@ -52,13 +53,13 @@ final class Files { /** * File input streams for reading. */ - private final ConcurrentHashMap streams = new ConcurrentHashMap<>(0); + private final ConcurrentHashMap streams; /** * Ctor. */ private Files() { - // singleton :( + this.streams = new ConcurrentHashMap<>(0); } /** diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/package-info.java b/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/package-info.java index 756ccd05a3..e90ffe71be 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/package-info.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EOfs/package-info.java @@ -27,5 +27,6 @@ * * @since 0.40 * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang.EOfs; +package EOorg.EOeolang.EOfs; // NOPMD diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EOio/EOconsole$EOread$EOread_bytes.java b/eo-runtime/src/main/java/EOorg/EOeolang/EOio/EOconsole$EOread$EOread_bytes.java index 443c703311..bf32646d9f 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EOio/EOconsole$EOread$EOread_bytes.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EOio/EOconsole$EOread$EOread_bytes.java @@ -24,8 +24,9 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang.EOio; +package EOorg.EOeolang.EOio; // NOPMD import java.io.IOException; import java.io.InputStream; @@ -47,6 +48,7 @@ */ @Versionized @XmirObject(oname = "console.read.read-bytes") +@SuppressWarnings("PMD.AvoidDollarSigns") public final class EOconsole$EOread$EOread_bytes extends PhDefault implements Atom { /** * Input stream to read bytes from. @@ -64,12 +66,14 @@ public final class EOconsole$EOread$EOread_bytes extends PhDefault implements At * Ctor for the tests. * @param input Stream to read from */ + @SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors") EOconsole$EOread$EOread_bytes(final InputStream input) { this.input = input; this.add("size", new AtVoid("size")); } @Override + @SuppressWarnings("PMD.AssignmentInOperand") public Phi lambda() throws IOException { final int size = new Dataized(this.take("size")).asNumber().intValue(); final byte[] read = new byte[size]; diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EOio/EOconsole$EOwrite$EOwritten_bytes.java b/eo-runtime/src/main/java/EOorg/EOeolang/EOio/EOconsole$EOwrite$EOwritten_bytes.java index c136e49006..7383380c9a 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EOio/EOconsole$EOwrite$EOwritten_bytes.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EOio/EOconsole$EOwrite$EOwritten_bytes.java @@ -24,12 +24,12 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang.EOio; +package EOorg.EOeolang.EOio; // NOPMD import java.io.IOException; import java.io.OutputStream; -import java.io.PrintStream; import org.eolang.AtVoid; import org.eolang.Atom; import org.eolang.Data; @@ -47,6 +47,7 @@ */ @Versionized @XmirObject(oname = "console.write.written-bytes") +@SuppressWarnings("PMD.AvoidDollarSigns") public final class EOconsole$EOwrite$EOwritten_bytes extends PhDefault implements Atom { /** * Stream to write out. @@ -64,6 +65,7 @@ public final class EOconsole$EOwrite$EOwritten_bytes extends PhDefault implement * Ctor for the tests. * @param out Stream to print */ + @SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors") public EOconsole$EOwrite$EOwritten_bytes(final OutputStream out) { this.out = out; this.add("buffer", new AtVoid("buffer")); diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EOio/package-info.java b/eo-runtime/src/main/java/EOorg/EOeolang/EOio/package-info.java index f15d02bbc9..81b4f11d47 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EOio/package-info.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EOio/package-info.java @@ -27,5 +27,6 @@ * * @since 0.1 * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang.EOio; +package EOorg.EOeolang.EOio; // NOPMD diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EOmalloc$EOof$EOallocated$EOread.java b/eo-runtime/src/main/java/EOorg/EOeolang/EOmalloc$EOof$EOallocated$EOread.java index ef45e70cea..ef0ee22d69 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EOmalloc$EOof$EOallocated$EOread.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EOmalloc$EOof$EOallocated$EOread.java @@ -24,9 +24,9 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ - -package EOorg.EOeolang; +package EOorg.EOeolang; // NOPMD import org.eolang.AtVoid; import org.eolang.Atom; @@ -45,10 +45,12 @@ */ @Versionized @XmirObject(oname = "malloc.of.allocated.read") +@SuppressWarnings("PMD.AvoidDollarSigns") public final class EOmalloc$EOof$EOallocated$EOread extends PhDefault implements Atom { /** * Ctor. */ + @SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors") EOmalloc$EOof$EOallocated$EOread() { this.add("offset", new AtVoid("offset")); this.add("length", new AtVoid("length")); diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EOnumber$EOfloor.java b/eo-runtime/src/main/java/EOorg/EOeolang/EOnumber$EOfloor.java index 789405d8b8..fa8d70a389 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EOnumber$EOfloor.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EOnumber$EOfloor.java @@ -24,8 +24,9 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang; +package EOorg.EOeolang; // NOPMD import org.eolang.Atom; import org.eolang.Attr; @@ -44,6 +45,7 @@ */ @Versionized @XmirObject(oname = "number.floor") +@SuppressWarnings("PMD.AvoidDollarSigns") public final class EOnumber$EOfloor extends PhDefault implements Atom { @Override public Phi lambda() { diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EOnumber$EOgt.java b/eo-runtime/src/main/java/EOorg/EOeolang/EOnumber$EOgt.java index 9d648d69c4..2236d7820d 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EOnumber$EOgt.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EOnumber$EOgt.java @@ -24,8 +24,9 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang; +package EOorg.EOeolang; // NOPMD import org.eolang.AtVoid; import org.eolang.Atom; @@ -45,10 +46,12 @@ */ @Versionized @XmirObject(oname = "number.gt") +@SuppressWarnings("PMD.AvoidDollarSigns") public final class EOnumber$EOgt extends PhDefault implements Atom { /** * Ctor. */ + @SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors") public EOnumber$EOgt() { this.add("x", new AtVoid("x")); } diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EOrust.java b/eo-runtime/src/main/java/EOorg/EOeolang/EOrust.java index 56f2ddd5b2..0559c2ed06 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EOrust.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EOrust.java @@ -23,9 +23,10 @@ */ /* - * @checkstyle PackageNameCheck (8 lines) + * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang; +package EOorg.EOeolang; // NOPMD import java.io.ByteArrayInputStream; import java.io.File; @@ -40,6 +41,7 @@ import java.util.Arrays; import java.util.Base64; import java.util.HashMap; +import java.util.Locale; import java.util.Map; import java.util.Optional; import java.util.concurrent.ConcurrentHashMap; @@ -67,6 +69,7 @@ */ @Versionized @XmirObject(oname = "rust") +@SuppressWarnings("PMD.AvoidDirectAccessToStaticFields") public final class EOrust extends PhDefault implements Atom { /** @@ -78,12 +81,12 @@ public final class EOrust extends PhDefault implements Atom { /** * All phis indexed while executing of native method. */ - private final Map phis = new HashMap<>(); + private final Map phis; /** * Error that possibly was thrown while the native function execution. */ - private final AtomicReference error = new AtomicReference<>(); + private final AtomicReference error; static { try { @@ -95,7 +98,7 @@ public final class EOrust extends PhDefault implements Atom { ); } final String lib; - final String system = System.getProperty("os.name").toLowerCase(); + final String system = System.getProperty("os.name").toLowerCase(Locale.ENGLISH); if (system.contains("win")) { lib = "common.dll"; } else if (system.contains("nix") || system.contains("nux") || system.contains("aix")) { @@ -130,7 +133,10 @@ public final class EOrust extends PhDefault implements Atom { /** * Ctor. */ + @SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors") public EOrust() { + this.phis = new HashMap<>(); + this.error = new AtomicReference<>(); this.add("code", new AtVoid("code")); this.add("portal", new AtVoid("portal")); this.add("params", new AtVoid("params")); diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EOstring$EOslice.java b/eo-runtime/src/main/java/EOorg/EOeolang/EOstring$EOslice.java index 49b7db85e4..b997b1fa93 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EOstring$EOslice.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EOstring$EOslice.java @@ -24,8 +24,9 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang; +package EOorg.EOeolang; // NOPMD import org.eolang.AtVoid; import org.eolang.Atom; @@ -46,10 +47,12 @@ */ @Versionized @XmirObject(oname = "string.slice") +@SuppressWarnings("PMD.AvoidDollarSigns") public final class EOstring$EOslice extends PhDefault implements Atom { /** * Ctor. */ + @SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors") public EOstring$EOslice() { this.add("start", new AtVoid("start")); this.add("len", new AtVoid("len")); @@ -57,22 +60,22 @@ public final class EOstring$EOslice extends PhDefault implements Atom { @Override public Phi lambda() { - final String str = new Dataized(this.take(Attr.RHO)).asString(); final int start = new Dataized(this.take("start")).asNumber().intValue(); final int length = new Dataized(this.take("len")).asNumber().intValue(); - final int end = length + start; if (start < 0) { throw new ExFailure( "Start index must be greater than 0 but was %d", start ); } + final int end = length + start; if (start > end) { throw new ExFailure( "End index must be greater or equal to start but was %d < %d", end, start ); } + final String str = new Dataized(this.take(Attr.RHO)).asString(); if (end > str.length()) { throw new ExFailure( "Start index + length must not exceed string length but was %d > %d", diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EOsys/EOgetenv.java b/eo-runtime/src/main/java/EOorg/EOeolang/EOsys/EOgetenv.java index 92446d50d5..cecbbe627a 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EOsys/EOgetenv.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EOsys/EOgetenv.java @@ -24,8 +24,9 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang.EOsys; +package EOorg.EOeolang.EOsys; // NOPMD import org.eolang.AtVoid; import org.eolang.Atom; @@ -45,6 +46,7 @@ public final class EOgetenv extends PhDefault implements Atom { /** * Ctor. */ + @SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors") public EOgetenv() { this.add("name", new AtVoid("name")); } diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EOsys/EOos$EOname.java b/eo-runtime/src/main/java/EOorg/EOeolang/EOsys/EOos$EOname.java index ddded9b97b..b22c869a4d 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EOsys/EOos$EOname.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EOsys/EOos$EOname.java @@ -24,8 +24,9 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang.EOsys; +package EOorg.EOeolang.EOsys; // NOPMD import org.eolang.Atom; import org.eolang.Data; @@ -39,6 +40,7 @@ * @checkstyle TypeNameCheck (5 lines) */ @XmirObject(oname = "os.name") +@SuppressWarnings("PMD.AvoidDollarSigns") public final class EOos$EOname extends PhDefault implements Atom { /** * Operating system name as {@link Phi}. diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EOsys/package-info.java b/eo-runtime/src/main/java/EOorg/EOeolang/EOsys/package-info.java index c68fca72e7..cb3e7227e0 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EOsys/package-info.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EOsys/package-info.java @@ -27,5 +27,6 @@ * * @since 0.39 * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang.EOsys; +package EOorg.EOeolang.EOsys; // NOPMD diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EOtry.java b/eo-runtime/src/main/java/EOorg/EOeolang/EOtry.java index 6f447ce09e..5ced014c03 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EOtry.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EOtry.java @@ -24,8 +24,9 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang; +package EOorg.EOeolang; // NOPMD import java.util.function.Consumer; import java.util.function.Function; @@ -50,6 +51,7 @@ public final class EOtry extends PhDefault implements Atom { /** * Ctor. */ + @SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors") public EOtry() { this.add("main", new AtVoid("main")); this.add("catch", new AtVoid("catch")); diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EOtxt/package-info.java b/eo-runtime/src/main/java/EOorg/EOeolang/EOtxt/package-info.java index fd3647da08..10dffc6cbe 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EOtxt/package-info.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EOtxt/package-info.java @@ -27,5 +27,6 @@ * * @since 0.39 * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang.EOtxt; +package EOorg.EOeolang.EOtxt; // NOPMD diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/Heaps.java b/eo-runtime/src/main/java/EOorg/EOeolang/Heaps.java index 00ae973236..6299e58a5f 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/Heaps.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/Heaps.java @@ -24,8 +24,9 @@ /* * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg.EOeolang; +package EOorg.EOeolang; // NOPMD import java.util.Arrays; import java.util.concurrent.ConcurrentHashMap; @@ -49,14 +50,13 @@ final class Heaps { /** * All. */ - private final ConcurrentHashMap blocks = - new ConcurrentHashMap<>(0); + private final ConcurrentHashMap blocks; /** * Ctor. */ private Heaps() { - // intentionally empty, it's a singleton :( + this.blocks = new ConcurrentHashMap<>(0); } /** diff --git a/eo-runtime/src/main/java/EOorg/package-info.java b/eo-runtime/src/main/java/EOorg/package-info.java index 5e470d12a1..700acecdea 100644 --- a/eo-runtime/src/main/java/EOorg/package-info.java +++ b/eo-runtime/src/main/java/EOorg/package-info.java @@ -27,5 +27,6 @@ * * @since 0.1 * @checkstyle PackageNameCheck (4 lines) + * @checkstyle TrailingCommentCheck (3 lines) */ -package EOorg; +package EOorg; // NOPMD