Skip to content

Commit

Permalink
fix incrementing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ashley-taylor committed Mar 6, 2023
1 parent beea4ea commit 1ca1768
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ private static InputTypeBuilder processArray(Class<?> type, Iterator<Class<?>> i
Object[] toReturn = (Object[]) Array.newInstance(component, collection.size());
int i = 0;
for (var c : collection) {
toReturn[i] = mapper.convert(c, context, locale);
toReturn[i++] = mapper.convert(c, context, locale);
}
return toReturn;
} else {
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/com/fleetpin/graphql/builder/TypeBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,6 @@ public GraphQLNamedOutputType buildType() throws ReflectiveOperationException {
innerMeta = new TypeMeta(null, type, type);
if (!EntityUtil.getName(innerMeta).equals(typeName)) {
var interfaceName = entityProcessor.getEntity(innerMeta).getInnerType(innerMeta);
if ("RowGroupUpdate_MiscellaneousRowGroupItem_MiscellaneousRowGroup".equals(interfaceName.getName())) {
System.out.println("hello");
}
graphType.withInterface(GraphQLTypeReference.typeRef(interfaceName.getName()));
interfaceBuilder.withInterface(GraphQLTypeReference.typeRef(interfaceName.getName()));
}
Expand Down

0 comments on commit 1ca1768

Please sign in to comment.