Latest bnd code
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1350613 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundleplugin/src/main/java/aQute/libg/cryptography/MD5.java b/bundleplugin/src/main/java/aQute/libg/cryptography/MD5.java
index 84b53ee..05a6bdd 100644
--- a/bundleplugin/src/main/java/aQute/libg/cryptography/MD5.java
+++ b/bundleplugin/src/main/java/aQute/libg/cryptography/MD5.java
@@ -3,32 +3,36 @@
import java.io.*;
import java.security.*;
-
-
public class MD5 extends Digest {
- public final static String ALGORITHM = "MD5";
-
- public static Digester<MD5> getDigester(OutputStream ... out) throws Exception {
+ public final static String ALGORITHM = "MD5";
+
+ public static Digester<MD5> getDigester(OutputStream... out) throws Exception {
return new Digester<MD5>(MessageDigest.getInstance(ALGORITHM), out) {
-
- @Override public MD5 digest() throws Exception {
+
+ @Override
+ public MD5 digest() throws Exception {
return new MD5(md.digest());
}
- @Override public MD5 digest(byte[] bytes) {
+ @Override
+ public MD5 digest(byte[] bytes) {
return new MD5(bytes);
}
- @Override public String getAlgorithm() {
+
+ @Override
+ public String getAlgorithm() {
return ALGORITHM;
}
};
}
-
-
+
public MD5(byte[] digest) {
- super(digest,16);
+ super(digest, 16);
}
- @Override public String getAlgorithm() { return ALGORITHM; }
+ @Override
+ public String getAlgorithm() {
+ return ALGORITHM;
+ }
}
\ No newline at end of file