We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey!
I've noticed weird conditions when decompiled. Let's assume that we have the following code:
void test(String action) { if ("a".equals(action)) { do1(); } else if ("b".equals(action)) { do2(); } else if ("c".equals(action)) { do3(); } }
However, it's always decompiled to
void test(String action) { if ("a".equals(action)) { do1(); } else if ("b".equals(action)) { do2(); } else if (!"c".equals(action)) { } else { do3(); } }
It includes not only string conditions, but all of them. Is there a way to make the decompiled code more pretty?
An example is in method com.samsung.android.aircommandmanager.AirCommandManager.AirCmdBroadcastReceiver.onReceive() in APK https://drive.google.com/file/d/1-awUDVr7qOf6ao_H7-f_bnWHgluavt7M/view?usp=sharing:
com.samsung.android.aircommandmanager.AirCommandManager.AirCmdBroadcastReceiver.onReceive()
} else if ("com.sec.android.facm.START_WIFI_SOCKET_CONNECT".equals(action)) { m369s(stringExtra, stringExtra2); } else if (!"com.sec.android.facm.START_WIFI_AP_CONNECT".equals(action)) { } else { m373o(stringExtra, stringExtra2); }
The text was updated successfully, but these errors were encountered:
fix: handle empty block at end of else-if chain (#1674)
else-if
151c171
@bagipro fixed, thanks for report 👍
Sorry, something went wrong.
No branches or pull requests
Hey!
I've noticed weird conditions when decompiled. Let's assume that we have the following code:
However, it's always decompiled to
It includes not only string conditions, but all of them. Is there a way to make the decompiled code more pretty?
An example is in method
com.samsung.android.aircommandmanager.AirCommandManager.AirCmdBroadcastReceiver.onReceive()
in APK https://drive.google.com/file/d/1-awUDVr7qOf6ao_H7-f_bnWHgluavt7M/view?usp=sharing:The text was updated successfully, but these errors were encountered: