diff --git a/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/diagramrecognition/Connector.java b/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/diagramrecognition/Connector.java index 3ca10d7a3..263147720 100644 --- a/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/diagramrecognition/Connector.java +++ b/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/diagramrecognition/Connector.java @@ -11,6 +11,7 @@ public final class Connector implements Serializable { private List connectedBoxes; private List texts = new ArrayList<>(); + @SuppressWarnings("unused") private Connector() { // Jackson JSON } diff --git a/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/CodeModel.java b/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/CodeModel.java index 48cfc4dc2..068d6e8b0 100644 --- a/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/CodeModel.java +++ b/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/CodeModel.java @@ -31,6 +31,7 @@ public final class CodeModel extends Model { @JsonIgnore private boolean initialized; + @SuppressWarnings("unused") private CodeModel() { // Jackson this.initialized = false; diff --git a/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/code/ClassUnit.java b/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/code/ClassUnit.java index e0c424548..1091ae6ba 100644 --- a/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/code/ClassUnit.java +++ b/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/code/ClassUnit.java @@ -1,4 +1,4 @@ -/* Licensed under MIT 2023. */ +/* Licensed under MIT 2023-2024. */ package edu.kit.kastel.mcse.ardoco.core.api.models.arcotl.code; import java.util.ArrayList; @@ -15,6 +15,7 @@ public final class ClassUnit extends Datatype { @JsonProperty private final List content; + @SuppressWarnings("unused") private ClassUnit() { // Jackson content = new ArrayList<>(); diff --git a/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/code/CodeAssembly.java b/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/code/CodeAssembly.java index 688d6b01c..82fe3bb6b 100644 --- a/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/code/CodeAssembly.java +++ b/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/code/CodeAssembly.java @@ -1,4 +1,4 @@ -/* Licensed under MIT 2023. */ +/* Licensed under MIT 2023-2024. */ package edu.kit.kastel.mcse.ardoco.core.api.models.arcotl.code; import java.util.SortedSet; @@ -8,6 +8,7 @@ @JsonTypeName("CodeAssembly") public final class CodeAssembly extends CodeModule { + @SuppressWarnings("unused") private CodeAssembly() { // Jackson } diff --git a/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/code/CodeCompilationUnit.java b/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/code/CodeCompilationUnit.java index 051e3e50a..2b0da3d08 100644 --- a/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/code/CodeCompilationUnit.java +++ b/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/code/CodeCompilationUnit.java @@ -1,4 +1,4 @@ -/* Licensed under MIT 2023. */ +/* Licensed under MIT 2023-2024. */ package edu.kit.kastel.mcse.ardoco.core.api.models.arcotl.code; import java.util.ArrayList; @@ -24,6 +24,7 @@ public final class CodeCompilationUnit extends CodeModule { @JsonProperty private ProgrammingLanguage language; + @SuppressWarnings("unused") private CodeCompilationUnit() { // Jackson } diff --git a/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/code/CodePackage.java b/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/code/CodePackage.java index d1d9f79bf..5973e4fe2 100644 --- a/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/code/CodePackage.java +++ b/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/code/CodePackage.java @@ -1,4 +1,4 @@ -/* Licensed under MIT 2023. */ +/* Licensed under MIT 2023-2024. */ package edu.kit.kastel.mcse.ardoco.core.api.models.arcotl.code; import java.util.SortedSet; @@ -9,6 +9,7 @@ @JsonTypeName("CodePackage") public final class CodePackage extends CodeModule { + @SuppressWarnings("unused") private CodePackage() { // Jackson } diff --git a/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/code/ControlElement.java b/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/code/ControlElement.java index 62322c89a..1d1e3497f 100644 --- a/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/code/ControlElement.java +++ b/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/code/ControlElement.java @@ -1,4 +1,4 @@ -/* Licensed under MIT 2023. */ +/* Licensed under MIT 2023-2024. */ package edu.kit.kastel.mcse.ardoco.core.api.models.arcotl.code; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -6,6 +6,7 @@ @JsonTypeName("ControlElement") public final class ControlElement extends ComputationalObject { + @SuppressWarnings("unused") private ControlElement() { // Jackson } diff --git a/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/code/InterfaceUnit.java b/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/code/InterfaceUnit.java index d47c12e16..00132baf0 100644 --- a/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/code/InterfaceUnit.java +++ b/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/code/InterfaceUnit.java @@ -1,4 +1,4 @@ -/* Licensed under MIT 2023. */ +/* Licensed under MIT 2023-2024. */ package edu.kit.kastel.mcse.ardoco.core.api.models.arcotl.code; import java.util.ArrayList; @@ -16,6 +16,7 @@ public final class InterfaceUnit extends Datatype { @JsonProperty private List content; + @SuppressWarnings("unused") private InterfaceUnit() { // Jackson } diff --git a/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/common/util/wordsim/UnicodeCharacter.java b/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/common/util/wordsim/UnicodeCharacter.java index b2ec664ae..940cf1e32 100644 --- a/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/common/util/wordsim/UnicodeCharacter.java +++ b/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/common/util/wordsim/UnicodeCharacter.java @@ -5,20 +5,23 @@ import java.util.Arrays; import java.util.LinkedHashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import org.eclipse.collections.api.list.ImmutableList; import org.eclipse.collections.impl.factory.Lists; +import edu.kit.kastel.mcse.ardoco.core.architecture.Deterministic; + /** * Represents a Unicode character corresponding to a particular Unicode code point. Refer to the * Unicode Glossary * and the Java {@link Character} documentation for an explanation of code points. Java {@link Character} instances and the corresponding primitive {@code char} * can not represent all unicode characters in a single instance due to historic reasons. */ -//TODO More documentation +@Deterministic public final class UnicodeCharacter implements Serializable { - private static final LinkedHashMap integerToUnicode = new LinkedHashMap<>(); + private static final Map integerToUnicode = new LinkedHashMap<>(); private final int codePoint; diff --git a/pipeline-core/src/main/java/edu/kit/kastel/mcse/ardoco/core/execution/ArDoCo.java b/pipeline-core/src/main/java/edu/kit/kastel/mcse/ardoco/core/execution/ArDoCo.java index abc1cc754..2672d5b7d 100644 --- a/pipeline-core/src/main/java/edu/kit/kastel/mcse/ardoco/core/execution/ArDoCo.java +++ b/pipeline-core/src/main/java/edu/kit/kastel/mcse/ardoco/core/execution/ArDoCo.java @@ -27,6 +27,7 @@ public final class ArDoCo extends Pipeline { /** * Default constructor to adhere simplify tests that do not care about the project's name. Additionally, it is needed for testing the configurations */ + @SuppressWarnings("unused") private ArDoCo() { this(""); }