📍Use lombok, reformat, and optimize the code (#1560)

* Use lombok, reformat, and optimize the code

* Fix merge conflicts and some sonar issues

Co-authored-by: va1m <va1m@email.com>
This commit is contained in:
va1m
2021-03-13 14:19:21 +02:00
committed by GitHub
co-authored by va1m
parent 0e26a6adb5
commit 5cf2fe009b
681 changed files with 2472 additions and 4966 deletions
@@ -37,13 +37,13 @@ import org.junit.jupiter.api.Test;
*
* @author Jeroen Meulemeester
*/
public class ServiceLocatorTest {
class ServiceLocatorTest {
/**
* Verify if we just receive 'null' when requesting a non-existing service
*/
@Test
public void testGetNonExistentService() {
void testGetNonExistentService() {
assertNull(ServiceLocator.getService("fantastic/unicorn/service"));
assertNull(ServiceLocator.getService("another/fantastic/unicorn/service"));
}
@@ -52,7 +52,7 @@ public class ServiceLocatorTest {
* Verify if we get the same cached instance when requesting the same service twice
*/
@Test
public void testServiceCache() {
void testServiceCache() {
final var serviceNames = List.of("jndi/serviceA", "jndi/serviceB");
for (final var serviceName : serviceNames) {