Sous Android Studio, pour lancer l'analyse statique de code source (lint) de votre projet, sélectionnez : Analyze > Inspect Code

Par exemples :

SharedPreferences.Editor edit = prefs.edit();
			edit.putBoolean("isDone", true);
			edit.commit();
Problem synopsis      Consider using apply() instead; commit writes its data to persistent storage immediately, whereas apply will handle it in the background 
Problem resolution      Replace commit() with apply()
Suppress       Suppress with @SuppressLint (Java) or tools:ignore (XML)