Skip to content

[feature] reverse if expression's condition #28

@neocanable

Description

@neocanable

jd.apk

    public void x(Activity activity) {
        this.g = 0;
        if (activity == null) {
        }
        else {
            Intent intent = activity.getIntent();
            if (intent == null) {
            }
            else {
                if (TextUtils.equals("openXView", k.D(intent, "subType"))) {
                }
                else {
                    a aVar = new a(intent);
                }
                this.g = aVar;
            }
        }
    }

need change to

    public void x(Activity activity) {
        this.g = 0;

        if (activity != null) {
            Intent intent = activity.getIntent();
            if (intent != null) {
                if (!TextUtils.equals("openXView", k.D(intent, "subType"))) {
                    a aVar = new a(intent);
                }
                this.g = aVar;
            }
        }
    }

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfeatureNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions