Skip to content

Commit 3b6960b

Browse files
author
Jason Faust
committed
JDK 1.7 does not contain String.join()
1 parent d0bfb8e commit 3b6960b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

net.sourceforge.pmd.eclipse.plugin/src/main/java/net/sourceforge/pmd/eclipse/ui/properties/PMDProjectPropertyPage.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
import java.util.Comparator;
4343
import java.util.List;
4444

45+
import org.apache.commons.lang3.StringUtils;
4546
import org.apache.log4j.Logger;
4647
import org.eclipse.core.resources.IProject;
4748
import org.eclipse.jface.viewers.ISelectionChangedListener;
@@ -414,7 +415,7 @@ public void widgetSelected(SelectionEvent e) {
414415
files.add(buf.toString());
415416
}
416417
if (path != null) {
417-
ruleSetFileText.setText(String.join(",", files));
418+
ruleSetFileText.setText(StringUtils.join(files, ","));
418419
}
419420
}
420421
});

0 commit comments

Comments
 (0)