Skip to content

Commit a64ca3a

Browse files
committed
Set metrics to be a test dependency
1 parent d5780d4 commit a64ca3a

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,5 @@ $RECYCLE.BIN/
128128

129129
# Log files created by default by the nohup command
130130
nohup.out
131+
132+
.flattened-pom.xml

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
<groupId>io.github.ardoco</groupId>
8686
<artifactId>metrics</artifactId>
8787
<version>${metrics.version}</version>
88+
<scope>test</scope>
8889
</dependency>
8990
<dependency>
9091
<groupId>io.github.ardoco.core</groupId>

src/main/java/edu/kit/kastel/mcse/ardoco/naer/model/NamedEntity.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33

44
import java.util.*;
55

6-
import org.jetbrains.annotations.NotNull;
7-
import org.jetbrains.annotations.Nullable;
8-
96
import com.fasterxml.jackson.annotation.JsonCreator;
107
import com.fasterxml.jackson.annotation.JsonProperty;
118

@@ -26,7 +23,6 @@ public class NamedEntity {
2623
/**
2724
* the software architecture documentation (text) in which the named entity has been recognized
2825
*/
29-
@Nullable
3026
private SoftwareArchitectureDocumentation sourceText;
3127

3228
/**
@@ -61,12 +57,11 @@ public NamedEntity(String name, NamedEntityType type) {
6157
this.occurrences = new TreeSet<>();
6258
}
6359

64-
@Nullable
6560
public SoftwareArchitectureDocumentation getSourceText() {
6661
return sourceText;
6762
}
6863

69-
public void setSourceText(@NotNull SoftwareArchitectureDocumentation sourceText) {
64+
public void setSourceText(SoftwareArchitectureDocumentation sourceText) {
7065
this.sourceText = sourceText;
7166
}
7267

@@ -188,14 +183,13 @@ private Occurrence(@JsonProperty("line") int sentenceNumber, @JsonProperty("refe
188183
this.referenceType = referenceType;
189184
}
190185

191-
@NotNull
192186
@Override
193187
public String toString() {
194188
return sentenceNumber + ":" + referenceType;
195189
}
196190

197191
@Override
198-
public int compareTo(@NotNull Occurrence o) {
192+
public int compareTo(Occurrence o) {
199193
int cmp = Integer.compare(this.sentenceNumber, o.sentenceNumber);
200194
if (cmp != 0) {
201195
return cmp;

src/main/java/edu/kit/kastel/mcse/ardoco/naer/recognizer/TwoPartPrompt.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import java.io.IOException;
55
import java.util.Set;
66

7-
import org.jetbrains.annotations.NotNull;
87
import org.slf4j.Logger;
98
import org.slf4j.LoggerFactory;
109

@@ -144,7 +143,6 @@ public Set<NamedEntity> parseAnswer(String answer, SoftwareArchitectureDocumenta
144143
return NamedEntityParser.fromJson(answer, sad);
145144
}
146145

147-
@NotNull
148146
@Override
149147
public String toString() {
150148
return "TwoPartPrompt{" + "first=\n'" + text + "'" + "\n, second=\n'" + secondText + "'}";

0 commit comments

Comments
 (0)