Commit 2f81c979 authored by Jyrgen Hannus's avatar Jyrgen Hannus

SonarQube analysis code smell cleanup

parent c32df088
package ee.sm.ti.teis.officials.group;
import ee.sm.ti.teis.exceptions.TeisResourceNotFoundException;
import ee.sm.ti.teis.types.enums.ObjectStatus;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import org.springframework.data.repository.CrudRepository;
......@@ -13,7 +12,7 @@ public interface OfficialsGroupRepository extends CrudRepository<OfficialsGroupE
List<OfficialsGroupEntity> findByObjectStatus(ObjectStatus status);
OfficialsGroupEntity findFirstByIdAndObjectStatus(UUID id, ObjectStatus status) throws TeisResourceNotFoundException;
OfficialsGroupEntity findFirstByIdAndObjectStatus(UUID id, ObjectStatus status);
List<OfficialsGroupEntity> findAll();
......
......@@ -6,12 +6,9 @@ import ee.sm.ti.teis.domainrequest.DomainResponseDTO;
import ee.sm.ti.teis.officials.config.QueueConfig;
import ee.sm.ti.teis.officials.group.OfficialsGroupEntity;
import ee.sm.ti.teis.officials.group.service.OfficialsGroupService;
import ee.sm.ti.teis.types.enums.ObjectStatus;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;
import static java.util.Optional.ofNullable;
@Component
public class OfficialsGroupMsListener {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment