Remove all trailing whitespace from the dalvik team-maintained parts of libcore.
Gentlemen, you may now set your editors to "strip trailing whitespace"...
Change-Id: I85b2f6c80e5fbef1af6cab11789790b078c11b1b
diff --git a/luni/src/main/java/org/apache/harmony/security/provider/crypto/SHA1_MessageDigestImpl.java b/luni/src/main/java/org/apache/harmony/security/provider/crypto/SHA1_MessageDigestImpl.java
index 95f4032..c51ecc6 100644
--- a/luni/src/main/java/org/apache/harmony/security/provider/crypto/SHA1_MessageDigestImpl.java
+++ b/luni/src/main/java/org/apache/harmony/security/provider/crypto/SHA1_MessageDigestImpl.java
@@ -36,7 +36,7 @@
*/
-public class SHA1_MessageDigestImpl extends MessageDigestSpi
+public class SHA1_MessageDigestImpl extends MessageDigestSpi
implements Cloneable, SHA1_Data {
@@ -55,7 +55,7 @@
/**
* The constructor creates needed buffers and sets the engine at initial state
- */
+ */
public SHA1_MessageDigestImpl() {
// BYTES_OFFSET +6 is minimal length required by methods in SHA1Impl
@@ -70,7 +70,7 @@
/**
* The method performs final actions and invokes the "computeHash(int[])" method.
* In case if there is no enough words in current frame
- * after processing its data, extra frame is prepared and
+ * after processing its data, extra frame is prepared and
* the "computeHash(int[])" method is invoked second time. <BR>
*
* After processing, the method resets engine's state
@@ -96,7 +96,7 @@
// possible cases:
//
- // - buffer[BYTES_OFFSET] == 0 - buffer frame is empty,
+ // - buffer[BYTES_OFFSET] == 0 - buffer frame is empty,
// padding byte was 64th in previous frame
// current frame should contain only message's length
//
@@ -104,7 +104,7 @@
// no extra frame needed
// - lastWord = 14 - only one last, namely 15-th, word in frame doesn't contain bytes;
// extra frame is needed
- // - lastWord > 14 - last word in frame is not full;
+ // - lastWord > 14 - last word in frame is not full;
// extra frame is needed
if ( buffer[BYTES_OFFSET] != 0 ) {
@@ -185,45 +185,45 @@
*
* The method resets the engine. <BR>
*
- * The method overrides "engineDigest(byte[],int,int) in class MessageDigestSpi.
+ * The method overrides "engineDigest(byte[],int,int) in class MessageDigestSpi.
*
* @param
- * buf byte array to store a message digest returned
- * @param
- * offset a position in the array for first byte of the message digest
+ * buf byte array to store a message digest returned
* @param
- * len number of bytes within buffer allotted for the message digest;
- * as this implementation doesn't provide partial digests,
- * len should be >= 20, DigestException is thrown otherwise
+ * offset a position in the array for first byte of the message digest
+ * @param
+ * len number of bytes within buffer allotted for the message digest;
+ * as this implementation doesn't provide partial digests,
+ * len should be >= 20, DigestException is thrown otherwise
* @return
- * the length of the message digest stored in the "buf" buffer;
+ * the length of the message digest stored in the "buf" buffer;
* in this implementation the length=20
*
- * @throws IllegalArgumentException
+ * @throws IllegalArgumentException
* if null is passed to the "buf" argument <BR>
* if offset + len > buf.length <BR>
* if offset > buf.length or len > buf.length
*
- * @throws DigestException
- * if len < 20
+ * @throws DigestException
+ * if len < 20
*
- * @throws ArrayIndexOutOfBoundsException
+ * @throws ArrayIndexOutOfBoundsException
* if offset < 0
*/
- protected int engineDigest(byte[] buf, int offset, int len) throws DigestException {
+ protected int engineDigest(byte[] buf, int offset, int len) throws DigestException {
if ( buf == null ) {
- throw new IllegalArgumentException(Messages.getString("security.162"));
+ throw new IllegalArgumentException(Messages.getString("security.162"));
}
if ( offset > buf.length || len > buf.length || (len + offset) > buf.length ) {
throw new IllegalArgumentException(
- Messages.getString("security.163"));
+ Messages.getString("security.163"));
}
if ( len < DIGEST_LENGTH ) {
- throw new DigestException(Messages.getString("security.164"));
+ throw new DigestException(Messages.getString("security.164"));
}
if ( offset < 0 ) {
- throw new ArrayIndexOutOfBoundsException(Messages.getString("security.165", offset));
+ throw new ArrayIndexOutOfBoundsException(Messages.getString("security.165", offset));
}
processDigest(buf, offset);
@@ -240,10 +240,10 @@
* @return
* total length of current message digest as an int value
*/
- protected int engineGetDigestLength() {
- return DIGEST_LENGTH;
+ protected int engineGetDigestLength() {
+ return DIGEST_LENGTH;
}
-
+
/**
* Resets the engine. <BR>
@@ -293,11 +293,11 @@
* @param
* len a number of bytes to use
*
- * @throws NullPointerException
+ * @throws NullPointerException
* if null is passed to the "buf" argument
*
- * @throws IllegalArgumentException
- * if offset > buf.length or len > buf.length or
+ * @throws IllegalArgumentException
+ * if offset > buf.length or len > buf.length or
* (len + offset) > buf.length
* @throws ArrayIndexOutOfBoundsException
* offset < 0
@@ -305,17 +305,17 @@
protected void engineUpdate(byte[] input, int offset, int len) {
if ( input == null ) {
- throw new IllegalArgumentException(Messages.getString("security.166"));
+ throw new IllegalArgumentException(Messages.getString("security.166"));
}
if ( len <= 0 ) {
return;
}
if ( offset < 0 ) {
- throw new ArrayIndexOutOfBoundsException(Messages.getString("security.165", offset));
+ throw new ArrayIndexOutOfBoundsException(Messages.getString("security.165", offset));
}
if ( offset > input.length || len > input.length || (len + offset) > input.length ) {
throw new IllegalArgumentException(
- Messages.getString("security.167"));
+ Messages.getString("security.167"));
}
SHA1Impl.updateHash(buffer, input, offset, offset + len -1 );