Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
BE-#0: Code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Drumber committed Apr 24, 2024
1 parent f3a95e8 commit 8888413
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ public SecurityFilterChain filterChain(
"/webjars/**",
"/oauth2/authorization/google",
"/login",
"/landingpage",
"/swagger-ui",
"/swagger-ui/**",
"/v3/api-docs/**").permitAll()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ public Authentication authenticate(Authentication authentication) throws Authent
return null;
}
authentication.setAuthenticated(true);
log.debug("Authenticated: " + authentication);
return authentication;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
@RequestMapping("/event")
public class EventController {

private EventService eventService;
private final EventService eventService;

public EventController(EventService eventService) {
EventController(EventService eventService) {
this.eventService = eventService;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class EventService {
private final EventRepository eventRepository;
private final UserService userService;

public EventService(
EventService(
EventMapper eventMapper, EventRepository eventRepository, UserService userService, Environment env) {
this.eventMapper = eventMapper;
this.eventRepository = eventRepository;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
@RestController
public class UserController {

@Autowired
UserService userService;
private final UserService userService;

UserController(UserService userService) {
this.userService = userService;
}

@GetMapping("/error")
public String error(HttpServletRequest request) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class OAuthUserService extends DefaultOAuth2UserService {

private final UserService userService;

public OAuthUserService(@Autowired UserService userService) {
OAuthUserService(UserService userService) {
this.userService = userService;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class UserService {
private final UserRepository userRepository;
private final UserMapper userMapper;

public UserService(@Autowired UserRepository userRepository, UserMapper userMapper) {
UserService(UserRepository userRepository, UserMapper userMapper) {
this.userRepository = userRepository;
this.userMapper = userMapper;
}
Expand Down

This file was deleted.

0 comments on commit 8888413

Please sign in to comment.