Fixed compile warnings

This commit is contained in:
Endolf 2018-05-30 19:11:46 +01:00
parent 59c21d42c5
commit a19b3c9fa3

View file

@ -48,7 +48,7 @@ import java.util.ArrayList;
* @version 1.0 * @version 1.0
*/ */
final class IDirectInput { final class IDirectInput {
private final List devices = new ArrayList(); private final List<IDirectInputDevice> devices = new ArrayList<>();
private final long idirectinput_address; private final long idirectinput_address;
private final DummyWindow window; private final DummyWindow window;
@ -65,7 +65,7 @@ final class IDirectInput {
} }
private final static native long createIDirectInput() throws IOException; private final static native long createIDirectInput() throws IOException;
public final List getDevices() { public final List<IDirectInputDevice> getDevices() {
return devices; return devices;
} }
@ -88,7 +88,7 @@ final class IDirectInput {
public final void releaseDevices() { public final void releaseDevices() {
for (int i = 0; i < devices.size(); i++) { for (int i = 0; i < devices.size(); i++) {
IDirectInputDevice device = (IDirectInputDevice)devices.get(i); IDirectInputDevice device = devices.get(i);
device.release(); device.release();
} }
} }