fixed @Nullable missing infer errors
Summary: Fixed Nullable lint errors Reviewed By: davidaurelio Differential Revision: D14383930 fbshipit-source-id: 0847e19c50a0b8d4039199045b74aa86c96ac096
This commit is contained in:
committed by
Facebook Github Bot
parent
85352c4e45
commit
a2ee0f65bd
@@ -213,6 +213,7 @@ public abstract class YogaNode {
|
|||||||
|
|
||||||
public abstract void setData(Object data);
|
public abstract void setData(Object data);
|
||||||
|
|
||||||
|
@Nullable
|
||||||
public abstract Object getData();
|
public abstract Object getData();
|
||||||
|
|
||||||
public abstract void print();
|
public abstract void print();
|
||||||
|
@@ -14,12 +14,12 @@ import javax.annotation.Nullable;
|
|||||||
@DoNotStrip
|
@DoNotStrip
|
||||||
public abstract class YogaNodeJNIBase extends YogaNode {
|
public abstract class YogaNodeJNIBase extends YogaNode {
|
||||||
|
|
||||||
private YogaNodeJNIBase mOwner;
|
@Nullable private YogaNodeJNIBase mOwner;
|
||||||
@Nullable private List<YogaNodeJNIBase> mChildren;
|
@Nullable private List<YogaNodeJNIBase> mChildren;
|
||||||
private YogaMeasureFunction mMeasureFunction;
|
@Nullable private YogaMeasureFunction mMeasureFunction;
|
||||||
private YogaBaselineFunction mBaselineFunction;
|
@Nullable private YogaBaselineFunction mBaselineFunction;
|
||||||
private long mNativePointer;
|
private long mNativePointer;
|
||||||
private Object mData;
|
@Nullable private Object mData;
|
||||||
|
|
||||||
/* Those flags needs be in sync with YGJNI.cpp */
|
/* Those flags needs be in sync with YGJNI.cpp */
|
||||||
private static final int MARGIN = 1;
|
private static final int MARGIN = 1;
|
||||||
@@ -623,7 +623,8 @@ public abstract class YogaNodeJNIBase extends YogaNode {
|
|||||||
mData = data;
|
mData = data;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Object getData() {
|
@Override
|
||||||
|
public @Nullable Object getData() {
|
||||||
return mData;
|
return mData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user