Skip to content

Commit

Permalink
Remove unused imports from new code.
Browse files Browse the repository at this point in the history
  • Loading branch information
ledsoft committed Jul 18, 2024
1 parent efeb670 commit 507e916
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
2 changes: 0 additions & 2 deletions src/main/java/cz/cvut/kbss/termit/dto/PasswordChangeDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

import java.io.Serializable;
import java.net.URI;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;

@OWLClass(iri = Vocabulary.ONTOLOGY_IRI_TERMIT + "/password-change")
public class PasswordChangeDto implements Serializable {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
package cz.cvut.kbss.termit.persistence.dao;

import cz.cvut.kbss.jopa.exceptions.NoResultException;
import cz.cvut.kbss.jopa.model.EntityManager;
import cz.cvut.kbss.jopa.model.query.criteria.CriteriaBuilder;
import cz.cvut.kbss.jopa.model.query.criteria.CriteriaQuery;
import cz.cvut.kbss.jopa.model.query.criteria.Root;
import cz.cvut.kbss.termit.exception.PersistenceException;
import cz.cvut.kbss.termit.model.PasswordChangeRequest;
import cz.cvut.kbss.termit.util.Configuration;
Expand All @@ -13,7 +9,6 @@

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

@Repository
public class PasswordChangeRequestDao extends BaseDao<PasswordChangeRequest> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import cz.cvut.kbss.termit.util.Configuration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import cz.cvut.kbss.termit.dto.PasswordChangeRequestDto;
import cz.cvut.kbss.termit.dto.mapper.DtoMapper;
import cz.cvut.kbss.termit.exception.NotFoundException;
import cz.cvut.kbss.termit.model.PasswordChangeRequest;
import cz.cvut.kbss.termit.model.UserAccount;
import cz.cvut.kbss.termit.persistence.dao.GenericDao;
Expand All @@ -12,16 +11,17 @@

import java.time.Instant;
import java.util.List;
import java.util.Optional;
import java.util.UUID;

@Service
public class PasswordChangeRequestRepositoryService extends BaseRepositoryService<PasswordChangeRequest, PasswordChangeRequestDto> {
public class PasswordChangeRequestRepositoryService
extends BaseRepositoryService<PasswordChangeRequest, PasswordChangeRequestDto> {

private final PasswordChangeRequestDao passwordChangeRequestDao;
private final DtoMapper dtoMapper;

protected PasswordChangeRequestRepositoryService(PasswordChangeRequestDao passwordChangeRequestDao, DtoMapper dtoMapper, Validator validator) {
public PasswordChangeRequestRepositoryService(PasswordChangeRequestDao passwordChangeRequestDao,
DtoMapper dtoMapper, Validator validator) {
super(validator);
this.passwordChangeRequestDao = passwordChangeRequestDao;
this.dtoMapper = dtoMapper;
Expand Down

0 comments on commit 507e916

Please sign in to comment.