Skip to content

Commit

Permalink
Short-circuit null check in Throwables#lazyStackTraceIsLazy
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=161998907
  • Loading branch information
nick-someone authored and cpovirk committed Jul 14, 2017
1 parent dd78480 commit b6c86db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion android/guava/src/com/google/common/base/Throwables.java
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ public static List<StackTraceElement> lazyStackTrace(Throwable throwable) {
@Beta
@GwtIncompatible // getStackTraceElementMethod
public static boolean lazyStackTraceIsLazy() {
return getStackTraceElementMethod != null & getStackTraceDepthMethod != null;
return getStackTraceElementMethod != null && getStackTraceDepthMethod != null;
}

@GwtIncompatible // invokeAccessibleNonThrowingMethod
Expand Down
2 changes: 1 addition & 1 deletion guava/src/com/google/common/base/Throwables.java
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ public static List<StackTraceElement> lazyStackTrace(Throwable throwable) {
@Beta
@GwtIncompatible // getStackTraceElementMethod
public static boolean lazyStackTraceIsLazy() {
return getStackTraceElementMethod != null & getStackTraceDepthMethod != null;
return getStackTraceElementMethod != null && getStackTraceDepthMethod != null;
}

@GwtIncompatible // invokeAccessibleNonThrowingMethod
Expand Down

0 comments on commit b6c86db

Please sign in to comment.