Android Studio has a clean-up for this, which we ran in 2016 in bug 670001 .
Looks like a lot of crept back into the codebase, so we should run the inspection again, as well as write an ErrorProne check to stop them from happening.
Summary: Fix Redundant Field Initializations and Create Errorprone Check Preventing New Ones (was: Remove and Create Errorprone Check for Redundant Field Initialization)
Comment 1 by agrieve@chromium.org
, Aug 29A local run of the clean-up inspection shows: Specifics: -4,767 bytes normalized apk size -1,020 bytes secondary dex size +348 bytes main dex size InstallSize: -4,095 bytes APK size -6,809.88 bytes Estimated installed size InstallBreakdown (-3,508.88 bytes): +1 bytes Package metadata size -3,509.88 bytes Java code size Dex: +1 entries fields -6 entries methods +2 entries types +3 entries strings