Add back deprecated getParent methods for non-breaking API change (#775)

Summary:
I'm not totally sure what I'm doing so if this needs changes let me know.
Closes https://github.com/facebook/yoga/pull/775

Reviewed By: emilsjolander

Differential Revision: D8331892

Pulled By: passy

fbshipit-source-id: eb1023e666322d2472e4081fd4a4e72a7b43d049
This commit is contained in:
Vince Mi
2018-06-11 04:07:38 -07:00
committed by Facebook Github Bot
parent b47f0ce41a
commit 526ca42d04
5 changed files with 13 additions and 3 deletions

View File

@@ -234,15 +234,14 @@ public class YogaNode implements Cloneable {
* {@link YogaNode} is shared between two or more YogaTrees.
*/
@Nullable
public
YogaNode getOwner() {
public YogaNode getOwner() {
return mOwner;
}
/** @deprecated Use #getOwner() instead. This will be removed in the next version. */
@Deprecated
@Nullable
YogaNode getParent() {
public YogaNode getParent() {
return getOwner();
}