Skip to content

Commit

Permalink
Remove @NotNull annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
nck-mlcnv committed Nov 13, 2023
1 parent cd86f42 commit 34f6ff2
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 14 deletions.
1 change: 0 additions & 1 deletion docs/develop/extend-metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ The following gives you an examples on how to work with the `data` parameter:
}

@Override
@Nonnull
public Model createMetricModel(StresstestMetadata task, Map<String, List<QueryExecutionStats>> data) {
for (String queryID : task.queryIDS()) {
// This list contains every query execution statistics of one query from
Expand Down
5 changes: 0 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,6 @@
<artifactId>spring-context</artifactId>
<version>6.0.11</version>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>2.0.1.Final</version>
</dependency>
</dependencies>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@
import org.apache.jena.rdf.model.Model;
import org.apache.jena.rdf.model.ModelFactory;

import javax.validation.constraints.NotNull;
import java.util.List;
import java.util.Map;

public interface ModelWritingMetric {
default @NotNull Model createMetricModel(List<HttpWorker> workers, List<HttpWorker.ExecutionStats>[][] data, IRES.Factory iresFactory) {
default Model createMetricModel(List<HttpWorker> workers, List<HttpWorker.ExecutionStats>[][] data, IRES.Factory iresFactory) {
return ModelFactory.createDefaultModel();
}

default @NotNull Model createMetricModel(List<HttpWorker> workers, Map<String, List<HttpWorker.ExecutionStats>> data, IRES.Factory iresFactory) {
default Model createMetricModel(List<HttpWorker> workers, Map<String, List<HttpWorker.ExecutionStats>> data, IRES.Factory iresFactory) {
return ModelFactory.createDefaultModel();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import org.apache.jena.rdf.model.ResourceFactory;
import org.apache.jena.vocabulary.RDF;

import javax.validation.constraints.NotNull;
import java.math.BigInteger;
import java.time.Duration;
import java.util.List;
Expand All @@ -28,7 +27,6 @@ public AggregatedExecutionStatistics() {
}

@Override
@NotNull
public Model createMetricModel(List<HttpWorker> workers, List<HttpWorker.ExecutionStats>[][] data, IRES.Factory iresFactory) {
Model m = ModelFactory.createDefaultModel();
for (var worker : workers) {
Expand All @@ -41,7 +39,6 @@ public Model createMetricModel(List<HttpWorker> workers, List<HttpWorker.Executi
}

@Override
@NotNull
public Model createMetricModel(List<HttpWorker> workers, Map<String, List<HttpWorker.ExecutionStats>> data, IRES.Factory iresFactory) {
Model m = ModelFactory.createDefaultModel();
for (String queryID : data.keySet()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import org.apache.jena.rdf.model.Resource;
import org.apache.jena.rdf.model.ResourceFactory;

import javax.validation.constraints.NotNull;
import java.math.BigInteger;
import java.util.List;

Expand All @@ -22,7 +21,6 @@ public EachExecutionStatistic() {
}

@Override
@NotNull
public Model createMetricModel(List<HttpWorker> workers, List<HttpWorker.ExecutionStats>[][] data, IRES.Factory iresFactory) {
Model m = ModelFactory.createDefaultModel();
for (var worker : workers) {
Expand Down

0 comments on commit 34f6ff2

Please sign in to comment.