Backed out changeset f883d868ce31 (bug 1550185) for failing android checkstyle on a CLOSED TREE
authorAndreea Pavel <apavel@mozilla.com>
Thu, 09 May 2019 00:45:47 +0300
changeset 531947 f9c6e9cd8754bc3299a6c024410d8946ebea7f06
parent 531946 d6756af108596e5a27548d397f1dd72d44c45854
child 531948 9b6e243f261203cbc078d25a9725c0e5ac44003f
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1550185
milestone68.0a1
backs outf883d868ce316ef506df5dd52cd0b9697c63760d
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out changeset f883d868ce31 (bug 1550185) for failing android checkstyle on a CLOSED TREE
mobile/android/geckoview/src/main/java/org/mozilla/gecko/CrashHandler.java
--- a/mobile/android/geckoview/src/main/java/org/mozilla/gecko/CrashHandler.java
+++ b/mobile/android/geckoview/src/main/java/org/mozilla/gecko/CrashHandler.java
@@ -51,22 +51,20 @@ public class CrashHandler implements Thr
     /**
      * Get the root exception from the 'cause' chain of an exception.
      *
      * @param exc An exception
      * @return The root exception
      */
     public static Throwable getRootException(final Throwable exc) {
         Throwable cause;
-        Throwable result = exc;
         for (cause = exc; cause != null; cause = cause.getCause()) {
-          result = cause;
         }
 
-        return result;
+        return cause;
     }
 
     /**
      * Get the standard stack trace string of an exception.
      *
      * @param exc An exception
      * @return The exception stack trace.
      */