From f86a06be4a674e5e9b44c4d8ec217221e5da6337 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Mart=C3=ADn=20Sotuyo=20Dodero?= Date: Mon, 29 Jan 2018 23:26:42 -0300 Subject: [PATCH] Fix checkstyle --- .../pmd/lang/java/ast/ParserCornersTest.java | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/pmd-java/src/test/java/net/sourceforge/pmd/lang/java/ast/ParserCornersTest.java b/pmd-java/src/test/java/net/sourceforge/pmd/lang/java/ast/ParserCornersTest.java index 63169c238e..eacf0bdde6 100644 --- a/pmd-java/src/test/java/net/sourceforge/pmd/lang/java/ast/ParserCornersTest.java +++ b/pmd-java/src/test/java/net/sourceforge/pmd/lang/java/ast/ParserCornersTest.java @@ -41,26 +41,26 @@ public class ParserCornersTest { */ @Test public void testDiamondUsageJava8() { - parseJava18("public class PMDExceptionTest {\n" + - " private Component makeUI() {\n" + - " String[] model = {\"123456\", \"7890\"};\n" + - " JComboBox comboBox = new JComboBox<>(model);\n" + - " comboBox.setEditable(true);\n" + - " comboBox.setEditor(new BasicComboBoxEditor() {\n" + - " private Component editorComponent;\n" + - " @Override public Component getEditorComponent() {\n" + - " if (editorComponent == null) {\n" + - " JTextField tc = (JTextField) super.getEditorComponent();\n" + - " editorComponent = new JLayer<>(tc, new ValidationLayerUI<>());\n" + - " }\n" + - " return editorComponent;\n" + - " }\n" + - " });\n" + - " JPanel p = new JPanel();\n" + - " p.add(comboBox);\n" + - " return p;\n" + - " }\n" + - "}"); + parseJava18("public class PMDExceptionTest {\n" + + " private Component makeUI() {\n" + + " String[] model = {\"123456\", \"7890\"};\n" + + " JComboBox comboBox = new JComboBox<>(model);\n" + + " comboBox.setEditable(true);\n" + + " comboBox.setEditor(new BasicComboBoxEditor() {\n" + + " private Component editorComponent;\n" + + " @Override public Component getEditorComponent() {\n" + + " if (editorComponent == null) {\n" + + " JTextField tc = (JTextField) super.getEditorComponent();\n" + + " editorComponent = new JLayer<>(tc, new ValidationLayerUI<>());\n" + + " }\n" + + " return editorComponent;\n" + + " }\n" + + " });\n" + + " JPanel p = new JPanel();\n" + + " p.add(comboBox);\n" + + " return p;\n" + + " }\n" + + "}"); } @Test