This commit is contained in:
JanUlrich 2018-01-10 12:11:51 +01:00
parent ab86cc3229
commit 672373fc8d

View File

@ -29,14 +29,16 @@ public class RefType extends RefTypeOrTPHOrWildcardOrGeneric
@Override @Override
public String toString(){ public String toString(){
String params = "<"; String params = "";
Iterator<RefTypeOrTPHOrWildcardOrGeneric> it = parameter.iterator(); if(parameter.size()>0){
while(it.hasNext()){ Iterator<RefTypeOrTPHOrWildcardOrGeneric> it = parameter.iterator();
RefTypeOrTPHOrWildcardOrGeneric param = it.next(); while(it.hasNext()){
params += param.toString(); RefTypeOrTPHOrWildcardOrGeneric param = it.next();
if(it.hasNext())params += ", "; params += param.toString();
if(it.hasNext())params += ", ";
}
params += ">";
} }
params += ">";
return this.name.toString() + params; return this.name.toString() + params;
} }