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;
*/
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 defaultTarget;
......
......@@ -56,7 +56,7 @@ public class ImageUtils {
/* default value is 200 pixel in height, set the value in the configuration file */
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}")
private int thumbWidth = THUMB_WIDTH_DEFAULT;
......
......@@ -87,7 +87,7 @@ import java.util.List;
@EnableWebSecurity
@Profile("!test")
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;
......
......@@ -37,7 +37,7 @@ import java.util.Map;
@Controller
@RequestMapping({"/configuration", "/arsnova-config"})
public class ConfigurationController extends AbstractController {
public static final Logger logger = LoggerFactory
private static final Logger logger = LoggerFactory
.getLogger(ConfigurationController.class);
@Value("${api.path:}")
......
......@@ -45,7 +45,7 @@ import java.util.List;
@RestController
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)
private ConnectorClient connectorClient;
......
......@@ -43,7 +43,7 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
public class FeedbackController extends AbstractController {
public static final Logger logger = LoggerFactory.getLogger(FeedbackController.class);
private static final Logger logger = LoggerFactory.getLogger(FeedbackController.class);
@Autowired
private IFeedbackService feedbackService;
......
......@@ -56,7 +56,7 @@ import java.util.List;
@Api(value = "/lecturerquestion", description = "Operations for Lecture Questions")
public class LecturerQuestionController extends PaginationController {
public static final Logger logger = LoggerFactory.getLogger(LecturerQuestionController.class);
private static final Logger logger = LoggerFactory.getLogger(LecturerQuestionController.class);
@Autowired
private IQuestionService questionService;
......
......@@ -141,7 +141,7 @@ public class LoginController extends AbstractController {
@Autowired
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 })
public void doLogin(
......
......@@ -63,7 +63,7 @@ import java.util.List;
@Api(value = "/session", description = "the Session Controller API")
public class SessionController extends PaginationController {
public static final Logger logger = LoggerFactory.getLogger(SessionController.class);
private static final Logger logger = LoggerFactory.getLogger(SessionController.class);
@Autowired
private ISessionService sessionService;
......
......@@ -48,7 +48,7 @@ public class UserController extends AbstractController {
@Autowired
private UserSessionService userSessionService;
public static final Logger logger = LoggerFactory
private static final Logger logger = LoggerFactory
.getLogger(UserController.class);
@RequestMapping(value = "/register", method = RequestMethod.POST)
......
......@@ -96,7 +96,7 @@ public class CouchDBDao implements IDatabaseDao, ApplicationEventPublisherAware
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}")
public void setDatabaseHost(final String newDatabaseHost) {
......
......@@ -31,7 +31,7 @@ import java.util.Collection;
* to get a consistent ID despite case insensitivity.
*/
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;
......
......@@ -41,7 +41,7 @@ public class DbUserDetailsService implements UserDetailsService {
@Autowired
private IDatabaseDao dao;
public static final Logger logger = LoggerFactory
private static final Logger logger = LoggerFactory
.getLogger(DbUserDetailsService.class);
@Override
......
......@@ -67,7 +67,7 @@ public class QuestionService implements IQuestionService, ApplicationEventPublis
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<>();
......
......@@ -126,7 +126,7 @@ public class SessionService implements ISessionService, ApplicationEventPublishe
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)
public void deleteInactiveSessions() {
......
......@@ -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_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<>();
......
......@@ -25,7 +25,7 @@ import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
import java.util.List;
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) {
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