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

Unified Diff: components/precache/android/java/src/org/chromium/components/precache/DeviceState.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: components/precache/android/java/src/org/chromium/components/precache/DeviceState.java
diff --git a/components/precache/android/java/src/org/chromium/components/precache/DeviceState.java b/components/precache/android/java/src/org/chromium/components/precache/DeviceState.java
index 80a67093e1bf9d78f194a7fcfa1b2483069a12b6..3315d791a569d8f9e6370b622a02c037ff94c17e 100644
--- a/components/precache/android/java/src/org/chromium/components/precache/DeviceState.java
+++ b/components/precache/android/java/src/org/chromium/components/precache/DeviceState.java
@@ -15,10 +15,10 @@ import org.chromium.base.VisibleForTesting;
* Utility class that provides information about the current state of the device.
*/
public class DeviceState {
- private static DeviceState sDeviceState = null;
+ private static DeviceState sDeviceState;
// Saved battery level percentage.
- private int mSavedBatteryPercentage = 0;
+ private int mSavedBatteryPercentage;
/** Disallow Construction of DeviceState objects. Use {@link #getInstance()} instead to create
* a singleton instance.

Powered by Google App Engine
This is Rietveld 408576698