Commit 3ff19486 authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #4701 from mnhock/Remove_double_instantiation

* pr/4701:
  Remove double instantiation of Manifest
parents 203ceffe 7348ef5e
...@@ -123,7 +123,6 @@ public class RepackagerTests { ...@@ -123,7 +123,6 @@ public class RepackagerTests {
public void mainClassFromManifest() throws Exception { public void mainClassFromManifest() throws Exception {
this.testJarFile.addClass("a/b/C.class", ClassWithoutMainMethod.class); this.testJarFile.addClass("a/b/C.class", ClassWithoutMainMethod.class);
Manifest manifest = new Manifest(); Manifest manifest = new Manifest();
manifest = new Manifest();
manifest.getMainAttributes().putValue("Manifest-Version", "1.0"); manifest.getMainAttributes().putValue("Manifest-Version", "1.0");
manifest.getMainAttributes().putValue("Main-Class", "a.b.C"); manifest.getMainAttributes().putValue("Main-Class", "a.b.C");
this.testJarFile.addManifest(manifest); this.testJarFile.addManifest(manifest);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment