В этом очень простом классе:
Код: Выделить всё
import io.micrometer.observation.ObservationRegistry;
@Service
public final class MyService {
private final ObservationRegistry observationRegistry;
public MyService(final ObservationRegistry registry) {
this.observationRegistry = registry;
}
может раскрыть внутреннее представление, сохраняя внешне изменяемый объект в MyService.observationRegistry
Я пытался вызвать возможный метод clone() в реестре, но безуспешно.
Как это исправить? это?
Подробнее здесь: https://stackoverflow.com/questions/795 ... storing-an
Мобильная версия