Permalink
Browse files

Mark model fields final

Reviewed By: emilsjolander

Differential Revision: D6759564

fbshipit-source-id: 810dc8a9730fb330760d2aedecafcea81cf25cb1
  • Loading branch information...
passy authored and facebook-github-bot committed Jan 22, 2018
1 parent f49f793 commit ff2658c3de111ef745d9582c6863ab0d6c90f960
@@ -22,7 +22,7 @@
SPACE_BETWEEN(6),
SPACE_AROUND(7);
private int mIntValue;
private final int mIntValue;
YogaAlign(int intValue) {
mIntValue = intValue;
@@ -16,7 +16,7 @@
WIDTH(0),
HEIGHT(1);
private int mIntValue;
private final int mIntValue;
YogaDimension(int intValue) {
mIntValue = intValue;
@@ -17,7 +17,7 @@
LTR(1),
RTL(2);
private int mIntValue;
private final int mIntValue;
YogaDirection(int intValue) {
mIntValue = intValue;
@@ -16,7 +16,7 @@
FLEX(0),
NONE(1);
private int mIntValue;
private final int mIntValue;
YogaDisplay(int intValue) {
mIntValue = intValue;
@@ -23,7 +23,7 @@
VERTICAL(7),
ALL(8);
private int mIntValue;
private final int mIntValue;
YogaEdge(int intValue) {
mIntValue = intValue;
@@ -15,7 +15,7 @@
public enum YogaExperimentalFeature {
WEB_FLEX_BASIS(0);
private int mIntValue;
private final int mIntValue;
YogaExperimentalFeature(int intValue) {
mIntValue = intValue;
@@ -18,7 +18,7 @@
ROW(2),
ROW_REVERSE(3);
private int mIntValue;
private final int mIntValue;
YogaFlexDirection(int intValue) {
mIntValue = intValue;
@@ -20,7 +20,7 @@
SPACE_AROUND(4),
SPACE_EVENLY(5);
private int mIntValue;
private final int mIntValue;
YogaJustify(int intValue) {
mIntValue = intValue;
@@ -20,7 +20,7 @@
VERBOSE(4),
FATAL(5);
private int mIntValue;
private final int mIntValue;
YogaLogLevel(int intValue) {
mIntValue = intValue;
@@ -17,7 +17,7 @@
EXACTLY(1),
AT_MOST(2);
private int mIntValue;
private final int mIntValue;
YogaMeasureMode(int intValue) {
mIntValue = intValue;
@@ -33,13 +33,13 @@
private List<YogaNode> mChildren;
private YogaMeasureFunction mMeasureFunction;
private YogaBaselineFunction mBaselineFunction;
private long mNativePointer;
private final long mNativePointer;
private Object mData;
/* Those flags needs be in sync with YGJNI.cpp */
private final static int MARGIN = 1;
private final static int PADDING = 2;
private final static int BORDER = 4;
private static final int MARGIN = 1;
private static final int PADDING = 2;
private static final int BORDER = 4;
@DoNotStrip
private int mEdgeSetFlag = 0;
@@ -100,6 +100,7 @@ public YogaNode(YogaConfig config) {
}
private native void jni_YGNodeFree(long nativePointer);
@Override
protected void finalize() throws Throwable {
try {
jni_YGNodeFree(mNativePointer);
@@ -170,7 +171,8 @@ public YogaNode removeChildAt(int i) {
return child;
}
public @Nullable
@Nullable
public
YogaNode getParent() {
return mParent;
}
@@ -16,7 +16,7 @@
DEFAULT(0),
TEXT(1);
private int mIntValue;
private final int mIntValue;
YogaNodeType(int intValue) {
mIntValue = intValue;
@@ -17,7 +17,7 @@
HIDDEN(1),
SCROLL(2);
private int mIntValue;
private final int mIntValue;
YogaOverflow(int intValue) {
mIntValue = intValue;
@@ -16,7 +16,7 @@
RELATIVE(0),
ABSOLUTE(1);
private int mIntValue;
private final int mIntValue;
YogaPositionType(int intValue) {
mIntValue = intValue;
@@ -17,7 +17,7 @@
STYLE(2),
CHILDREN(4);
private int mIntValue;
private final int mIntValue;
YogaPrintOptions(int intValue) {
mIntValue = intValue;
@@ -18,7 +18,7 @@
PERCENT(2),
AUTO(3);
private int mIntValue;
private final int mIntValue;
YogaUnit(int intValue) {
mIntValue = intValue;
@@ -17,7 +17,7 @@
WRAP(1),
WRAP_REVERSE(2);
private int mIntValue;
private final int mIntValue;
YogaWrap(int intValue) {
mIntValue = intValue;

0 comments on commit ff2658c

Please sign in to comment.