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

Unified Diff: ui/android/java/src/org/chromium/ui/ColorSuggestionListAdapter.java

Issue 1303533004: Remove redundant null checks before instanceof checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « sync/test/android/javatests/src/org/chromium/sync/test/util/AccountHolder.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/java/src/org/chromium/ui/ColorSuggestionListAdapter.java
diff --git a/ui/android/java/src/org/chromium/ui/ColorSuggestionListAdapter.java b/ui/android/java/src/org/chromium/ui/ColorSuggestionListAdapter.java
index bdf255cdb5f86a3e58453bcd28ba097d303de8c0..973898ffa3dedc5b0019f88f3cf936a5888ffc08 100644
--- a/ui/android/java/src/org/chromium/ui/ColorSuggestionListAdapter.java
+++ b/ui/android/java/src/org/chromium/ui/ColorSuggestionListAdapter.java
@@ -95,7 +95,7 @@ public class ColorSuggestionListAdapter extends BaseAdapter implements View.OnCl
@Override
public View getView(int position, View convertView, ViewGroup parent) {
LinearLayout layout;
- if (convertView != null && convertView instanceof LinearLayout) {
+ if (convertView instanceof LinearLayout) {
layout = (LinearLayout) convertView;
} else {
layout = new LinearLayout(mContext);
« no previous file with comments | « sync/test/android/javatests/src/org/chromium/sync/test/util/AccountHolder.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698