From 5ad526a76126cd1f8f7bd0f2b710bd14a46372a0 Mon Sep 17 00:00:00 2001 From: Ruslan Diachenko Date: Sun, 9 Aug 2015 06:28:56 +0100 Subject: [PATCH] Issue #1566: incorrect indentation fixed --- .../tools/checkstyle/gui/JTreeTable.java | 2 +- .../checkstyle/gui/ParseTreeInfoPanel.java | 20 +++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/gui/JTreeTable.java b/src/main/java/com/puppycrawl/tools/checkstyle/gui/JTreeTable.java index f49ea84bf..b8392c30a 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/gui/JTreeTable.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/gui/JTreeTable.java @@ -213,7 +213,7 @@ public class JTreeTable extends JTable { } public void setEditor(JTextArea mJTextArea) { - this.editor = mJTextArea; + this.editor = mJTextArea; } public void setLinePositionMap(List lines2position) { diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/gui/ParseTreeInfoPanel.java b/src/main/java/com/puppycrawl/tools/checkstyle/gui/ParseTreeInfoPanel.java index cf2a3e5cc..1c45a9483 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/gui/ParseTreeInfoPanel.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/gui/ParseTreeInfoPanel.java @@ -101,7 +101,7 @@ public class ParseTreeInfoPanel extends JPanel { new FileDrop(sp, new FileDropListener(sp)); } catch (final TooManyListenersException ignored) { - showErrorDialog(null, "Cannot initialize Drag and Drop support"); + showErrorDialog(null, "Cannot initialize Drag and Drop support"); } } @@ -140,14 +140,14 @@ public class ParseTreeInfoPanel extends JPanel { final String[] sourceLines = text.toLinesArray(); // clear for each new file - getLines2position().clear(); - // starts line counting at 1 - getLines2position().add(0); - // insert the contents of the file to the text area - for (String element : sourceLines) { - getLines2position().add(jTextArea.getText().length()); - jTextArea.append(element + "\n"); - } + getLines2position().clear(); + // starts line counting at 1 + getLines2position().add(0); + // insert the contents of the file to the text area + for (String element : sourceLines) { + getLines2position().add(jTextArea.getText().length()); + jTextArea.append(element + "\n"); + } //clean the text area before inserting the lines of the new file if (!jTextArea.getText().isEmpty()) { @@ -213,7 +213,7 @@ public class ParseTreeInfoPanel extends JPanel { } public List getLines2position() { - return lines2position; + return lines2position; } /**