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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastSessionInfo.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/router/cast/CastSessionInfo.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastSessionInfo.java b/chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastSessionInfo.java
index 1093caa445d52650434801e1a1c6a9e53878f4c3..3ef11cf50a6dbec30550c7f6d0103884ab5907df 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastSessionInfo.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastSessionInfo.java
@@ -29,8 +29,8 @@ public class CastSessionInfo {
* Use this class to construct an instance of {@link VolumeInfo}.
*/
public static class Builder {
- private double mLevel = 0;
- private boolean mMuted = false;
+ private double mLevel;
+ private boolean mMuted;
public Builder setLevel(double level) {
mLevel = level;
@@ -99,8 +99,8 @@ public class CastSessionInfo {
private String mLabel = "";
private String mFriendlyName = "";
private List<String> mCapabilities = new ArrayList<String>();
- private VolumeInfo mVolume = null;
- private int mIsActiveInput = 0;
+ private VolumeInfo mVolume;
+ private int mIsActiveInput;
private String mDisplayStatus = "";
private String mReceiverType = "";
@@ -223,7 +223,7 @@ public class CastSessionInfo {
public static class Builder {
private String mSessionId = "";
private String mStatusText = "";
- private ReceiverInfo mReceiver = null;
+ private ReceiverInfo mReceiver;
private List<String> mNamespaces = new ArrayList<String>();
private List<String> mMedia = new ArrayList<String>();
private String mStatus = "";

Powered by Google App Engine
This is Rietveld 408576698