Skip to content

Commit

Permalink
Fixes typo in java.lang.Throwable
Browse files Browse the repository at this point in the history
Change-Id: I0d32e9ac7a6e436ac9a36a8ac7ff49338c4de908
  • Loading branch information
gkdn committed Jan 28, 2019
1 parent 329b219 commit a0294a6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions user/super/com/google/gwt/emul/java/lang/Throwable.java
Expand Up @@ -52,7 +52,7 @@ public class Throwable implements Serializable {
private transient Throwable[] suppressedExceptions; private transient Throwable[] suppressedExceptions;
private transient StackTraceElement[] stackTrace = new StackTraceElement[0]; private transient StackTraceElement[] stackTrace = new StackTraceElement[0];
private transient boolean disableSuppression; private transient boolean disableSuppression;
private transient boolean writetableStackTrace = true; private transient boolean writableStackTrace = true;


@JsProperty @JsProperty
private transient Object backingJsObject = UNINITIALIZED; private transient Object backingJsObject = UNINITIALIZED;
Expand Down Expand Up @@ -87,12 +87,12 @@ public Throwable(Throwable cause) {
* Those features should only be disabled in very specific cases. * Those features should only be disabled in very specific cases.
*/ */
protected Throwable(String message, Throwable cause, boolean enableSuppression, protected Throwable(String message, Throwable cause, boolean enableSuppression,
boolean writetableStackTrace) { boolean writableStackTrace) {
this.cause = cause; this.cause = cause;
this.detailMessage = message; this.detailMessage = message;
this.writetableStackTrace = writetableStackTrace; this.writableStackTrace = writableStackTrace;
this.disableSuppression = !enableSuppression; this.disableSuppression = !enableSuppression;
if (writetableStackTrace) { if (writableStackTrace) {
fillInStackTrace(); fillInStackTrace();
} }
initializeBackingError(); initializeBackingError();
Expand Down Expand Up @@ -184,7 +184,7 @@ public final void addSuppressed(Throwable exception) {
*/ */
@DoNotInline @DoNotInline
public Throwable fillInStackTrace() { public Throwable fillInStackTrace() {
if (writetableStackTrace) { if (writableStackTrace) {
// If this is the first run, let constructor initialize it. // If this is the first run, let constructor initialize it.
// (We need to initialize the backingJsObject from constructor as our own implementation of // (We need to initialize the backingJsObject from constructor as our own implementation of
// fillInStackTrace is not guaranteed to be executed.) // fillInStackTrace is not guaranteed to be executed.)
Expand Down

0 comments on commit a0294a6

Please sign in to comment.