In the source code of Handler.java,I cross below code segment
public Handler(Callback callback, boolean async) {
if (FIND_POTENTIAL_LEAKS) {
final Class<? extends Handler> klass = getClass();
if ((klass.isAnonymousClass() || klass.isMemberClass() || klass.isLocalClass()) &&
(klass.getModifiers() & Modifier.STATIC) == 0) {
Log.w(TAG, "The following Handler class should be static or leaks might occur: " +
klass.getCanonicalName());
}
}
}
From code,I can see FIND_POTENTIAL_LEAKS is used to find potential leaks.However the filed is private and always false.
So when it will be really made use of?
EDIT
From Murat, reflection seems to work but why Android set the value default true ?