Merge pull request #10 from ajwhite/compile-patch

Compile errors for empty generics definitions
This commit is contained in:
Andy Prock 2015-11-30 14:21:17 -08:00
commit 455795a3f0
4 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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>();
}
/**

View File

@ -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) {

View File

@ -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));