Skip to content

Commit e704032

Browse files
committed
Tweak formatting of generated pom and removed unused variable
1 parent a7987fb commit e704032

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

components/sbm-core/src/test/java/org/springframework/sbm/project/resource/TestProjectContext.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -462,18 +462,17 @@ public ProjectContext build() {
462462
String xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
463463
"<project xmlns=\"http://maven.apache.org/POM/4.0.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd\">\n" +
464464
" <modelVersion>4.0.0</modelVersion>\n" +
465+
"{{springParentPom}}" +
465466
" <groupId>com.example</groupId>\n" +
466467
" <artifactId>dummy-root</artifactId>\n" +
467468
" <version>0.1.0-SNAPSHOT</version>\n" +
468469
" <packaging>jar</packaging>\n" +
469-
"{{springParentPom}}\n" +
470-
"{{dependencies}}\n" +
470+
"{{dependencies}}" +
471471
"</project>\n";
472472

473473
xml = xml
474474
.replace("{{dependencies}}", getDependenciesSection())
475-
.replace("{{springParentPom}}", getSpringParentPomSection())
476-
;
475+
.replace("{{springParentPom}}", getSpringParentPomSection());
477476

478477
resourcesWithRelativePaths.put(Path.of("pom.xml"), xml);
479478

components/sbm-recipes-boot-upgrade/src/test/java/org/springframework/sbm/boot/upgrade_27_30/report/SpringBootUpgradeReportTestSupport.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ private void verify(Consumer<String> assertion) {
195195
* code of buttons to apply a recipe.
196196
*/
197197
private String replaceRecipeButtonCodeFromExpectedOutput(SpringBootUpgradeReportSection sectionUnderTest, String renderedSection) {
198-
StringBuilder sb = new StringBuilder();
199198
List<String> buttonCodes = new ArrayList<>();
200199
if(sectionUnderTest.getRemediation().getPossibilities().isEmpty()) {
201200
String recipe = sectionUnderTest.getRemediation().getRecipe();

0 commit comments

Comments
 (0)