Skip to content

Commit

Permalink
Minor warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dfuchss committed Mar 7, 2024
1 parent 84f6bf1 commit 7229193
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public final class Connector implements Serializable {
private List<String> connectedBoxes;
private List<TextBox> texts = new ArrayList<>();

@SuppressWarnings("unused")
private Connector() {
// Jackson JSON
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public final class CodeModel extends Model {
@JsonIgnore
private boolean initialized;

@SuppressWarnings("unused")
private CodeModel() {
// Jackson
this.initialized = false;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -15,6 +15,7 @@ public final class ClassUnit extends Datatype {
@JsonProperty
private final List<String> content;

@SuppressWarnings("unused")
private ClassUnit() {
// Jackson
content = new ArrayList<>();
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -8,6 +8,7 @@
@JsonTypeName("CodeAssembly")
public final class CodeAssembly extends CodeModule {

@SuppressWarnings("unused")
private CodeAssembly() {
// Jackson
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -24,6 +24,7 @@ public final class CodeCompilationUnit extends CodeModule {
@JsonProperty
private ProgrammingLanguage language;

@SuppressWarnings("unused")
private CodeCompilationUnit() {
// Jackson
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -9,6 +9,7 @@
@JsonTypeName("CodePackage")
public final class CodePackage extends CodeModule {

@SuppressWarnings("unused")
private CodePackage() {
// Jackson
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
/* 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;

@JsonTypeName("ControlElement")
public final class ControlElement extends ComputationalObject {

@SuppressWarnings("unused")
private ControlElement() {
// Jackson
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -16,6 +16,7 @@ public final class InterfaceUnit extends Datatype {
@JsonProperty
private List<String> content;

@SuppressWarnings("unused")
private InterfaceUnit() {
// Jackson
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
* <a href="http://www.unicode.org/glossary/">Unicode Glossary</a>
* 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<Integer, UnicodeCharacter> integerToUnicode = new LinkedHashMap<>();
private static final Map<Integer, UnicodeCharacter> integerToUnicode = new LinkedHashMap<>();

private final int codePoint;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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("");
}
Expand Down

0 comments on commit 7229193

Please sign in to comment.