Hi Timothy,
I downloaded JNA some months ago. Until now I have been usign eclipse to
keep the project files up to date (I assume the most recent SVN version
is 756).
So I think(assume) I don't need to manually look at the JNA website for
new releases. Last time I compiled the project I got the following warnings.
Should I just ignore them or are you planing to fix them for a new
release? (or were they already fixed and I have an old version that
Eclipse doesn't want to update?)
Thanks so much!
1)
The argument of type null should explicitly be cast to Class<?>[] for
the invocation of the varargs method getMethod(String, Class<?>...)
from type Class<capture-of ? extends DropTargetEvent>. It could
alternatively be cast to Class<?> for a varargs invocation
Path: jna/src/com/sun/jna/examples/dnd/DragHandler.java @ line 165
2)
The argument of type null should explicitly be cast to Object[] for the
invocation of the varargs method invoke(Object, Object...) from type
Method. It could alternatively be cast to Object for a varargs
invocation
Path: jna/src/com/sun/jna/examples/dnd/DragHandler.java @ line 165
Snipset:
public static Transferable getTransferable(DropTargetEvent e) {
......
e.getClass().getMethod("getTransferable", null).invoke(e,
null);// HERE
......
3)
The method decode(String) from the type URLDecoder is deprecated
Path: jna/src/com/sun/jna/Native.java @ line 577
Snipset:
private static void loadNativeLibraryFromJar() {
......
lib = new File(URLDecoder.decode(url.getPath())); //HERE
.......
4)
The method getPeer() from the type Component is deprecated
Path: jna/src/com/sun/jna/examples/WindowUtils.java @ line 988
Snipset:
public void setWindowAlpha(final Window w, final float alpha) {
...
Object peer = w.getPeer(); //HERE