File tree 17 files changed +23
-21
lines changed
ReactAndroid/src/main/java/com/facebook/yoga
17 files changed +23
-21
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public enum YogaAlign {
22
22
SPACE_BETWEEN (6 ),
23
23
SPACE_AROUND (7 );
24
24
25
- private int mIntValue ;
25
+ private final int mIntValue ;
26
26
27
27
YogaAlign (int intValue ) {
28
28
mIntValue = intValue ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public enum YogaDimension {
16
16
WIDTH (0 ),
17
17
HEIGHT (1 );
18
18
19
- private int mIntValue ;
19
+ private final int mIntValue ;
20
20
21
21
YogaDimension (int intValue ) {
22
22
mIntValue = intValue ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ public enum YogaDirection {
17
17
LTR (1 ),
18
18
RTL (2 );
19
19
20
- private int mIntValue ;
20
+ private final int mIntValue ;
21
21
22
22
YogaDirection (int intValue ) {
23
23
mIntValue = intValue ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public enum YogaDisplay {
16
16
FLEX (0 ),
17
17
NONE (1 );
18
18
19
- private int mIntValue ;
19
+ private final int mIntValue ;
20
20
21
21
YogaDisplay (int intValue ) {
22
22
mIntValue = intValue ;
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public enum YogaEdge {
23
23
VERTICAL (7 ),
24
24
ALL (8 );
25
25
26
- private int mIntValue ;
26
+ private final int mIntValue ;
27
27
28
28
YogaEdge (int intValue ) {
29
29
mIntValue = intValue ;
Original file line number Diff line number Diff line change 15
15
public enum YogaExperimentalFeature {
16
16
WEB_FLEX_BASIS (0 );
17
17
18
- private int mIntValue ;
18
+ private final int mIntValue ;
19
19
20
20
YogaExperimentalFeature (int intValue ) {
21
21
mIntValue = intValue ;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public enum YogaFlexDirection {
18
18
ROW (2 ),
19
19
ROW_REVERSE (3 );
20
20
21
- private int mIntValue ;
21
+ private final int mIntValue ;
22
22
23
23
YogaFlexDirection (int intValue ) {
24
24
mIntValue = intValue ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ public enum YogaJustify {
20
20
SPACE_AROUND (4 ),
21
21
SPACE_EVENLY (5 );
22
22
23
- private int mIntValue ;
23
+ private final int mIntValue ;
24
24
25
25
YogaJustify (int intValue ) {
26
26
mIntValue = intValue ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ public enum YogaLogLevel {
20
20
VERBOSE (4 ),
21
21
FATAL (5 );
22
22
23
- private int mIntValue ;
23
+ private final int mIntValue ;
24
24
25
25
YogaLogLevel (int intValue ) {
26
26
mIntValue = intValue ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ public enum YogaMeasureMode {
17
17
EXACTLY (1 ),
18
18
AT_MOST (2 );
19
19
20
- private int mIntValue ;
20
+ private final int mIntValue ;
21
21
22
22
YogaMeasureMode (int intValue ) {
23
23
mIntValue = intValue ;
Original file line number Diff line number Diff line change @@ -33,13 +33,13 @@ public class YogaNode {
33
33
private List <YogaNode > mChildren ;
34
34
private YogaMeasureFunction mMeasureFunction ;
35
35
private YogaBaselineFunction mBaselineFunction ;
36
- private long mNativePointer ;
36
+ private final long mNativePointer ;
37
37
private Object mData ;
38
38
39
39
/* Those flags needs be in sync with YGJNI.cpp */
40
- private final static int MARGIN = 1 ;
41
- private final static int PADDING = 2 ;
42
- private final static int BORDER = 4 ;
40
+ private static final int MARGIN = 1 ;
41
+ private static final int PADDING = 2 ;
42
+ private static final int BORDER = 4 ;
43
43
44
44
@ DoNotStrip
45
45
private int mEdgeSetFlag = 0 ;
@@ -100,6 +100,7 @@ public YogaNode(YogaConfig config) {
100
100
}
101
101
102
102
private native void jni_YGNodeFree (long nativePointer );
103
+ @ Override
103
104
protected void finalize () throws Throwable {
104
105
try {
105
106
jni_YGNodeFree (mNativePointer );
@@ -170,7 +171,8 @@ public YogaNode removeChildAt(int i) {
170
171
return child ;
171
172
}
172
173
173
- public @ Nullable
174
+ @ Nullable
175
+ public
174
176
YogaNode getParent () {
175
177
return mParent ;
176
178
}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public enum YogaNodeType {
16
16
DEFAULT (0 ),
17
17
TEXT (1 );
18
18
19
- private int mIntValue ;
19
+ private final int mIntValue ;
20
20
21
21
YogaNodeType (int intValue ) {
22
22
mIntValue = intValue ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ public enum YogaOverflow {
17
17
HIDDEN (1 ),
18
18
SCROLL (2 );
19
19
20
- private int mIntValue ;
20
+ private final int mIntValue ;
21
21
22
22
YogaOverflow (int intValue ) {
23
23
mIntValue = intValue ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public enum YogaPositionType {
16
16
RELATIVE (0 ),
17
17
ABSOLUTE (1 );
18
18
19
- private int mIntValue ;
19
+ private final int mIntValue ;
20
20
21
21
YogaPositionType (int intValue ) {
22
22
mIntValue = intValue ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ public enum YogaPrintOptions {
17
17
STYLE (2 ),
18
18
CHILDREN (4 );
19
19
20
- private int mIntValue ;
20
+ private final int mIntValue ;
21
21
22
22
YogaPrintOptions (int intValue ) {
23
23
mIntValue = intValue ;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public enum YogaUnit {
18
18
PERCENT (2 ),
19
19
AUTO (3 );
20
20
21
- private int mIntValue ;
21
+ private final int mIntValue ;
22
22
23
23
YogaUnit (int intValue ) {
24
24
mIntValue = intValue ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ public enum YogaWrap {
17
17
WRAP (1 ),
18
18
WRAP_REVERSE (2 );
19
19
20
- private int mIntValue ;
20
+ private final int mIntValue ;
21
21
22
22
YogaWrap (int intValue ) {
23
23
mIntValue = intValue ;
You can’t perform that action at this time.
0 commit comments