use .contains
Reviewed By: achen1 Differential Revision: D5242469 fbshipit-source-id: d666b1264e6e40bb2649ab91bc63ecb6decb1532
This commit is contained in:
parent
71401c1185
commit
7464d5e1a2
|
@ -28,7 +28,7 @@ public class ReactMarker {
|
|||
@DoNotStrip
|
||||
public static void addListener(MarkerListener listener) {
|
||||
synchronized(sListeners) {
|
||||
if (sListeners.indexOf(listener) == -1) {
|
||||
if (!sListeners.contains(listener)) {
|
||||
sListeners.add(listener);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue