Skip to content

Commit c87ee90

Browse files
committed
Typo: Rename variable name to appropriate name
1 parent 16e6c99 commit c87ee90

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/simplejavatexteditor/UI.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@
5858

5959
public class UI extends JFrame implements ActionListener {
6060

61-
private final String[] dropDownExtensionFilter = {".txt", ".dat", ".log", ".xml", ".mf", ".html"};
62-
private static final long serialVersionUID = 1L;
61+
private final String[] dragDropExtensionFilter = {".txt", ".dat", ".log", ".xml", ".mf", ".html"};
62+
private static long serialVersionUID = 1L;
6363
private final JTextArea textArea;
6464
private final JMenuBar menuBar;
6565
private final JComboBox fontSize, fontType;
@@ -647,8 +647,8 @@ public void drop(DropTargetDropEvent e) {
647647

648648
// Allowed file filter extentions for drag and drop
649649
boolean extensionAllowed = false;
650-
for (int j = 0; j < dropDownExtensionFilter.length; j++) {
651-
if (fileName.endsWith(dropDownExtensionFilter[j])) {
650+
for (int j = 0; j < dragDropExtensionFilter.length; j++) {
651+
if (fileName.endsWith(dragDropExtensionFilter[j])) {
652652
extensionAllowed = true;
653653
break;
654654
}

0 commit comments

Comments
 (0)