am fb606c62: am f0864b1d: Merge "Clean up StaticInnerHandlerWrapper a bit" into jb-mr2-dev

* commit 'fb606c6277fdf7385bf8ce876102bda016465e8f':
  Clean up StaticInnerHandlerWrapper a bit
This commit is contained in:
Tadashi G. Takaoka 2013-03-13 20:45:44 -07:00 committed by Android Git Automerger
commit 5e04234784

View file

@ -22,17 +22,17 @@ import android.os.Looper;
import java.lang.ref.WeakReference;
public class StaticInnerHandlerWrapper<T> extends Handler {
final private WeakReference<T> mOuterInstanceRef;
private final WeakReference<T> mOuterInstanceRef;
public StaticInnerHandlerWrapper(T outerInstance) {
super();
if (outerInstance == null) throw new NullPointerException("outerInstance is null");
mOuterInstanceRef = new WeakReference<T>(outerInstance);
public StaticInnerHandlerWrapper(final T outerInstance) {
this(outerInstance, Looper.myLooper());
}
public StaticInnerHandlerWrapper(T outerInstance, Looper looper) {
public StaticInnerHandlerWrapper(final T outerInstance, final Looper looper) {
super(looper);
if (outerInstance == null) throw new NullPointerException("outerInstance is null");
if (outerInstance == null) {
throw new NullPointerException("outerInstance is null");
}
mOuterInstanceRef = new WeakReference<T>(outerInstance);
}