-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix "unchecked" compiler warnings >=Java8 #174
Comments
still 7 warnings left /home/travis/build/Pitterling/ksar/src/main/java/net/atomique/ksar/ui/SortedTreeNode.java:67: warning: [unchecked] unchecked call to sort(Comparator<? super E>) as a member of the raw type Vector
this.children.sort(null);
^
where E is a type-variable:
E extends Object declared in class Vector
/home/travis/build/Pitterling/ksar/src/main/java/net/atomique/ksar/ui/Preferences.java:37: warning: [unchecked] unchecked call to addElement(E) as a member of the raw type DefaultComboBoxModel
UI_lanf_model.addElement(tmp);
^
where E is a type-variable:
E extends Object declared in class DefaultComboBoxModel
/home/travis/build/Pitterling/ksar/src/main/java/net/atomique/ksar/SSHCommand.java:66: warning: [unchecked] unchecked call to addElement(E) as a member of the raw type DefaultComboBoxModel
userhostModel.addElement(tmp.getLink());
^
where E is a type-variable:
E extends Object declared in class DefaultComboBoxModel
/home/travis/build/Pitterling/ksar/src/main/java/net/atomique/ksar/SSHCommand.java:113: warning: [unchecked] unchecked call to setModel(ComboBoxModel<E>) as a member of the raw type JComboBox
HostComboBox.setModel(userhostModel);
^
where E is a type-variable:
E extends Object declared in class JComboBox
/home/travis/build/Pitterling/ksar/src/main/java/net/atomique/ksar/SSHCommand.java:147: warning: [unchecked] unchecked call to setModel(ComboBoxModel<E>) as a member of the raw type JComboBox
commandComboBox.setModel(commandModel);
^
where E is a type-variable:
E extends Object declared in class JComboBox
/home/travis/build/Pitterling/ksar/src/main/java/net/atomique/ksar/SSHCommand.java:195: warning: [unchecked] unchecked call to addElement(E) as a member of the raw type DefaultComboBoxModel
commandModel.addElement(ite.next());
^
where E is a type-variable:
E extends Object declared in class DefaultComboBoxModel
/home/travis/build/Pitterling/ksar/src/main/java/net/atomique/ksar/SSHCommand.java:198: warning: [unchecked] unchecked call to addElement(E) as a member of the raw type DefaultComboBoxModel
commandModel.addElement("sar -A");
^
where E is a type-variable:
E extends Object declared in class DefaultComboBoxModel
7 warnings |
1 warning left
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
e.g.
The text was updated successfully, but these errors were encountered: