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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ItemChooserDialog.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 | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/NavigationPopup.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/ItemChooserDialog.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ItemChooserDialog.java b/chrome/android/java/src/org/chromium/chrome/browser/ItemChooserDialog.java
index afedf6ba3a9fd03238b48bdda69f1774071c788a..6c92d6240828507a80d4aea4012f7601389e50fa 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ItemChooserDialog.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ItemChooserDialog.java
@@ -146,7 +146,7 @@ public class ItemChooserDialog {
@Override
public View getView(int position, View convertView, ViewGroup parent) {
TextView view;
- if (convertView != null && convertView instanceof TextView) {
+ if (convertView instanceof TextView) {
view = (TextView) convertView;
} else {
view = (TextView) mInflater.inflate(
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/NavigationPopup.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698