Feature request for an Android Lint check here:
https://code.google.com/p/android/issues/detail?id=226486
We should do a one-time removal of them using Android Studio:
- Open up the inspections UI and search for "Redundant Field Initialization"
I'd just go for it. I suspect the wins are small enough that it'd be fine if we just ran it every couple of years :P.
I'd be curious to see what the savings are though. e.g. build before & after with is_java_debug=false and compare uncompressed classes.dex size.
I would like to know the savings too = we often encourage explicit initialization for readability benefits (esp. when the team mostly writes C++ - having everything uninitialized in Java doesn't look right and requires extra effort to keep the defaults in mind sometimes) so I personally would object the change unless the wins outweigh the costs.
Comment 1 by estevenson@chromium.org
, Dec 2 2016