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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelBase.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/compositor/bottombar/OverlayPanelBase.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelBase.java b/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelBase.java
index 52ab333fd3fb9e5a4c6abbc65de2361c6a5c65c6..eb333010f4cf1a24567d5f3884f525f2749d5d29 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelBase.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelBase.java
@@ -109,7 +109,7 @@ abstract class OverlayPanelBase {
* The Y coordinate to apply to the Base Page in order to keep the selection
* in view when the Overlay Panel is in its EXPANDED state.
*/
- private float mBasePageTargetY = 0.f;
+ private float mBasePageTargetY;
/** The current context. */
protected final Context mContext;
@@ -388,8 +388,8 @@ abstract class OverlayPanelBase {
private boolean mIsBarBorderVisible;
private float mBarBorderHeight;
- private boolean mBarShadowVisible = false;
- private float mBarShadowOpacity = 0.f;
+ private boolean mBarShadowVisible;
+ private float mBarShadowOpacity;
private float mArrowIconOpacity;
@@ -485,7 +485,7 @@ abstract class OverlayPanelBase {
// Base Page states
// --------------------------------------------------------------------------------------------
- private float mBasePageY = 0.0f;
+ private float mBasePageY;
private float mBasePageBrightness = 1.0f;
/**

Powered by Google App Engine
This is Rietveld 408576698