0

hello all
when I do javac ,I often warn to use -Xlint
,and then the result has one or more warning.
As example I attach the javac's result below.The question is
how to eliminate warning

thank you
denny

C:\LJava>javac -Xlint -d build src\KwitansiJava04.java
warning: [path] bad path element "%classpath%": no such file or directory
src\KwitansiJava04.java:65: warning: [rawtypes] found raw type: JComboBox
    JComboBox comboSebut;
    ^
  missing type arguments for generic class JComboBox<E>
  where E is a type-variable:
    E extends Object declared in class JComboBox
src\KwitansiJava04.java:316: warning: [rawtypes] found raw type: JComboBox
                comboSebut=new JComboBox(sebutan);
                               ^
  missing type arguments for generic class JComboBox<E>
  where E is a type-variable:
    E extends Object declared in class JComboBox
src\KwitansiJava04.java:316: warning: [unchecked] unchecked call to JComboBox(E[
]) as a member of the raw type JComboBox
                comboSebut=new JComboBox(sebutan);
                           ^
  where E is a type-variable:
    E extends Object declared in class JComboBox
src\KwitansiJava04.java:59: warning: [serial] serializable class KwitansiJava04
has no definition of serialVersionUID
public class KwitansiJava04 extends JFrame implements  ActionListener,KeyListene
r {
       ^
5 warnings

Edited by Dani: Formatting fixed

2
Contributors
1
Reply
2
Views
5 Years
Discussion Span
Last Post by JamesCherrill
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.