mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 00:40:49 +00:00
fix strings pointing to enum fields in ResultCode java class
This commit is contained in:
parent
042f914dc5
commit
db80070ccb
@ -4,7 +4,7 @@
|
|||||||
<target name="clean">
|
<target name="clean">
|
||||||
<delete dir="bin" failonerror="false"/>
|
<delete dir="bin" failonerror="false"/>
|
||||||
<delete dir="classes" failonerror="false"/>
|
<delete dir="classes" failonerror="false"/>
|
||||||
<!--<delete dir="libs" failonerror="false"/>-->
|
<delete dir="libs" failonerror="false"/>
|
||||||
<delete dir="obj" failonerror="false"/>
|
<delete dir="obj" failonerror="false"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -38,20 +38,20 @@ jobject createResultObject(JNIEnv *env, ZT1_ResultCode code)
|
|||||||
switch(code)
|
switch(code)
|
||||||
{
|
{
|
||||||
case ZT1_RESULT_OK:
|
case ZT1_RESULT_OK:
|
||||||
fieldName = "ZT1_RESULT_OK";
|
fieldName = "RESULT_OK";
|
||||||
break;
|
break;
|
||||||
case ZT1_RESULT_FATAL_ERROR_OUT_OF_MEMORY:
|
case ZT1_RESULT_FATAL_ERROR_OUT_OF_MEMORY:
|
||||||
fieldName = "ZT1_RESULT_FATAL_ERROR_OUT_OF_MEMORY";
|
fieldName = "RESULT_FATAL_ERROR_OUT_OF_MEMORY";
|
||||||
break;
|
break;
|
||||||
case ZT1_RESULT_FATAL_ERROR_DATA_STORE_FAILED:
|
case ZT1_RESULT_FATAL_ERROR_DATA_STORE_FAILED:
|
||||||
fieldName = "ZT1_RESULT_FATAL_ERROR_DATA_STORE_FAILED";
|
fieldName = "RESULT_FATAL_ERROR_DATA_STORE_FAILED";
|
||||||
break;
|
break;
|
||||||
case ZT1_RESULT_ERROR_NETWORK_NOT_FOUND:
|
case ZT1_RESULT_ERROR_NETWORK_NOT_FOUND:
|
||||||
fieldName = "ZT1_RESULT_ERROR_NETWORK_NOT_FOUND";
|
fieldName = "RESULT_ERROR_NETWORK_NOT_FOUND";
|
||||||
break;
|
break;
|
||||||
case ZT1_RESULT_FATAL_ERROR_INTERNAL:
|
case ZT1_RESULT_FATAL_ERROR_INTERNAL:
|
||||||
default:
|
default:
|
||||||
fieldName = "ZT1_RESULT_FATAL_ERROR_INTERNAL";
|
fieldName = "RESULT_FATAL_ERROR_INTERNAL";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user