Skip to content

Commit 8e87fb8

Browse files
committed
fixing sonarqube warnings and advices
1 parent 3420c6f commit 8e87fb8

File tree

1 file changed

+5
-7
lines changed
  • src/main/java/org/pignat/app/qr2gerber

1 file changed

+5
-7
lines changed

src/main/java/org/pignat/app/qr2gerber/App.java

+5-7
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,10 @@ public void actionPerformed(ActionEvent e) {
114114
PrintWriter out = new PrintWriter(destField.getText());
115115
out.println(q2g.toGerber());
116116
out.close();
117-
} catch (FileNotFoundException e1) {
118-
// TODO Auto-generated catch block
119-
e1.printStackTrace();
120-
} catch (WriterException e1) {
121-
// TODO Auto-generated catch block
122-
e1.printStackTrace();
117+
} catch (FileNotFoundException ex) {
118+
ex.printStackTrace();
119+
} catch (WriterException ex) {
120+
ex.printStackTrace();
123121
}
124122
}
125123
if (e.getSource() == browseButton)
@@ -134,7 +132,7 @@ public void actionPerformed(ActionEvent e) {
134132
}
135133
}
136134

137-
public static void main(String args[]) {
135+
public static void main(String[] args) {
138136
SwingUtilities.invokeLater(new Runnable() {
139137
public void run() {
140138
App ex = new App();

0 commit comments

Comments
 (0)