You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2020/07/03 18:13:42 UTC
[maven-assembly-plugin] branch compat created (now 1f6aa47)
This is an automated email from the ASF dual-hosted git repository.
elharo pushed a change to branch compat
in repository https://gitbox.apache.org/repos/asf/maven-assembly-plugin.git.
at 1f6aa47 replace deprecated manifest constructor
This branch includes the following new commits:
new 1f6aa47 replace deprecated manifest constructor
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[maven-assembly-plugin] 01/01: replace deprecated manifest
constructor
Posted by el...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
elharo pushed a commit to branch compat
in repository https://gitbox.apache.org/repos/asf/maven-assembly-plugin.git
commit 1f6aa472fb2d54350a4cdd42c16c8a08ad6c5a7f
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Fri Jul 3 14:13:26 2020 -0400
replace deprecated manifest constructor
---
.../plugins/assembly/archive/ManifestCreationFinalizer.java | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/src/main/java/org/apache/maven/plugins/assembly/archive/ManifestCreationFinalizer.java b/src/main/java/org/apache/maven/plugins/assembly/archive/ManifestCreationFinalizer.java
index cdda6f7..334ea66 100644
--- a/src/main/java/org/apache/maven/plugins/assembly/archive/ManifestCreationFinalizer.java
+++ b/src/main/java/org/apache/maven/plugins/assembly/archive/ManifestCreationFinalizer.java
@@ -35,9 +35,7 @@ import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
-import java.io.InputStreamReader;
-import java.io.Reader;
-import java.nio.charset.StandardCharsets;
+import java.io.InputStream;
import java.util.Collections;
import java.util.List;
@@ -81,10 +79,9 @@ public class ManifestCreationFinalizer
if ( manifestFile != null )
{
- try ( Reader manifestFileReader =
- new InputStreamReader( new FileInputStream( manifestFile ), StandardCharsets.UTF_8 ) )
+ try ( InputStream in = new FileInputStream( manifestFile ) )
{
- manifest = new Manifest( manifestFileReader );
+ manifest = new Manifest( in );
}
catch ( final FileNotFoundException e )
{