@Test public void getGenericsAsString_A$() throws Exception { ReturnTypeMeta target = new ReturnTypeMeta(); target.generics.add("String"); target.generics.add("Object"); String actual = target.getGenericsAsString(); String expected = "<String, Object>"; assertEquals(expected, actual); }
public String getGenericsAsString() { StringBuilder buf = new StringBuilder(); if (generics.size() > 0) { buf.append("<"); buf.append(generics.get(0)); if (generics.size() > 1) { for (int i = 1; i < generics.size(); i++) { buf.append(", "); buf.append(generics.get(i)); } } buf.append(">"); } return buf.toString(); }
ReturnTypeMeta { public String getGenericsAsString() { StringBuilder buf = new StringBuilder(); if (generics.size() > 0) { buf.append("<"); buf.append(generics.get(0)); if (generics.size() > 1) { for (int i = 1; i < generics.size(); i++) { buf.append(", "); buf.append(generics.get(i)); } } buf.append(">"); } return buf.toString(); } }
ReturnTypeMeta { public String getGenericsAsString() { StringBuilder buf = new StringBuilder(); if (generics.size() > 0) { buf.append("<"); buf.append(generics.get(0)); if (generics.size() > 1) { for (int i = 1; i < generics.size(); i++) { buf.append(", "); buf.append(generics.get(i)); } } buf.append(">"); } return buf.toString(); }  }
ReturnTypeMeta { public String getGenericsAsString() { StringBuilder buf = new StringBuilder(); if (generics.size() > 0) { buf.append("<"); buf.append(generics.get(0)); if (generics.size() > 1) { for (int i = 1; i < generics.size(); i++) { buf.append(", "); buf.append(generics.get(i)); } } buf.append(">"); } return buf.toString(); }  String getGenericsAsString(); }
ReturnTypeMeta { public String getGenericsAsString() { StringBuilder buf = new StringBuilder(); if (generics.size() > 0) { buf.append("<"); buf.append(generics.get(0)); if (generics.size() > 1) { for (int i = 1; i < generics.size(); i++) { buf.append(", "); buf.append(generics.get(i)); } } buf.append(">"); } return buf.toString(); }  String getGenericsAsString(); public String name; public String nameInMethodName; public List<String> generics; }