Merge pull request #40524 from chaewss
* pr/40524: Remove unnecessary null check for expectedDeprecationMessages Closes gh-40524
This commit is contained in:
commit
6c3a21f85c
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue