Skip to content

Commit

Permalink
Merge pull request apache#1717 from mklaehn/NETBEANS-3509
Browse files Browse the repository at this point in the history
[NETBEANS-3509] Fixed compiler warnings concerning rawtypes AbstractList
  • Loading branch information
Jaroslav Tulach authored Dec 6, 2019
2 parents 65908ce + b394774 commit e06e600
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ide/xml.multiview/nbproject/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# under the License.

javac.compilerargs=-Xlint -Xlint:-serial
javac.source=1.6
javac.source=1.8
javadoc.arch=${basedir}/arch.xml
spec.version.base=1.45.0
is.autoload=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ public class SectionContainer extends javax.swing.JPanel implements NodeSectionP

//private HashMap map = new HashMap();
//private JScrollPane scrollPane;
private Node activeNode=null;
private SectionView sectionView;
private String title;
private Node root;
private boolean active;
private int sectionCount=0;
Expand All @@ -66,7 +64,6 @@ public SectionContainer(SectionView sectionView, Node root, String title, boolea
fillerEnd.setForeground(SectionVisualTheme.getFoldLineColor());
Mnemonics.setLocalizedText(titleButton, title);
titleButton.setToolTipText(titleButton.getText());
this.title=titleButton.getText();
titleButton.addMouseListener(new org.openide.awt.MouseUtils.PopupMouseAdapter() {
protected void showPopup(java.awt.event.MouseEvent e) {
JPopupMenu popup = getNode().getContextMenu();
Expand Down Expand Up @@ -174,7 +171,7 @@ public void removeSection(NodeSectionPanel section) {

// the rest components have to be moved up
java.awt.Component[] components = contentPanel.getComponents();
java.util.AbstractList removedPanels = new java.util.ArrayList();
java.util.List<NodeSectionPanel> removedPanels = new java.util.ArrayList<>();
for (int i=0;i<components.length;i++) {
if (components[i] instanceof NodeSectionPanel) {
NodeSectionPanel pan = (NodeSectionPanel)components[i];
Expand All @@ -187,7 +184,7 @@ public void removeSection(NodeSectionPanel section) {
}
}
for (int i=0;i<removedPanels.size();i++) {
NodeSectionPanel pan = (NodeSectionPanel)removedPanels.get(i);
NodeSectionPanel pan = removedPanels.get(i);
java.awt.GridBagConstraints gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = pan.getIndex();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public void removeSection(NodeSectionPanel panel){

// the rest components have to be moved up
java.awt.Component[] components = scrollPanel.getComponents();
java.util.AbstractList removedPanels = new java.util.ArrayList();
java.util.List<NodeSectionPanel> removedPanels = new java.util.ArrayList<>();
for (int i=0;i<components.length;i++) {
if (components[i] instanceof NodeSectionPanel) {
NodeSectionPanel pan = (NodeSectionPanel)components[i];
Expand All @@ -216,7 +216,7 @@ public void removeSection(NodeSectionPanel panel){
}
}
for (int i=0;i<removedPanels.size();i++) {
NodeSectionPanel pan = (NodeSectionPanel)removedPanels.get(i);
NodeSectionPanel pan = removedPanels.get(i);
java.awt.GridBagConstraints gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = pan.getIndex();
Expand Down

0 comments on commit e06e600

Please sign in to comment.