Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 338d39b9 authored by László Dávid's avatar László Dávid
Browse files

Call to equals() comparing different types

I have found the bug with the FindBugs tool (http://findbugs.sourceforge.net)

Call to String.equals(android.content.ComponentName)
at ActivityManagerService.java [line 8874]
in method dumpActivitesLocked(..)

Change-Id: I99851de024b55b53f1b206f0645b6fe29f865784
parent 56c014f2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8871,7 +8871,7 @@ public final class ActivityManagerService extends ActivityManagerNative
                TaskRecord tr = mRecentTasks.get(i);
                if (dumpPackage != null) {
                    if (tr.realActivity == null ||
                            !dumpPackage.equals(tr.realActivity)) {
                            !dumpPackage.equals(tr.realActivity.getPackageName())) {
                        continue;
                    }
                }