Skip to content
Snippets Groups Projects
Commit aebf55fc authored by Raphael GIRARDOT's avatar Raphael GIRARDOT
Browse files

no more compilation warnings

parent 96be3b29
No related branches found
No related tags found
No related merge requests found
......@@ -20,14 +20,14 @@ import fr.soleil.data.service.IKey;
public class DeviceStatePanel extends AbstractDeviceExplorerPanel implements IDataBrowserItemListener {
private static final long serialVersionUID = 8167111720614361473L;
private static final long serialVersionUID = -4353999649648021470L;
private JPanel statePanel = null;
private JPanel onlyStatePanel = null;
private JPanel commandsPanel = null;
private TextArea statusArea = null;
private JLabel deviceNameLabel = null;
private JComboBox comboCommands = null;
private JPanel statePanel;
private JPanel onlyStatePanel;
private JPanel commandsPanel;
private TextArea statusArea;
private JLabel deviceNameLabel;
private JComboBox<String> comboCommands;
private TangoDeviceExplorerController controller = null;
......@@ -55,7 +55,7 @@ public class DeviceStatePanel extends AbstractDeviceExplorerPanel implements IDa
statusArea = new TextArea();
comboCommands = new JComboBox();
comboCommands = new JComboBox<>();
comboCommands.setEnabled(false);
comboCommands.addActionListener(new ActionListener() {
......
......@@ -32,10 +32,9 @@ import fr.soleil.lib.project.swing.dialog.JDialogUtils;
public class HelpDialog extends JDialog implements ActionListener {
private static final long serialVersionUID = -1300653506209099792L;
private static final long serialVersionUID = 5295084967976267263L;
private JEditorPane htmlPanel;
private JButton cancelButton;
public HelpDialog(final Frame owner) {
......@@ -159,8 +158,7 @@ public class HelpDialog extends JDialog implements ActionListener {
private static void openFileInJar(final String jarFileName, final String entryName, final String fileName,
final String extension) {
try {
JarFile jarFile = new JarFile(jarFileName);
try (JarFile jarFile = new JarFile(jarFileName);) {
JarEntry entry = jarFile.getJarEntry(entryName);
InputStream is = jarFile.getInputStream(entry);
......@@ -171,7 +169,6 @@ public class HelpDialog extends JDialog implements ActionListener {
tempFile.deleteOnExit();
Desktop.getDesktop().open(tempFile);
} catch (IOException e) {
e.printStackTrace();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment