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

Unified Diff: base/android/java/src/org/chromium/base/library_loader/LegacyLinker.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/LegacyLinker.java
diff --git a/base/android/java/src/org/chromium/base/library_loader/LegacyLinker.java b/base/android/java/src/org/chromium/base/library_loader/LegacyLinker.java
index 64a6c5750fcc05f133ada2683c5fa26a88ff3a07..2d820c9b7b41b4a914c9165b10625f83cf31a293 100644
--- a/base/android/java/src/org/chromium/base/library_loader/LegacyLinker.java
+++ b/base/android/java/src/org/chromium/base/library_loader/LegacyLinker.java
@@ -38,21 +38,21 @@ class LegacyLinker extends Linker {
private static final String TAG = "LibraryLoader";
// Becomes true after linker initialization.
- private boolean mInitialized = false;
+ private boolean mInitialized;
// Set to true if this runs in the browser process. Disabled by initServiceProcess().
private boolean mInBrowserProcess = true;
// Becomes true to indicate this process needs to wait for a shared RELRO in
// finishLibraryLoad().
- private boolean mWaitForSharedRelros = false;
+ private boolean mWaitForSharedRelros;
// Becomes true when initialization determines that the browser process can use the
// shared RELRO.
- private boolean mBrowserUsesSharedRelro = false;
+ private boolean mBrowserUsesSharedRelro;
// The map of all RELRO sections either created or used in this process.
- private Bundle mSharedRelros = null;
+ private Bundle mSharedRelros;
// Current common random base load address. A value of -1 indicates not yet initialized.
private long mBaseLoadAddress = -1;
@@ -62,10 +62,10 @@ class LegacyLinker 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 LegacyLinker() { }

Powered by Google App Engine
This is Rietveld 408576698