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

Unified Diff: base/android/java/src/org/chromium/base/library_loader/ModernLinker.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: base/android/java/src/org/chromium/base/library_loader/ModernLinker.java
diff --git a/base/android/java/src/org/chromium/base/library_loader/ModernLinker.java b/base/android/java/src/org/chromium/base/library_loader/ModernLinker.java
index 325e3cd147cf18c2d3910f050b6013f08cf00699..7669e0eeed6695e1741f00e0133d2b672afc9b01 100644
--- a/base/android/java/src/org/chromium/base/library_loader/ModernLinker.java
+++ b/base/android/java/src/org/chromium/base/library_loader/ModernLinker.java
@@ -34,16 +34,16 @@ class ModernLinker extends Linker {
private static final String TAG = "LibraryLoader";
// Becomes true after linker initialization.
- private boolean mInitialized = false;
+ private boolean mInitialized;
// Becomes true to indicate this process needs to wait for a shared RELRO in LibraryLoad().
- private boolean mWaitForSharedRelros = false;
+ private boolean mWaitForSharedRelros;
// The map of all RELRO sections either created or used in this process.
- private HashMap<String, LibInfo> mSharedRelros = null;
+ private HashMap<String, LibInfo> mSharedRelros;
// Cached Bundle representation of the RELRO sections map for transfer across processes.
- private Bundle mSharedRelrosBundle = null;
+ private Bundle mSharedRelrosBundle;
// Set to true if this runs in the browser process. Disabled by initServiceProcess().
private boolean mInBrowserProcess = true;
@@ -57,10 +57,10 @@ class ModernLinker extends Linker {
private long mCurrentLoadAddress = -1;
// Becomes true once prepareLibraryLoad() has been called.
- private boolean mPrepareLibraryLoadCalled = false;
+ private boolean mPrepareLibraryLoadCalled;
// The map of libraries that are currently loaded in this process.
- private HashMap<String, LibInfo> mLoadedLibraries = null;
+ private HashMap<String, LibInfo> mLoadedLibraries;
// Private singleton constructor, and singleton factory method.
private ModernLinker() { }

Powered by Google App Engine
This is Rietveld 408576698