Fix checkstyle

This commit is contained in:
Juan Martín Sotuyo Dodero committed 2018-01-29 23:26:42 -03:00
1 parent 75b60b8a88
commit f86a06be4a
1 file changed
+20 -20
@@ -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<String> 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<String> 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