예제 #1
0
 @Test(result = "? extends TypeCreation.A")
 WildcardType getWildcardType() {
   Collection<ReferenceType> uppers = new ArrayList<ReferenceType>();
   Collection<ReferenceType> downers = new ArrayList<ReferenceType>();
   uppers.add(AType);
   return types.getWildcardType(uppers, downers);
 }
 private static void generateCallParameters(
     PrintWriter writer, TypeMap type_map, Collection<ParameterDeclaration> params) {
   if (params.size() > 0) {
     Iterator<ParameterDeclaration> it = params.iterator();
     generateCallParameter(writer, type_map, it.next());
     while (it.hasNext()) {
       writer.print(", ");
       generateCallParameter(writer, type_map, it.next());
     }
   }
 }