I am working on a project for which I have reverse engineered the code of other project. But, the code contains so much goto
statements and a label
with it.
I tried to rearrange the code as per the labels used, but not getting the proper output. I know this could be out of scope for you guys because you don't know the code.
My query is regarding how can I use the labeled statements in Android, as I am unable to find any specific code or demo examples.
Below is the code snippet of the code on which I am working.
public static String computeIMEI()
{
String s1 = ((TelephonyManager)getInstance().getSystemService("phone")).getDeviceId();
if (s1 != null) goto _L2; else goto _L1
_L1:
String s = "not available";
_L4:
Log.d("IMEI", (new StringBuilder()).append("got deviceID='").append(s).append("'").toString());
return s;
_L2:
s = s1;
if (s1.equals("000000000000000"))
{
s = "1971b8df0a9dccfd";
}
if (true) goto _L4; else goto _L3
_L3:
}
Your little help will be much appreciated, thank you.