From 7348ef5ef1f8e88ccf8d79e767e24b4d0729ff9e Mon Sep 17 00:00:00 2001 From: mnhock Date: Mon, 7 Dec 2015 19:30:12 +0100 Subject: [PATCH] Remove double instantiation of Manifest Closes gh-4701 --- .../org/springframework/boot/loader/tools/RepackagerTests.java | 1 - 1 file changed, 1 deletion(-) diff --git a/spring-boot-tools/spring-boot-loader-tools/src/test/java/org/springframework/boot/loader/tools/RepackagerTests.java b/spring-boot-tools/spring-boot-loader-tools/src/test/java/org/springframework/boot/loader/tools/RepackagerTests.java index 70d1c028b3b..78ecccfc397 100644 --- a/spring-boot-tools/spring-boot-loader-tools/src/test/java/org/springframework/boot/loader/tools/RepackagerTests.java +++ b/spring-boot-tools/spring-boot-loader-tools/src/test/java/org/springframework/boot/loader/tools/RepackagerTests.java @@ -123,7 +123,6 @@ public class RepackagerTests { public void mainClassFromManifest() throws Exception { this.testJarFile.addClass("a/b/C.class", ClassWithoutMainMethod.class); Manifest manifest = new Manifest(); - manifest = new Manifest(); manifest.getMainAttributes().putValue("Manifest-Version", "1.0"); manifest.getMainAttributes().putValue("Main-Class", "a.b.C"); this.testJarFile.addManifest(manifest);