ksar
                                
                                
                                
                                    ksar copied to clipboard
                            
                            
                            
                        Fix "unchecked" compiler warnings >=Java8
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
                                    
                                    
                                    
                                
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
> 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