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

@@ -37,7 +37,8 @@ import org.springframework.stereotype.Service;
@Service("employeeSearchService")
public class EmployeeSearchService {
private static Log logger = LogFactory.getLog(EmployeeSearchService.class);
private static final Log logger = LogFactory.getLog(EmployeeSearchService.class);
/**
* The API <code>getEmployee()</code> looks up the mapped in coming message header's id param
* and fills the return object with the appropriate employee details. The return

View File

@@ -68,7 +68,7 @@ public class RestHttpClientTest {
private HttpMessageConverterExtractor<EmployeeList> responseExtractor;
private static Log logger = LogFactory.getLog(RestHttpClientTest.class);
private static final Log logger = LogFactory.getLog(RestHttpClientTest.class);
@Autowired
private Jaxb2Marshaller marshaller;