mirror of
https://github.com/status-im/react-native-udp.git
synced 2025-01-30 18:55:14 +00:00
Merge pull request #10 from ajwhite/compile-patch
Compile errors for empty generics definitions
This commit is contained in:
commit
455795a3f0
@ -26,7 +26,7 @@ public class UdpSenderTask extends AsyncTask<UdpSenderTask.SenderPacket, Void, V
|
||||
|
||||
public UdpSenderTask(DatagramSocket socket, OnDataSentListener listener) {
|
||||
this.mSocket = socket;
|
||||
this.mListener = new WeakReference<>(listener);
|
||||
this.mListener = new WeakReference<OnDataSentListener>(listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -44,7 +44,7 @@ public final class UdpSocketClient implements UdpReceiverTask.OnDataReceivedList
|
||||
this.mReceiverListener = builder.receiverListener;
|
||||
this.mExceptionListener = builder.exceptionListener;
|
||||
this.mReuseAddress = builder.reuse;
|
||||
this.mPendingSends = new ConcurrentHashMap<>();
|
||||
this.mPendingSends = new ConcurrentHashMap<UdpSenderTask, Callback>();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -37,7 +37,7 @@ public final class UdpSockets extends ReactContextBaseJavaModule
|
||||
private static final String TAG = "UdpSockets";
|
||||
private WifiManager.MulticastLock mMulticastLock;
|
||||
|
||||
private SparseArray<UdpSocketClient> mClients = new SparseArray<>();
|
||||
private SparseArray<UdpSocketClient> mClients = new SparseArray<UdpSocketClient>();
|
||||
private boolean mShuttingDown = false;
|
||||
|
||||
public UdpSockets(ReactApplicationContext reactContext) {
|
||||
|
@ -23,7 +23,7 @@ public final class UdpSocketsModule implements ReactPackage {
|
||||
@Override
|
||||
public List<NativeModule> createNativeModules(
|
||||
ReactApplicationContext reactContext) {
|
||||
List<NativeModule> modules = new ArrayList<>();
|
||||
List<NativeModule> modules = new ArrayList<NativeModule>();
|
||||
|
||||
modules.add(new UdpSockets(reactContext));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user