Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
t1 committed May 28, 2021
1 parent 8398458 commit 55dd5ab
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

import java.lang.annotation.Retention;

import io.smallrye.common.annotation.Experimental;
import org.eclipse.microprofile.graphql.Description;

import io.smallrye.common.annotation.Experimental;
import io.smallrye.graphql.api.Directive;

/** <b><code>directive @extends on OBJECT | INTERFACE</code></b> */
Expand All @@ -17,6 +17,6 @@
"Apollo Federation supports using an @extends directive in place of extend type to annotate type references.")
@Retention(RUNTIME)
@Experimental("SmallRye GraphQL Federation is still subject to change. " +
"Additionally, this annotation is currently only a directive without explicit support from the extension.")
"Additionally, this annotation is currently only a directive without explicit support from the extension.")
public @interface Extends {
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

import java.lang.annotation.Retention;

import io.smallrye.common.annotation.Experimental;
import org.eclipse.microprofile.graphql.Description;

import io.smallrye.common.annotation.Experimental;
import io.smallrye.graphql.api.Directive;

/** <b><code>directive @external on FIELD_DEFINITION</code></b> */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package io.smallrye.graphql.federation.api;

import io.smallrye.common.annotation.Experimental;

import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import io.smallrye.common.annotation.Experimental;

/**
* A federated resolver method is the federated equivalent to a 'local' resolver method (with a parameter annotated as
* <code>{@link org.eclipse.microprofile.graphql.Source @Source}</code>), i.e. it adds a field with the name of the method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

import java.lang.annotation.Retention;

import io.smallrye.common.annotation.Experimental;
import org.eclipse.microprofile.graphql.Description;
import org.eclipse.microprofile.graphql.NonNull;

import io.smallrye.common.annotation.Experimental;
import io.smallrye.graphql.api.Directive;

/** <b><code>directive @key(fields: _FieldSet!) on OBJECT | INTERFACE</code></b> */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@

import java.lang.annotation.Retention;

import io.smallrye.common.annotation.Experimental;
import org.eclipse.microprofile.graphql.Description;
import org.eclipse.microprofile.graphql.NonNull;

import io.smallrye.common.annotation.Experimental;
import io.smallrye.graphql.api.Directive;

/** <b><code>directive @provides(fields: _FieldSet!) on FIELD_DEFINITION</code></b> */
@Directive(on = FIELD_DEFINITION)
@Description("When resolving the annotated field, this service can provide additional, normally `@external` fields.")
@Retention(RUNTIME)
@Experimental("SmallRye GraphQL Federation is still subject to change. " +
"Additionally, this annotation is currently only a directive without explicit support from the extension.")
"Additionally, this annotation is currently only a directive without explicit support from the extension.")
public @interface Provides {
@NonNull
String[] fields();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

import java.lang.annotation.Retention;

import io.smallrye.common.annotation.Experimental;
import org.eclipse.microprofile.graphql.Description;
import org.eclipse.microprofile.graphql.NonNull;

import io.smallrye.common.annotation.Experimental;
import io.smallrye.graphql.api.Directive;

/** <b><code>directive @requires(fields: _FieldSet!) on FIELD_DEFINITION</code></b> */
Expand All @@ -17,7 +17,7 @@
"even when the client didn't request them.")
@Retention(RUNTIME)
@Experimental("SmallRye GraphQL Federation is still subject to change. " +
"Additionally, this annotation is currently only a directive without explicit support from the extension.")
"Additionally, this annotation is currently only a directive without explicit support from the extension.")
public @interface Requires {
@NonNull
String[] fields();
Expand Down

0 comments on commit 55dd5ab

Please sign in to comment.