ich schreibe ein Plugin für Gephi mit NetBeans in Java und erhalte dabei folgende 4 Warnungen:
Code: Alles auswählen
ant -f C:\\Users\\XXX\\Desktop\\Gephi-Plugins7\\LP -Djavac.includes=org/fapra/LP/LP.java compile-single
taskdefs:
common-init:
projectized-common.basic-init:
basic-init:
files-init:
nbm-license-init:
build-init:
Scanning for modules in C:\Program Files\Gephi-0.9.2\gephi
Scanning for modules in C:\Program Files\Gephi-0.9.2\platform
Scanning for modules in suite C:\Users\XXX\Desktop\Gephi-Plugins7\Gephi-Plugins7
Warning: org.fapra.LP lacks a unit test dependency on org.netbeans.libs.junit4; using default dependencies for compatibility
init:
compile-single:
Compiling 1 source file to C:\Users\XXX\Desktop\Gephi-Plugins7\LP\build\classes
warning: [options] bootstrap class path not set in conjunction with -source 1.7
warning: Supported source version 'RELEASE_6' from annotation processor 'org.netbeans.modules.openide.util.NbBundleProcessor' less than -source '1.7'
C:\Users\XXX\Desktop\Gephi-Plugins7\LP\src\org\fapra\LP\LP.java:224: warning: [cast] redundant cast to Node
nodeElement = (Node)vec.elementAt(index);
C:\Users\XXX\Desktop\Gephi-Plugins7\LP\src\org\fapra\LP\LP.java:352: warning: [rawtypes] found raw type: Entry
for(HashMap.Entry e: hash.entrySet()){
missing type arguments for generic class Entry<K,V>
where K,V are type-variables:
K extends Object declared in interface Entry
V extends Object declared in interface Entry
C:\Users\XXX\Desktop\Gephi-Plugins7\LP\src\org\fapra\LP\LP.java:356: warning: [rawtypes] found raw type: Entry
for(HashMap.Entry f: hash2.entrySet()){
missing type arguments for generic class Entry<K,V>
where K,V are type-variables:
K extends Object declared in interface Entry
V extends Object declared in interface Entry
4 warnings
BUILD SUCCESSFUL (total time: 5 seconds)
Das Programm läuft. Aber ich frage mich ob diese Warnungen nicht doch noch Schwierigkeiten verursachen könnten.
Ich habe NetBeans 8 und JDK 8 installiert.
Vielleicht kennt jemand diese Warnungen und kann mir einen Tipp geben wie man diese ggf. beseitigt, oder ob ich diese
nicht einfach auch ignorieren kann.
Vielen Dank