Make fields immutable (final) where possible

This commit is contained in:
René Scheibe
2022-06-08 16:13:03 +02:00
committed by GitHub
parent 9f4428153c
commit 80af14a2e6
40 changed files with 80 additions and 84 deletions

View File

@@ -34,7 +34,7 @@ import org.springframework.integration.annotation.ServiceActivator;
*/
@MessageEndpoint
public class EvenLogger {
private static Log logger = LogFactory.getLog(EvenLogger.class);
private static final Log logger = LogFactory.getLog(EvenLogger.class);
@ServiceActivator
public void log(int i) {

View File

@@ -34,7 +34,7 @@ import org.springframework.integration.annotation.ServiceActivator;
*/
@MessageEndpoint
public class OddLogger {
private static Log logger = LogFactory.getLog(OddLogger.class);
private static final Log logger = LogFactory.getLog(OddLogger.class);
@ServiceActivator
public void log(int i) {