Rename init() -> reinit() to be more in line with what it now does
Summary: Rename init() -> reinit() to be more in line with what it now does as the initiall init is done when constructing the object. Reviewed By: lucasr Differential Revision: D3992811 fbshipit-source-id: 61a10acc873ec028b2789007a400d89e62cf31d6
This commit is contained in:
committed by
Facebook Github Bot
parent
23acf2156f
commit
41b64478c4
@@ -36,7 +36,7 @@ public class CSSNode implements CSSNodeAPI<CSSNode> {
|
||||
private Object mData;
|
||||
|
||||
public CSSNode() {
|
||||
init();
|
||||
reinit();
|
||||
}
|
||||
|
||||
private void assertNativeInstance() {
|
||||
@@ -47,7 +47,7 @@ public class CSSNode implements CSSNodeAPI<CSSNode> {
|
||||
|
||||
private native long jni_CSSNodeNew();
|
||||
@Override
|
||||
public void init() {
|
||||
public void reinit() {
|
||||
if (mNativePointer != 0) {
|
||||
throw new IllegalStateException("Allready initialized node");
|
||||
}
|
||||
|
Reference in New Issue
Block a user