define class types

This commit is contained in:
Atticus White 2015-11-30 14:44:15 -05:00
parent 6ae70e3d12
commit 2be9026928
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));