Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(356)

Unified Diff: base/android/java/src/org/chromium/base/ObserverList.java

Issue 587893002: [Checkstyle] Enable boolean simplification and fix up some issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add no empty statements check Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/android/java/src/org/chromium/base/ObserverList.java
diff --git a/base/android/java/src/org/chromium/base/ObserverList.java b/base/android/java/src/org/chromium/base/ObserverList.java
index c9a995e866d7b7df76d6459ecf9982d339cc834d..c2bb902fa42b2105d05542758b9e6b41cc49e495 100644
--- a/base/android/java/src/org/chromium/base/ObserverList.java
+++ b/base/android/java/src/org/chromium/base/ObserverList.java
@@ -66,7 +66,7 @@ public class ObserverList<E> implements Iterable<E> {
// Structurally modifying the underlying list here. This means we
// cannot use the underlying list's iterator to iterate over the list.
boolean result = mObservers.add(obs);
- assert result == true;
+ assert result;
++mCount;
return true;

Powered by Google App Engine
This is Rietveld 408576698