Skip to content

Commit

Permalink
Deprecate the constructor of Correspondence internally, and hide it e…
Browse files Browse the repository at this point in the history
…xternally.

RELNOTES=Hid constuctor of `Correspondence`. Use the class's static factory methods instead. The most mechanical migration is usually to `Correspondence.from`.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=250305892
  • Loading branch information
cpovirk authored and travis-ci committed May 29, 2019
1 parent f1adb5d commit 11da1ca
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,12 @@ public String toString() {
* 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
Expand Down

0 comments on commit 11da1ca

Please sign in to comment.