I tried de-compiling a Java file but instead of giving the exact code the de-compilation gave me was a code that was using goto statements and label
Now i want to extract the code that was used. Can anyone help?
@Override
public int getItemViewType(int i)
{
int j = 1;
if (!displaySearchField || i != 0) goto _L2; else goto _L1
_L1:
j = 0;
_L4:
return j;
_L2:
int k = i;
if (displaySearchField)
{
k--;
}
if (!(items.get(k) instanceof Group))
{
continue; /* Loop/switch isn't completed */
}
if (displaySearchField) goto _L4; else goto _L3
_L3:
return 0;
if (!displaySearchField) goto _L4; else goto _L5
_L5:
return 2;
}