@Test public void testGetInstance() { final Editable.Factory instance = EmojiEditableFactory.getInstance(); assertNotNull(instance); final Editable.Factory instance2 = EmojiEditableFactory.getInstance(); assertSame(instance, instance2); }
@SuppressWarnings("GuardedBy") public static Editable.Factory getInstance() { if (sInstance == null) { synchronized (sInstanceLock) { if (sInstance == null) { sInstance = new EmojiEditableFactory(); } } } return sInstance; }
EmojiEditableFactory extends Editable.Factory { @SuppressWarnings("GuardedBy") public static Editable.Factory getInstance() { if (sInstance == null) { synchronized (sInstanceLock) { if (sInstance == null) { sInstance = new EmojiEditableFactory(); } } } return sInstance; } }
EmojiEditableFactory extends Editable.Factory { @SuppressWarnings("GuardedBy") public static Editable.Factory getInstance() { if (sInstance == null) { synchronized (sInstanceLock) { if (sInstance == null) { sInstance = new EmojiEditableFactory(); } } } return sInstance; } @SuppressLint("PrivateApi") private  EmojiEditableFactory(); }
EmojiEditableFactory extends Editable.Factory { @SuppressWarnings("GuardedBy") public static Editable.Factory getInstance() { if (sInstance == null) { synchronized (sInstanceLock) { if (sInstance == null) { sInstance = new EmojiEditableFactory(); } } } return sInstance; } @SuppressLint("PrivateApi") private  EmojiEditableFactory(); @SuppressWarnings("GuardedBy") static Editable.Factory getInstance(); @Override Editable newEditable(@NonNull final CharSequence source); }
EmojiEditableFactory extends Editable.Factory { @SuppressWarnings("GuardedBy") public static Editable.Factory getInstance() { if (sInstance == null) { synchronized (sInstanceLock) { if (sInstance == null) { sInstance = new EmojiEditableFactory(); } } } return sInstance; } @SuppressLint("PrivateApi") private  EmojiEditableFactory(); @SuppressWarnings("GuardedBy") static Editable.Factory getInstance(); @Override Editable newEditable(@NonNull final CharSequence source);  }