applyFetches: remove the try/catch wrapper
We are not dealing with any checked exceptions here.
@@ -605,7 +605,6 @@ public class GraphQLEntityViewSupport {
StringBuilder sb = new StringBuilder();
DataFetchingFieldSelectionSet selectionSet = dataFetchingEnvironment.getSelectionSet();
GraphQLFieldsContainer rootType = (GraphQLFieldsContainer) getElementType(dataFetchingEnvironment, elementRoot);
- try {
OUTER:
for (SelectedField field : selectionSet.getFields(elementRoot + "/**")) {
String key = field.getQualifiedName().replaceFirst("^" + elementRoot + "/", "");
@@ -632,9 +631,6 @@ public class GraphQLEntityViewSupport {
}
}
}
- } catch (Exception e) {
- throw new RuntimeException("Could not apply fetches", e);
- }
}
/**
