Try to fix #72.

This commit is contained in:
zaxar163 2018-11-21 17:31:24 +03:00
parent 591bdea6f4
commit 9d4413ef84
No known key found for this signature in database
GPG key ID: E3B309DD3852DE06

View file

@ -62,7 +62,7 @@ public class SignerJar implements AutoCloseable {
/**
* Helper output stream that also sends the data to the given {@link com.google.common.hash.Hasher}.
*/
private static class HashingOutputStream extends OutputStream {
static class HashingOutputStream extends OutputStream {
private final OutputStream out;
private final MessageDigest hasher;
@ -132,7 +132,7 @@ private static MessageDigest hasher() {
private final String keyAlias;
private final String password;
private final Map<String, String> manifestAttributes;
public final Map<String, String> manifestAttributes;
private String manifestHash;
private String manifestMainHash;
@ -241,7 +241,7 @@ public void addFileContents(ZipEntry entry, InputStream contents) throws IOExcep
* @param value value of the attribute
*/
public void addManifestAttribute(String name, String value) {
manifestAttributes.put(name, value);
manifestAttributes.put(name.trim(), value.trim());
}