diff --git a/java/com/facebook/yoga/YogaConfig.java b/java/com/facebook/yoga/YogaConfig.java index bd7b2998ce..0ca8571e95 100644 --- a/java/com/facebook/yoga/YogaConfig.java +++ b/java/com/facebook/yoga/YogaConfig.java @@ -27,5 +27,5 @@ public abstract class YogaConfig { public abstract YogaLogger getLogger(); - abstract long getNativePointer(); + protected abstract long getNativePointer(); } diff --git a/java/com/facebook/yoga/YogaConfigJNIBase.java b/java/com/facebook/yoga/YogaConfigJNIBase.java index 8e7c94921c..07263e6df3 100644 --- a/java/com/facebook/yoga/YogaConfigJNIBase.java +++ b/java/com/facebook/yoga/YogaConfigJNIBase.java @@ -60,7 +60,7 @@ public YogaLogger getLogger() { return mLogger; } - long getNativePointer() { + protected long getNativePointer() { return mNativePointer; } }