mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
testng: skip empty strings in configuration of groups (IDEA-163189)
This commit is contained in:
+4
-2
@@ -77,8 +77,10 @@ public class DependsOnGroupsInspection extends BaseJavaLocalInspectionTool {
|
||||
textField.getDocument().addDocumentListener(new DocumentAdapter() {
|
||||
protected void textChanged(final DocumentEvent e) {
|
||||
groups.clear();
|
||||
final String[] groupsFromString = textField.getText().split("[, ]");
|
||||
ContainerUtil.addAll(groups, groupsFromString);
|
||||
String text = textField.getText();
|
||||
if (!StringUtil.isEmptyOrSpaces(text)) {
|
||||
ContainerUtil.addAll(groups, text.split("[, ]"));
|
||||
}
|
||||
}
|
||||
});
|
||||
definedGroups.setComponent(textField);
|
||||
|
||||
Reference in New Issue
Block a user