mirror of
https://github.com/Noratrieb/UMLetClassParser.git
synced 2026-01-14 16:45:05 +01:00
fixed contructor double space bug
This commit is contained in:
parent
d5f5dddbc3
commit
0577d64522
2 changed files with 4 additions and 4 deletions
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_14" default="true" project-jdk-name="14" project-jdk-type="JavaSDK">
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_14" default="false" project-jdk-name="openjdk-14" project-jdk-type="JavaSDK">
|
||||||
<output url="file://$PROJECT_DIR$/out" />
|
<output url="file://$PROJECT_DIR$/out" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
||||||
|
|
@ -34,9 +34,9 @@ public class UMLMethod {
|
||||||
|
|
||||||
|
|
||||||
if(parts[1].equals("") && !className.equals(name)){
|
if(parts[1].equals("") && !className.equals(name)){
|
||||||
this.returnType = "void";
|
this.returnType = "void ";
|
||||||
} else {
|
} else {
|
||||||
this.returnType = parts[1];
|
this.returnType = parts[1] + " ";
|
||||||
}
|
}
|
||||||
|
|
||||||
if(parts.length == 4) {
|
if(parts.length == 4) {
|
||||||
|
|
@ -57,7 +57,7 @@ public class UMLMethod {
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder returnString = new StringBuilder();
|
StringBuilder returnString = new StringBuilder();
|
||||||
returnString.append("\n ").append(encapsulation).append(returnType).append(" ").append(name).append(" (");
|
returnString.append("\n ").append(encapsulation).append(returnType).append(name).append(" (");
|
||||||
|
|
||||||
for (int i = 0; i < argsNames.size(); i++) {
|
for (int i = 0; i < argsNames.size(); i++) {
|
||||||
returnString.append(argsTypes.get(i)).append(" ").append(argsNames.get(i));
|
returnString.append(argsTypes.get(i)).append(" ").append(argsNames.get(i));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue