Commit c4f21199 authored by Skylot's avatar Skylot

Remove redundant space

parent 76feab3f
...@@ -135,9 +135,9 @@ public class ClassGen { ...@@ -135,9 +135,9 @@ public class ClassGen {
} }
} }
public void makeGenericMap(CodeWriter code, Map<ArgType, List<ArgType>> gmap) { public boolean makeGenericMap(CodeWriter code, Map<ArgType, List<ArgType>> gmap) {
if (gmap == null || gmap.isEmpty()) if (gmap == null || gmap.isEmpty())
return; return false;
code.add('<'); code.add('<');
int i = 0; int i = 0;
...@@ -161,6 +161,7 @@ public class ClassGen { ...@@ -161,6 +161,7 @@ public class ClassGen {
i++; i++;
} }
code.add('>'); code.add('>');
return true;
} }
public void makeClassBody(CodeWriter clsCode) throws CodegenException { public void makeClassBody(CodeWriter clsCode) throws CodegenException {
......
...@@ -78,8 +78,8 @@ public class MethodGen { ...@@ -78,8 +78,8 @@ public class MethodGen {
} }
code.startLine(ai.makeString()); code.startLine(ai.makeString());
classGen.makeGenericMap(code, mth.getGenericMap()); if (classGen.makeGenericMap(code, mth.getGenericMap()))
code.add(' '); code.add(' ');
if (mth.getAccessFlags().isConstructor()) { if (mth.getAccessFlags().isConstructor()) {
code.add(classGen.getClassNode().getShortName()); // constructor code.add(classGen.getClassNode().getShortName()); // constructor
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment