Skip to content

Commit 78c7a16

Browse files
author
Joe Wegner
committed
fix more codacy errors. Some of them had been in from the beginning, but codacy didn't mention all
1 parent d4a6a77 commit 78c7a16

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

app/src/cc/arduino/contributions/ContributionsSelfCheck.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
import cc.arduino.contributions.packages.filters.UpdatablePlatformPredicate;
3737
import cc.arduino.view.NotificationPopup;
3838
import org.apache.logging.log4j.LogManager;
39-
import org.apache.logging.log4j.Logger;
4039
import processing.app.*;
4140

4241
import javax.swing.*;

app/src/cc/arduino/view/NotificationPopup.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@
5050
import javax.swing.event.HyperlinkListener;
5151

5252
import cc.arduino.Constants;
53-
import org.apache.logging.log4j.LogManager;
54-
import org.apache.logging.log4j.Logger;
5553
import processing.app.PreferencesData;
5654
import processing.app.Theme;
5755

@@ -124,10 +122,14 @@ public void mouseClicked(MouseEvent e) {
124122
optionalButton1.addMouseListener(button1Action);
125123

126124
KeyListener button1Key = new KeyListener() {
125+
// Ignore when the key is typed - only act once the key is released
127126
public void keyTyped(KeyEvent e) {
127+
// do nothing here, wait until the key is released
128128
}
129129

130+
// Ignore when the key is pressed - only act once the key is released
130131
public void keyPressed(KeyEvent e) {
132+
// do nothing here, wait until the key is released
131133
}
132134

133135
public void keyReleased(KeyEvent e) {

0 commit comments

Comments
 (0)