Skip to content

Commit d306b31

Browse files
committed
Merge branch '2.1.x'
2 parents 2b51cf4 + ccfbd03 commit d306b31

File tree

107 files changed

+130
-112
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+130
-112
lines changed

pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
</activation>
2626
<properties>
2727
<spring-javaformat.version>0.0.9</spring-javaformat.version>
28+
<nohttp-checkstyle.version>0.0.1.RELEASE</nohttp-checkstyle.version>
2829
</properties>
2930
<build>
3031
<plugins>
@@ -43,6 +44,11 @@
4344
<artifactId>spring-javaformat-checkstyle</artifactId>
4445
<version>${spring-javaformat.version}</version>
4546
</dependency>
47+
<dependency>
48+
<groupId>io.spring.nohttp</groupId>
49+
<artifactId>nohttp-checkstyle</artifactId>
50+
<version>${nohttp-checkstyle.version}</version>
51+
</dependency>
4652
</dependencies>
4753
<executions>
4854
<execution>
@@ -54,6 +60,7 @@
5460
<suppressionsLocation>src/checkstyle/checkstyle-suppressions.xml</suppressionsLocation>
5561
<includeTestSourceDirectory>true</includeTestSourceDirectory>
5662
<propertyExpansion>main.basedir=${main.basedir}</propertyExpansion>
63+
<resourceIncludes>**\/*.*</resourceIncludes>
5764
</configuration>
5865
<goals>
5966
<goal>check</goal>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
DROP TABLE IF EXISTS TEST;
1+
DROP TABLE IF EXISTS TEST;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
DROP TABLE IF EXISTS TEST;
1+
DROP TABLE IF EXISTS TEST;

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafReactiveAutoConfigurationTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public void createFromConfigClass() {
7373
TemplateEngine engine = context.getBean(TemplateEngine.class);
7474
Context attrs = new Context(Locale.UK,
7575
Collections.singletonMap("foo", "bar"));
76-
String result = engine.process("template", attrs);
76+
String result = engine.process("template", attrs).trim();
7777
assertThat(result).isEqualTo("<html>bar</html>");
7878
});
7979
}
@@ -210,7 +210,7 @@ public void useDataDialect() {
210210
.getBean(ISpringWebFluxTemplateEngine.class);
211211
Context attrs = new Context(Locale.UK,
212212
Collections.singletonMap("foo", "bar"));
213-
String result = engine.process("data-dialect", attrs);
213+
String result = engine.process("data-dialect", attrs).trim();
214214
assertThat(result).isEqualTo("<html><body data-foo=\"bar\"></body></html>");
215215
});
216216
}
@@ -221,7 +221,7 @@ public void useJava8TimeDialect() {
221221
ISpringWebFluxTemplateEngine engine = context
222222
.getBean(ISpringWebFluxTemplateEngine.class);
223223
Context attrs = new Context(Locale.UK);
224-
String result = engine.process("java8time-dialect", attrs);
224+
String result = engine.process("java8time-dialect", attrs).trim();
225225
assertThat(result).isEqualTo("<html><body>2015-11-24</body></html>");
226226
});
227227
}
@@ -251,7 +251,7 @@ public void renderTemplate() {
251251
.getBean(ISpringWebFluxTemplateEngine.class);
252252
Context attrs = new Context(Locale.UK,
253253
Collections.singletonMap("foo", "bar"));
254-
String result = engine.process("home", attrs);
254+
String result = engine.process("home", attrs).trim();
255255
assertThat(result).isEqualTo("<html><body>bar</body></html>");
256256
});
257257
}

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafServletAutoConfigurationTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public void createFromConfigClass() {
9898
TemplateEngine engine = context.getBean(TemplateEngine.class);
9999
Context attrs = new Context(Locale.UK,
100100
Collections.singletonMap("foo", "bar"));
101-
String result = engine.process("template.html", attrs);
101+
String result = engine.process("template.html", attrs).trim();
102102
assertThat(result).isEqualTo("<html>bar</html>");
103103
});
104104
}
@@ -225,7 +225,7 @@ public void useDataDialect() {
225225
TemplateEngine engine = context.getBean(TemplateEngine.class);
226226
Context attrs = new Context(Locale.UK,
227227
Collections.singletonMap("foo", "bar"));
228-
String result = engine.process("data-dialect", attrs);
228+
String result = engine.process("data-dialect", attrs).trim();
229229
assertThat(result).isEqualTo("<html><body data-foo=\"bar\"></body></html>");
230230
});
231231
}
@@ -235,7 +235,7 @@ public void useJava8TimeDialect() {
235235
this.contextRunner.run((context) -> {
236236
TemplateEngine engine = context.getBean(TemplateEngine.class);
237237
Context attrs = new Context(Locale.UK);
238-
String result = engine.process("java8time-dialect", attrs);
238+
String result = engine.process("java8time-dialect", attrs).trim();
239239
assertThat(result).isEqualTo("<html><body>2015-11-24</body></html>");
240240
});
241241
}
@@ -265,7 +265,7 @@ public void renderTemplate() {
265265
TemplateEngine engine = context.getBean(TemplateEngine.class);
266266
Context attrs = new Context(Locale.UK,
267267
Collections.singletonMap("foo", "bar"));
268-
String result = engine.process("home", attrs);
268+
String result = engine.process("home", attrs).trim();
269269
assertThat(result).isEqualTo("<html><body>bar</body></html>");
270270
});
271271
}

spring-boot-project/spring-boot-autoconfigure/src/test/resources/META-INF/mappings/non-annotated.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
</basic>
1616
</attributes>
1717
</entity>
18-
</entity-mappings>
18+
</entity-mappings>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
INSERT INTO CITY (ID, NAME, STATE, COUNTRY, MAP) values (2000, 'Washington', 'DC', 'US', 'Google');
1+
INSERT INTO CITY (ID, NAME, STATE, COUNTRY, MAP) values (2000, 'Washington', 'DC', 'US', 'Google');

spring-boot-project/spring-boot-autoconfigure/src/test/resources/custom-schema.ldif

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ objectClasses: ( 1.3.6.1.4.1.32473.1.2.2
1414
SUP top
1515
AUXILIARY
1616
MAY exampleAttributeName
17-
X-ORIGIN 'Managing Schema Document' )
17+
X-ORIGIN 'Managing Schema Document' )

0 commit comments

Comments
 (0)