Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit 5bc98a4

Browse files
committed
chore(sonar): don't use java 9 language
1 parent ab20598 commit 5bc98a4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

graphql-spring-boot-autoconfigure/src/test/java/graphql/kickstart/autoconfigure/editor/voyager/VoyagerWithCsrfTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ void shouldLoadCSRFData() throws Exception {
3434
mockMvc.perform(get("/voyager")).andExpect(status().isOk()).andReturn();
3535

3636
final Document document = Jsoup.parse(mvcResult.getResponse().getContentAsString());
37-
var script = document.body().select("body script").dataNodes().get(0).getWholeData();
37+
final String script = document.body().select("body script").dataNodes().get(0).getWholeData();
3838
assertThat(script)
3939
.contains("let csrf = {\"")
4040
.contains("\"token\":\"")

graphql-spring-boot-autoconfigure/src/test/java/graphql/kickstart/autoconfigure/editor/voyager/VoyagerWithoutCsrfTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ void shouldLoadCSRFData() throws Exception {
3030
mockMvc.perform(get("/voyager")).andExpect(status().isOk()).andReturn();
3131

3232
final Document document = Jsoup.parse(mvcResult.getResponse().getContentAsString());
33-
var script = document.body().select("body script").dataNodes().get(0).getWholeData();
33+
final String script = document.body().select("body script").dataNodes().get(0).getWholeData();
3434
assertThat(script).contains("let csrf = null");
3535
}
3636
}

0 commit comments

Comments
 (0)