Skip to content

Commit 25c3657

Browse files
committed
UMLDiagram: Strings.join -> StringUtils.join
1 parent 9c78e65 commit 25c3657

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/com/lsfusion/dependencies/UMLDiagramView.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import com.lsfusion.lang.psi.impl.LSFClassStatementImpl;
1818
import groovyjarjarantlr4.v4.misc.OrderedHashMap;
1919
import groovyjarjarantlr4.v4.runtime.misc.OrderedHashSet;
20+
import org.apache.commons.lang3.StringUtils;
2021
import org.apache.logging.log4j.util.Strings;
2122
import org.jetbrains.annotations.Nullable;
2223

@@ -169,8 +170,8 @@ private String generateUML() {
169170

170171
StringBuilder mermaid = new StringBuilder("classDiagram\n");
171172
for (Map.Entry<String, List<PropertyOrAction>> entry : classPropOrActionMap.entrySet()) {
172-
String properties = Strings.join(entry.getValue().stream().filter(p -> !p.isAction).toList(), '\n');
173-
String actions = Strings.join(entry.getValue().stream().filter(p -> p.isAction).toList(), '\n');
173+
String properties = StringUtils.join(entry.getValue().stream().filter(p -> !p.isAction).toList(), '\n');
174+
String actions = StringUtils.join(entry.getValue().stream().filter(p -> p.isAction).toList(), '\n');
174175
String fields = (properties.isEmpty() && actions.isEmpty() ? "" : ("{\n" + properties + actions + "\n}"));
175176
String classEntry = "class " + getClassName(entry.getKey()) + fields + "\n";
176177
mermaid.append(classEntry);

0 commit comments

Comments
 (0)