Formatting and little optimization

This commit is contained in:
Marcel Schwarz 2020-05-09 19:13:50 +02:00
parent 8e7f9c06d3
commit 6abdab2cf6
2 changed files with 2 additions and 3 deletions

View File

@ -5,7 +5,6 @@ import de.hft.geotime.timetrackaccount.TimetrackAccount;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.UniqueElements;
import javax.persistence.*; import javax.persistence.*;
import java.util.List; import java.util.List;

View File

@ -10,8 +10,8 @@ import org.springframework.web.bind.annotation.*;
@RequestMapping("/user") @RequestMapping("/user")
public class UserController { public class UserController {
private TimetrackUserRepository userRepository; private final TimetrackUserRepository userRepository;
private BCryptPasswordEncoder bCryptPasswordEncoder; private final BCryptPasswordEncoder bCryptPasswordEncoder;
public UserController(TimetrackUserRepository userRepository, BCryptPasswordEncoder bCryptPasswordEncoder) { public UserController(TimetrackUserRepository userRepository, BCryptPasswordEncoder bCryptPasswordEncoder) {
this.userRepository = userRepository; this.userRepository = userRepository;