-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
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
[core] Miss of casts among primitive types #718
Comments
And one more example public int getItemCount() {
boolean z = this.mHasFooter;
List<OPTION> list = this.mOptions;
if (list != null) {
return list.size() + z; // int + boolean
}
return z ? 1 : 0;
} |
Similar issue in method overloading: public class n {
private int a = 0;
private long b = 0;
public void a(int i) {
this.a = i;
}
public void a(long j) {
this.b = j;
}
...
} And jadx decompile result was: a = new n();
a.a(i);
a.a(-1); // Actually result should be a.a(-1L), calling method with Long type parameter This issue exist in version 1.0.0. |
@skylot public CApdu(@NonNull Cla cla, @NonNull Ins ins, byte b, byte b2, @NonNull byte[] bArr) {
this(cla, ins, b, b2, bArr, (byte) 0);
}
public CApdu(@NonNull Cla cla, @NonNull Ins ins, byte b, byte b2, @NonNull byte[] bArr, byte b3) { but not the first one private boolean isGoogleMapsInstalledAndEnabled() {
int i = 0;
try {
return getActivity().getPackageManager().getApplicationInfo("com.google.android.apps.maps", i).enabled;
} catch (PackageManager.NameNotFoundException unused) {
return i;
}
} |
skylot
added a commit
that referenced
this issue
Oct 28, 2019
@sergey-wowwow I made a fix for the first one. Thanks for notice! |
@skylot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Checks before report
Describe error
Class
com.paypal.android.p2pmobile.cfs.common.fragments.BaseShowCodeFragment
Another example is in file
com/paypal/android/sdk/contactless/reader/apdu/CApdu.java
APK: https://drive.google.com/file/d/1fCN9PXu8Zw4Kdnhgd0_qmzEvgWLfEU-9/view?usp=sharing
The text was updated successfully, but these errors were encountered: