Skip to content

Commit 69c2d08

Browse files
committed
Remove formatter-on/off comments
1 parent b594c19 commit 69c2d08

File tree

32 files changed

+2
-112
lines changed

32 files changed

+2
-112
lines changed

graphql-spring-boot-starter/src/main/java/org/springframework/graphql/boot/GraphQlWebFluxAutoConfiguration.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public RouterFunction<ServerResponse> graphQlEndpoint(GraphQlHttpHandler handler
9595
if (logger.isInfoEnabled()) {
9696
logger.info("GraphQL endpoint HTTP POST " + graphQLPath);
9797
}
98-
// @formatter:off
98+
9999
RouterFunctions.Builder builder = RouterFunctions.route()
100100
.GET(graphQLPath, request ->
101101
ServerResponse.status(HttpStatus.METHOD_NOT_ALLOWED)
@@ -104,7 +104,6 @@ public RouterFunction<ServerResponse> graphQlEndpoint(GraphQlHttpHandler handler
104104
.POST(graphQLPath,
105105
accept(MediaType.APPLICATION_JSON).and(contentType(MediaType.APPLICATION_JSON)),
106106
handler::handleRequest);
107-
// @formatter:on
108107

109108
if (properties.getGraphiql().isEnabled()) {
110109
Resource resource = resourceLoader.getResource("classpath:graphiql/index.html");

graphql-spring-boot-starter/src/main/java/org/springframework/graphql/boot/GraphQlWebMvcAutoConfiguration.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ public RouterFunction<ServerResponse> graphQlRouterFunction(GraphQlHttpHandler h
105105
logger.info("GraphQL endpoint HTTP POST " + graphQLPath);
106106
}
107107

108-
// @formatter:off
109108
RouterFunctions.Builder builder = RouterFunctions.route()
110109
.GET(graphQLPath, request ->
111110
ServerResponse.status(HttpStatus.METHOD_NOT_ALLOWED)
@@ -114,7 +113,6 @@ public RouterFunction<ServerResponse> graphQlRouterFunction(GraphQlHttpHandler h
114113
.POST(graphQLPath,
115114
contentType(MediaType.APPLICATION_JSON).and(accept(MediaType.APPLICATION_JSON)),
116115
handler::handleRequest);
117-
// @formatter:on
118116

119117
if (properties.getGraphiql().isEnabled()) {
120118
Resource resource = resourceLoader.getResource("classpath:graphiql/index.html");
@@ -139,12 +137,11 @@ public static class WebSocketConfiguration {
139137
@ConditionalOnMissingBean
140138
public GraphQlWebSocketHandler graphQlWebSocketHandler(WebGraphQlHandler webGraphQlHandler,
141139
GraphQlProperties properties, HttpMessageConverters converters) {
142-
// @formatter:off
140+
143141
HttpMessageConverter<?> converter = converters.getConverters().stream()
144142
.filter((candidate) -> candidate.canRead(Map.class, MediaType.APPLICATION_JSON))
145143
.findFirst()
146144
.orElseThrow(() -> new IllegalStateException("No JSON converter"));
147-
// @formatter:on
148145

149146
return new GraphQlWebSocketHandler(webGraphQlHandler, converter,
150147
properties.getWebsocket().getConnectionInitTimeout());

graphql-spring-boot-starter/src/test/java/org/springframework/graphql/boot/GraphQlWebFluxAutoConfigurationTests.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@
3737

3838
import static org.hamcrest.Matchers.containsString;
3939

40-
// @formatter:off
41-
4240
class GraphQlWebFluxAutoConfigurationTests {
4341

4442
private static final String BASE_URL = "https://spring.example.org/graphql";

graphql-spring-boot-starter/src/test/java/org/springframework/graphql/boot/GraphQlWebMvcAutoConfigurationTests.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@
4242
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
4343
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
4444

45-
// @formatter:off
46-
4745
class GraphQlWebMvcAutoConfigurationTests {
4846

4947
private final WebApplicationContextRunner contextRunner = new WebApplicationContextRunner()

graphql-spring-boot-starter/src/test/java/org/springframework/graphql/boot/actuate/metrics/GraphQlTagsTests.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929

3030
import static org.assertj.core.api.Assertions.assertThat;
3131

32-
// @formatter:off
33-
3432
/**
3533
* Tests for {@link GraphQlTags}
3634
*

graphql-spring-boot-starter/src/test/java/org/springframework/graphql/boot/test/tester/GraphQlTesterAutoConfigurationTests.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,9 @@ static class WebTestClientConfiguration {
8282

8383
@Bean
8484
WebTestClient webTestClient() {
85-
// @formatter:off
8685
RouterFunction<ServerResponse> routes =
8786
RouterFunctions.route().POST("/graphql", (request) -> ServerResponse.ok().build()).build();
8887
return WebTestClient.bindToRouterFunction(routes).build();
89-
// @formatter:on
9088
}
9189

9290
@Bean

samples/webflux-security/src/test/java/io/spring/sample/graphql/SampleApplicationTests.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
import static org.assertj.core.api.Assertions.assertThat;
2828
import static org.assertj.core.api.Assertions.assertThatThrownBy;
2929

30-
// @formatter:off
31-
3230
@SpringBootTest()
3331
@AutoConfigureWebTestClient
3432
@AutoConfigureGraphQlTester

samples/webflux-websocket/src/main/java/io/spring/sample/graphql/SampleWiring.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,10 @@ public SampleWiring(@Autowired DataRepository dataRepository) {
3232

3333
@Override
3434
public void customize(RuntimeWiring.Builder wiringBuilder) {
35-
// @formatter:off
3635
wiringBuilder.type("Query", builder -> builder.dataFetcher("greeting", this.repository::getBasic));
3736
wiringBuilder.type("Query", builder -> builder.dataFetcher("greetingMono", this.repository::getGreeting));
3837
wiringBuilder.type("Query", builder -> builder.dataFetcher("greetingsFlux", this.repository::getGreetings));
3938
wiringBuilder.type("Subscription", builder -> builder.dataFetcher("greetings", this.repository::getGreetingsStream));
40-
// @formatter:on
4139
}
4240

4341
}

samples/webflux-websocket/src/test/java/io/spring/sample/graphql/QueryTests.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
import org.springframework.graphql.test.tester.WebGraphQlTester;
2626
import org.springframework.graphql.web.WebGraphQlHandler;
2727

28-
// @formatter:off
29-
3028
/**
3129
* GraphQL query tests directly via {@link GraphQL}.
3230
*/

samples/webflux-websocket/src/test/java/io/spring/sample/graphql/SubscriptionTests.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
import org.springframework.graphql.test.tester.WebGraphQlTester;
2828
import org.springframework.graphql.web.WebGraphQlHandler;
2929

30-
// @formatter:off
31-
3230
/**
3331
* GraphQL subscription tests directly via {@link GraphQL}.
3432
*/

0 commit comments

Comments
 (0)