mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-25 02:49:03 +00:00
Remove unnecessary null check for expectedDeprecationMessages
See gh-40524
This commit is contained in:
committed by
Moritz Halbritter
parent
83f692237d
commit
d51282aff5
+2
-4
@@ -199,10 +199,8 @@ public class GradleBuild {
|
||||
if (this.expectDeprecationWarnings == null || (this.gradleVersion != null
|
||||
&& this.expectDeprecationWarnings.compareTo(GradleVersion.version(this.gradleVersion)) > 0)) {
|
||||
String buildOutput = result.getOutput();
|
||||
if (this.expectedDeprecationMessages != null) {
|
||||
for (String message : this.expectedDeprecationMessages) {
|
||||
buildOutput = buildOutput.replaceAll(message, "");
|
||||
}
|
||||
for (String message : this.expectedDeprecationMessages) {
|
||||
buildOutput = buildOutput.replaceAll(message, "");
|
||||
}
|
||||
assertThat(buildOutput).doesNotContainIgnoringCase("deprecated");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user