Make fields immutable (final) where possible
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user