diff --git a/spring-graphql/src/main/java/org/springframework/graphql/data/method/annotation/MutationMapping.java b/spring-graphql/src/main/java/org/springframework/graphql/data/method/annotation/MutationMapping.java index 70f674c1..727bed45 100644 --- a/spring-graphql/src/main/java/org/springframework/graphql/data/method/annotation/MutationMapping.java +++ b/spring-graphql/src/main/java/org/springframework/graphql/data/method/annotation/MutationMapping.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2021 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,14 +28,10 @@ import org.springframework.core.annotation.AliasFor; * shortcut for {@link SchemaMapping @SchemaMapping} with * {@code typeName="Mutation"}. * - *

You can use this annotation both at the method and at the class level, in - * which case all handlers methods in the controller are mutations, unless the - * typeName is overridden. - * * @author Rossen Stoyanchev * @since 1.0.0 */ -@Target({ElementType.TYPE, ElementType.METHOD}) +@Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) @Documented @SchemaMapping(typeName = "Mutation") diff --git a/spring-graphql/src/main/java/org/springframework/graphql/data/method/annotation/QueryMapping.java b/spring-graphql/src/main/java/org/springframework/graphql/data/method/annotation/QueryMapping.java index d9400f0a..9abc721a 100644 --- a/spring-graphql/src/main/java/org/springframework/graphql/data/method/annotation/QueryMapping.java +++ b/spring-graphql/src/main/java/org/springframework/graphql/data/method/annotation/QueryMapping.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2021 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,14 +28,10 @@ import org.springframework.core.annotation.AliasFor; * shortcut for {@link SchemaMapping @SchemaMapping} with * {@code typeName="Query"}. * - *

You can use this annotation both at the method and at the class level, in - * which case all handlers methods in the controller are queries, unless the - * typeName is overridden. - * * @author Rossen Stoyanchev * @since 1.0.0 */ -@Target({ElementType.TYPE, ElementType.METHOD}) +@Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) @Documented @SchemaMapping(typeName = "Query") diff --git a/spring-graphql/src/main/java/org/springframework/graphql/data/method/annotation/SubscriptionMapping.java b/spring-graphql/src/main/java/org/springframework/graphql/data/method/annotation/SubscriptionMapping.java index a2515847..c862ae13 100644 --- a/spring-graphql/src/main/java/org/springframework/graphql/data/method/annotation/SubscriptionMapping.java +++ b/spring-graphql/src/main/java/org/springframework/graphql/data/method/annotation/SubscriptionMapping.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2021 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,14 +28,10 @@ import org.springframework.core.annotation.AliasFor; * shortcut for {@link SchemaMapping @SchemaMapping} with * {@code typeName="Subscription"}. * - *

You can use this annotation both at the method and at the class level, in - * which case all handlers methods in the controller are subscriptions, unless the - * typeName is overridden. - * * @author Rossen Stoyanchev * @since 1.0.0 */ -@Target({ElementType.TYPE, ElementType.METHOD}) +@Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) @Documented @SchemaMapping(typeName = "Subscription")