package org.o.ran.oam.nf.oam.adopter.pm.rest.manager;
-import static org.eclipse.jdt.annotation.Checks.requireNonNull;
-
import com.google.common.collect.ImmutableList;
import java.time.ZoneId;
import java.util.List;
if (adapters.get(hostIpAddress) != null) {
throw new AlreadyPresentException(hostIpAddress);
}
- final Adapter adapter =
+ final var adapter =
Adapter.builder().username(username).password(password).hostIpAddress(hostIpAddress).build();
final PerformanceManagementRestAgent pmRestAgent =
pmRestAgentFactory.createPerformanceManagementRestAgent(adapter).blockingGet();
@Override
public synchronized void delete(final String host) throws NotFoundException {
- LOG.info("Adapter PM adapter removed {}", requireNonNull(host));
+ LOG.info("Adapter PM adapter removed {}", host);
final PerformanceManagementRestAgent adapter = adapters.remove(host);
if (adapter == null) {
throw new NotFoundException(host);