Code cleanup

This commit is contained in:
Ilkka Seppälä
2020-07-30 17:25:32 +03:00
parent 5381387026
commit 981985531d
243 changed files with 1157 additions and 1166 deletions

View File

@ -38,7 +38,7 @@ import org.slf4j.LoggerFactory;
public final class CallsCount {
private static final Logger LOGGER = LoggerFactory.getLogger(CallsCount.class);
private Map<String, AtomicLong> tenantCallsCount = new ConcurrentHashMap<>();
private final Map<String, AtomicLong> tenantCallsCount = new ConcurrentHashMap<>();
/**
* Add a new tenant to the map.

View File

@ -30,8 +30,8 @@ import java.security.InvalidParameterException;
*/
public class Tenant {
private String name;
private int allowedCallsPerSecond;
private final String name;
private final int allowedCallsPerSecond;
/**
* Constructor.

View File

@ -34,7 +34,7 @@ import org.junit.jupiter.api.Test;
*/
public class B2BServiceTest {
private CallsCount callsCount = new CallsCount();
private final CallsCount callsCount = new CallsCount();
@Test
public void dummyCustomerApiTest() {