Skip to content

Commit

Permalink
apply spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
johanah29 committed Dec 9, 2024
1 parent 4ad3e90 commit 4353f33
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
import io.openbas.database.model.Endpoint;
import jakarta.persistence.Convert;
import jakarta.validation.constraints.NotBlank;

import java.util.*;

import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

import java.time.Instant;
import java.util.ArrayList;
import java.util.List;

import lombok.Builder;
import lombok.Builder.Default;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@
import jakarta.persistence.EnumType;
import jakarta.persistence.Enumerated;
import jakarta.validation.constraints.NotNull;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;

import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
Expand Down
3 changes: 0 additions & 3 deletions openbas-api/src/main/java/io/openbas/utils/InjectMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
import io.openbas.atomic_testing.TargetType;
import io.openbas.database.model.*;
import io.openbas.rest.atomic_testing.form.*;

import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.Set;

import lombok.RequiredArgsConstructor;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Component;
Expand Down Expand Up @@ -99,7 +97,6 @@ private PayloadSimple toPayloadSimple(Optional<Payload> payload) {
.orElse(null);
}


// -- STATUS to STATUSIMPLE --
public InjectStatusOutput toInjectStatusOutput(Optional<InjectStatus> injectStatus) {
return injectStatus
Expand Down
2 changes: 0 additions & 2 deletions openbas-api/src/main/java/io/openbas/utils/PayloadMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@
import io.openbas.database.model.*;
import io.openbas.rest.atomic_testing.form.AttackPatternSimple;
import io.openbas.rest.atomic_testing.form.StatusPayloadOutput;

import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.Optional;

import org.hibernate.Hibernate;
import org.springframework.stereotype.Component;

Expand Down

0 comments on commit 4353f33

Please sign in to comment.