GitLab steht Mittwoch, den 23. September, zwischen 10:00 und 12:00 Uhr aufgrund von Wartungsarbeiten nicht zur Verfügung.

Commit c30b2ec9 authored by Daniel Gerhardt's avatar Daniel Gerhardt

Make all loggers private static final

parent 1cf48f9f
...@@ -34,7 +34,7 @@ import java.io.IOException; ...@@ -34,7 +34,7 @@ import java.io.IOException;
*/ */
public class CASLogoutSuccessHandler implements LogoutSuccessHandler { public class CASLogoutSuccessHandler implements LogoutSuccessHandler {
public static final Logger logger = LoggerFactory.getLogger(CASLogoutSuccessHandler.class); private static final Logger logger = LoggerFactory.getLogger(CASLogoutSuccessHandler.class);
private String casUrl; private String casUrl;
private String defaultTarget; private String defaultTarget;
......
...@@ -56,7 +56,7 @@ public class ImageUtils { ...@@ -56,7 +56,7 @@ public class ImageUtils {
/* default value is 200 pixel in height, set the value in the configuration file */ /* default value is 200 pixel in height, set the value in the configuration file */
static final int THUMB_HEIGHT_DEFAULT = 200; static final int THUMB_HEIGHT_DEFAULT = 200;
public static final Logger logger = LoggerFactory.getLogger(ImageUtils.class); private static final Logger logger = LoggerFactory.getLogger(ImageUtils.class);
@Value("${imageupload.thumbnail.width}") @Value("${imageupload.thumbnail.width}")
private int thumbWidth = THUMB_WIDTH_DEFAULT; private int thumbWidth = THUMB_WIDTH_DEFAULT;
......
...@@ -87,7 +87,7 @@ import java.util.List; ...@@ -87,7 +87,7 @@ import java.util.List;
@EnableWebSecurity @EnableWebSecurity
@Profile("!test") @Profile("!test")
public class SecurityConfig extends WebSecurityConfigurerAdapter implements ServletContextAware { public class SecurityConfig extends WebSecurityConfigurerAdapter implements ServletContextAware {
private final Logger logger = LoggerFactory.getLogger(SecurityConfig.class); private static final Logger logger = LoggerFactory.getLogger(SecurityConfig.class);
private ServletContext servletContext; private ServletContext servletContext;
......
...@@ -37,7 +37,7 @@ import java.util.Map; ...@@ -37,7 +37,7 @@ import java.util.Map;
@Controller @Controller
@RequestMapping({"/configuration", "/arsnova-config"}) @RequestMapping({"/configuration", "/arsnova-config"})
public class ConfigurationController extends AbstractController { public class ConfigurationController extends AbstractController {
public static final Logger logger = LoggerFactory private static final Logger logger = LoggerFactory
.getLogger(ConfigurationController.class); .getLogger(ConfigurationController.class);
@Value("${api.path:}") @Value("${api.path:}")
......
...@@ -45,7 +45,7 @@ import java.util.List; ...@@ -45,7 +45,7 @@ import java.util.List;
@RestController @RestController
public class CourseController extends AbstractController { public class CourseController extends AbstractController {
public static final Logger logger = LoggerFactory.getLogger(CourseController.class); private static final Logger logger = LoggerFactory.getLogger(CourseController.class);
@Autowired(required = false) @Autowired(required = false)
private ConnectorClient connectorClient; private ConnectorClient connectorClient;
......
...@@ -43,7 +43,7 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -43,7 +43,7 @@ import org.springframework.web.bind.annotation.RestController;
@RestController @RestController
public class FeedbackController extends AbstractController { public class FeedbackController extends AbstractController {
public static final Logger logger = LoggerFactory.getLogger(FeedbackController.class); private static final Logger logger = LoggerFactory.getLogger(FeedbackController.class);
@Autowired @Autowired
private IFeedbackService feedbackService; private IFeedbackService feedbackService;
......
...@@ -56,7 +56,7 @@ import java.util.List; ...@@ -56,7 +56,7 @@ import java.util.List;
@Api(value = "/lecturerquestion", description = "Operations for Lecture Questions") @Api(value = "/lecturerquestion", description = "Operations for Lecture Questions")
public class LecturerQuestionController extends PaginationController { public class LecturerQuestionController extends PaginationController {
public static final Logger logger = LoggerFactory.getLogger(LecturerQuestionController.class); private static final Logger logger = LoggerFactory.getLogger(LecturerQuestionController.class);
@Autowired @Autowired
private IQuestionService questionService; private IQuestionService questionService;
......
...@@ -141,7 +141,7 @@ public class LoginController extends AbstractController { ...@@ -141,7 +141,7 @@ public class LoginController extends AbstractController {
@Autowired @Autowired
private UserSessionService userSessionService; private UserSessionService userSessionService;
public static final Logger logger = LoggerFactory.getLogger(LoginController.class); private static final Logger logger = LoggerFactory.getLogger(LoginController.class);
@RequestMapping(value = { "/auth/login", "/doLogin" }, method = { RequestMethod.POST, RequestMethod.GET }) @RequestMapping(value = { "/auth/login", "/doLogin" }, method = { RequestMethod.POST, RequestMethod.GET })
public void doLogin( public void doLogin(
......
...@@ -63,7 +63,7 @@ import java.util.List; ...@@ -63,7 +63,7 @@ import java.util.List;
@Api(value = "/session", description = "the Session Controller API") @Api(value = "/session", description = "the Session Controller API")
public class SessionController extends PaginationController { public class SessionController extends PaginationController {
public static final Logger logger = LoggerFactory.getLogger(SessionController.class); private static final Logger logger = LoggerFactory.getLogger(SessionController.class);
@Autowired @Autowired
private ISessionService sessionService; private ISessionService sessionService;
......
...@@ -48,7 +48,7 @@ public class UserController extends AbstractController { ...@@ -48,7 +48,7 @@ public class UserController extends AbstractController {
@Autowired @Autowired
private UserSessionService userSessionService; private UserSessionService userSessionService;
public static final Logger logger = LoggerFactory private static final Logger logger = LoggerFactory
.getLogger(UserController.class); .getLogger(UserController.class);
@RequestMapping(value = "/register", method = RequestMethod.POST) @RequestMapping(value = "/register", method = RequestMethod.POST)
......
...@@ -96,7 +96,7 @@ public class CouchDBDao implements IDatabaseDao, ApplicationEventPublisherAware ...@@ -96,7 +96,7 @@ public class CouchDBDao implements IDatabaseDao, ApplicationEventPublisherAware
private final Queue<AbstractMap.SimpleEntry<Document, AnswerQueueElement>> answerQueue = new ConcurrentLinkedQueue<>(); private final Queue<AbstractMap.SimpleEntry<Document, AnswerQueueElement>> answerQueue = new ConcurrentLinkedQueue<>();
public static final Logger logger = LoggerFactory.getLogger(CouchDBDao.class); private static final Logger logger = LoggerFactory.getLogger(CouchDBDao.class);
@Value("${couchdb.host}") @Value("${couchdb.host}")
public void setDatabaseHost(final String newDatabaseHost) { public void setDatabaseHost(final String newDatabaseHost) {
......
...@@ -31,7 +31,7 @@ import java.util.Collection; ...@@ -31,7 +31,7 @@ import java.util.Collection;
* to get a consistent ID despite case insensitivity. * to get a consistent ID despite case insensitivity.
*/ */
public class CustomLdapUserDetailsMapper extends LdapUserDetailsMapper { public class CustomLdapUserDetailsMapper extends LdapUserDetailsMapper {
public static final Logger logger = LoggerFactory.getLogger(CustomLdapUserDetailsMapper.class); private static final Logger logger = LoggerFactory.getLogger(CustomLdapUserDetailsMapper.class);
private String userIdAttr; private String userIdAttr;
......
...@@ -41,7 +41,7 @@ public class DbUserDetailsService implements UserDetailsService { ...@@ -41,7 +41,7 @@ public class DbUserDetailsService implements UserDetailsService {
@Autowired @Autowired
private IDatabaseDao dao; private IDatabaseDao dao;
public static final Logger logger = LoggerFactory private static final Logger logger = LoggerFactory
.getLogger(DbUserDetailsService.class); .getLogger(DbUserDetailsService.class);
@Override @Override
......
...@@ -67,7 +67,7 @@ public class QuestionService implements IQuestionService, ApplicationEventPublis ...@@ -67,7 +67,7 @@ public class QuestionService implements IQuestionService, ApplicationEventPublis
private ApplicationEventPublisher publisher; private ApplicationEventPublisher publisher;
public static final Logger logger = LoggerFactory.getLogger(QuestionService.class); private static final Logger logger = LoggerFactory.getLogger(QuestionService.class);
private HashMap<String, Timer> timerList = new HashMap<>(); private HashMap<String, Timer> timerList = new HashMap<>();
......
...@@ -126,7 +126,7 @@ public class SessionService implements ISessionService, ApplicationEventPublishe ...@@ -126,7 +126,7 @@ public class SessionService implements ISessionService, ApplicationEventPublishe
private ApplicationEventPublisher publisher; private ApplicationEventPublisher publisher;
public static final Logger logger = LoggerFactory.getLogger(SessionService.class); private static final Logger logger = LoggerFactory.getLogger(SessionService.class);
@Scheduled(fixedDelay = SESSION_INACTIVITY_CHECK_INTERVAL_MS) @Scheduled(fixedDelay = SESSION_INACTIVITY_CHECK_INTERVAL_MS)
public void deleteInactiveSessions() { public void deleteInactiveSessions() {
......
...@@ -88,7 +88,7 @@ public class UserService implements IUserService { ...@@ -88,7 +88,7 @@ public class UserService implements IUserService {
private static final long ACTIVATION_KEY_CHECK_INTERVAL_MS = 30 * 60 * 1000L; private static final long ACTIVATION_KEY_CHECK_INTERVAL_MS = 30 * 60 * 1000L;
private static final long ACTIVATION_KEY_DURABILITY_MS = 6 * 60 * 60 * 1000L; private static final long ACTIVATION_KEY_DURABILITY_MS = 6 * 60 * 60 * 1000L;
public static final Logger logger = LoggerFactory.getLogger(UserService.class); private static final Logger logger = LoggerFactory.getLogger(UserService.class);
private static final ConcurrentHashMap<UUID, User> socketid2user = new ConcurrentHashMap<>(); private static final ConcurrentHashMap<UUID, User> socketid2user = new ConcurrentHashMap<>();
......
...@@ -25,7 +25,7 @@ import org.springframework.web.cors.UrlBasedCorsConfigurationSource; ...@@ -25,7 +25,7 @@ import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
import java.util.List; import java.util.List;
public class CorsFilter extends org.springframework.web.filter.CorsFilter { public class CorsFilter extends org.springframework.web.filter.CorsFilter {
protected final Logger logger = LoggerFactory.getLogger(CorsFilter.class); private final Logger logger = LoggerFactory.getLogger(CorsFilter.class);
public CorsFilter(List<String> origins) { public CorsFilter(List<String> origins) {
super(configurationSource(origins)); super(configurationSource(origins));
......
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