From 436aae050f846f477af716a34964f91c2cef949d Mon Sep 17 00:00:00 2001 From: Oscar Gustafsson Date: Fri, 15 Jul 2016 17:21:35 +0200 Subject: [PATCH] Removed unused variable --- .../sf/jabref/gui/actions/IntegrityCheckAction.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main/java/net/sf/jabref/gui/actions/IntegrityCheckAction.java b/src/main/java/net/sf/jabref/gui/actions/IntegrityCheckAction.java index b2aa6dbfbba..b772f1c9483 100644 --- a/src/main/java/net/sf/jabref/gui/actions/IntegrityCheckAction.java +++ b/src/main/java/net/sf/jabref/gui/actions/IntegrityCheckAction.java @@ -2,10 +2,8 @@ import java.awt.event.ActionEvent; import java.util.HashMap; -import java.util.HashSet; import java.util.List; import java.util.Map; -import java.util.Set; import javax.swing.Action; import javax.swing.JButton; @@ -52,7 +50,6 @@ public void actionPerformed(ActionEvent e) { if (messages.isEmpty()) { JOptionPane.showMessageDialog(frame.getCurrentBasePanel(), Localization.lang("No problems found.")); } else { - Set messageVariants = new HashSet<>(); Map showMessage = new HashMap<>(); // prepare data model Object[][] model = new Object[messages.size()][3]; @@ -61,7 +58,6 @@ public void actionPerformed(ActionEvent e) { model[i][0] = message.getEntry().getCiteKey(); model[i][1] = message.getFieldName(); model[i][2] = message.getMessage(); - messageVariants.add(message.getMessage()); showMessage.put(message.getMessage(), true); i++; } @@ -90,9 +86,9 @@ public boolean include(Entry entry) { selectionModel.addListSelectionListener(event -> { if (!event.getValueIsAdjusting()) { try { - String citeKey = (String) model[table.convertRowIndexToModel(table.getSelectedRow())][0]; - String fieldName = (String) model[table.convertRowIndexToModel(table.getSelectedRow())][1]; - frame.getCurrentBasePanel().editEntryByKeyAndFocusField(citeKey, fieldName); + String citeKey = (String) model[table.convertRowIndexToModel(table.getSelectedRow())][0]; + String fieldName = (String) model[table.convertRowIndexToModel(table.getSelectedRow())][1]; + frame.getCurrentBasePanel().editEntryByKeyAndFocusField(citeKey, fieldName); } catch (ArrayIndexOutOfBoundsException exception) { // Ignore -- most likely caused by filtering out the earlier selected row }