Deprecate `ObjectAssert(AtomicReference)`
package org.assertj.core.api;
import java.util.concurrent.atomic.AtomicReference;
+import java.util.function.Consumer;
/**
* Assertion methods for {@link Object}s.
@@ -32,7 +33,12 @@ public class ObjectAssert<ACTUAL> extends AbstractObjectAssert<ObjectAssert<ACTU
super(actual, ObjectAssert.class);
}
+ /**
+ * @deprecated use {@code assertThat(actual.get())} or {@link AtomicReferenceAssert#hasValueSatisfying(Consumer)}.
+ */
+ @Deprecated
public ObjectAssert(AtomicReference<ACTUAL> actual) {
this(actual == null ? null : actual.get());
}
+
}
