Skip to content
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

Open
Pitterling opened this issue Feb 2, 2019 · 2 comments
Open

Fix "unchecked" compiler warnings >=Java8 #174

Pitterling opened this issue Feb 2, 2019 · 2 comments
Assignees

Comments

@Pitterling
Copy link
Collaborator

e.g.

/src/main/java/net/atomique/ksar/ui/Preferences.java:45: warning: [unchecked] unchecked call to addElement(E) as a member of the raw type DefaultComboBoxModel
    LinuxFormatComboModel.addElement("Automatic Detection");
                                    ^
  where E is a type-variable:
    E extends Object declared in class DefaultComboBoxModel
@Pitterling
Copy link
Collaborator Author

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

@Pitterling
Copy link
Collaborator Author

1 warning left

> Task :compileJava
/home/travis/build/vlsi/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
1 warning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant