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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationInfo.java

Issue 2548013002: Remove redundant field initialization in Java code. (Closed)
Patch Set: rebase Created 4 years 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: chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationInfo.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationInfo.java b/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationInfo.java
index c3dce37967316b46cff0f342eaf9ff5e5653fc6a..94522f439a725b9cd0741838c172e95617147a76 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationInfo.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationInfo.java
@@ -46,19 +46,19 @@ public class MediaNotificationInfo {
*/
public static final class Builder {
- private MediaMetadata mMetadata = null;
- private boolean mIsPaused = false;
+ private MediaMetadata mMetadata;
+ private boolean mIsPaused;
private String mOrigin = "";
private int mTabId = Tab.INVALID_TAB_ID;
private boolean mIsPrivate = true;
- private int mIcon = 0;
- private Bitmap mLargeIcon = null;
- private int mDefaultLargeIcon = 0;
+ private int mIcon;
+ private Bitmap mLargeIcon;
+ private int mDefaultLargeIcon;
private int mActions = ACTION_PLAY_PAUSE | ACTION_SWIPEAWAY;
private int mId = INVALID_ID;
- private Intent mContentIntent = null;
- private MediaNotificationListener mListener = null;
- private Set<Integer> mMediaSessionActions = null;
+ private Intent mContentIntent;
+ private MediaNotificationListener mListener;
+ private Set<Integer> mMediaSessionActions;
/**
* Initializes the builder with the default values.

Powered by Google App Engine
This is Rietveld 408576698