Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: smallrye/smallrye-graphql
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a41504750fd8ef68fe652b43429f21dc056c1216
Choose a base ref
..
head repository: smallrye/smallrye-graphql
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 292b43cdbf5bf065887a882d00004301b3548c08
Choose a head ref
Original file line number Diff line number Diff line change
@@ -97,7 +97,7 @@ public Optional<Argument> createArgument(Operation operation, MethodInfo methodI
argument.addDirectiveInstances(constraintDirectives);
}
}
if (deprecatedHelper != null) {
if (deprecatedHelper != null && directives != null) {
List<DirectiveInstance> deprecatedDirectives = deprecatedHelper
.transformDeprecatedToDirectives(annotationsForThisArgument,
directives.getDirectiveTypes().get(DotName.createSimple("io.smallrye.graphql.api.Deprecated")));
Original file line number Diff line number Diff line change
@@ -185,8 +185,7 @@ private void addDirectivesForBeanValidationConstraints(Annotations annotationsFo

private void addDirectivesForDeprecated(Annotations annotationsForPojo, Field field,
Reference parentObjectReference) {
if (deprecatedHelper != null) {
System.out.println(directives.getDirectiveTypes());
if (deprecatedHelper != null && directives != null) {
List<DirectiveInstance> deprecatedDirectives = deprecatedHelper
.transformDeprecatedToDirectives(annotationsForPojo,
directives.getDirectiveTypes().get(DotName.createSimple("io.smallrye.graphql.api.Deprecated")));