We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a87a8a3 commit dcb7a66Copy full SHA for dcb7a66
src/main/java/graphql/language/AstPrinter.java
@@ -589,15 +589,11 @@ <T extends Node> NodePrinter<T> _findPrinter(Node node) {
589
}
590
591
<T extends Node> NodePrinter<T> _findPrinter(Node node, @Nullable Class<?> startClass) {
592
- if (node == null) {
593
- return (out, type) -> {
594
- };
595
- }
596
Class<?> clazz = startClass != null ? startClass : node.getClass();
597
while (clazz != Object.class) {
598
NodePrinter nodePrinter = printers.get(clazz);
599
if (nodePrinter != null) {
600
- //noinspection unchecked
+ // noinspection unchecked
601
return nodePrinter;
602
603
clazz = clazz.getSuperclass();
0 commit comments