Deprecate the constructor of Correspondence internally, and hide it externally.
RELNOTES=Hid constuctor of `Correspondence`. Use the class's static factory methods instead. The most mechanical migration is usually to `Correspondence.from`.
@@ -317,8 +317,12 @@ public abstract class Correspondence<A, E> {
* Constructor. Creating subclasses (anonymous or otherwise) of this class is <i>not
* recommended</i>, but is possible via this constructor. The recommended approach is to use the
* factory methods instead (see {@linkplain Correspondence class-level documentation}).
+ *
+ * @deprecated Construct an instance with the static factory methods instead. The most mechanical
+ * migration is usually to {@link #from}.
*/
- protected Correspondence() {}
+ @Deprecated
+ Correspondence() {}
/**
* Returns a new correspondence which is like this one, except that the given formatter may be
