Skip to content

Commit fefb442

Browse files
committed
Fix some checkstyle errors.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1364427 13f79535-47bb-0310-9956-ffa450edef68
1 parent 2b902e5 commit fefb442

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/main/java/org/apache/commons/codec/digest/Sha2Crypt.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,8 @@ private static String sha2Crypt(byte[] keyBytes, String salt, String saltPrefix,
412412
/*
413413
* Now we can construct the result string. It consists of three parts.
414414
*/
415-
StringBuilder buffer = new StringBuilder(saltPrefix + (roundsCustom ? ROUNDS_PREFIX + rounds + "$" : "")
416-
+ saltString + "$");
415+
StringBuilder buffer = new StringBuilder(saltPrefix +
416+
(roundsCustom ? ROUNDS_PREFIX + rounds + "$" : "") + saltString + "$");
417417

418418
// e) the base-64 encoded final C digest. The encoding used is as
419419
// follows:

src/main/java/org/apache/commons/codec/digest/UnixCrypt.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,9 @@ private static int dEncrypt(int el, int r, int s, int e0, int e1, int sArr[]) {
262262
u = u ^ u << 16 ^ r ^ sArr[s];
263263
int t = v ^ v << 16 ^ r ^ sArr[s + 1];
264264
t = t >>> 4 | t << 28;
265-
el ^= SPTRANS[1][t & 0x3f] | SPTRANS[3][t >>> 8 & 0x3f] | SPTRANS[5][t >>> 16 & 0x3f]
266-
| SPTRANS[7][t >>> 24 & 0x3f] | SPTRANS[0][u & 0x3f] | SPTRANS[2][u >>> 8 & 0x3f]
267-
| SPTRANS[4][u >>> 16 & 0x3f] | SPTRANS[6][u >>> 24 & 0x3f];
265+
el ^= SPTRANS[1][t & 0x3f] | SPTRANS[3][t >>> 8 & 0x3f] | SPTRANS[5][t >>> 16 & 0x3f] |
266+
SPTRANS[7][t >>> 24 & 0x3f] | SPTRANS[0][u & 0x3f] | SPTRANS[2][u >>> 8 & 0x3f] |
267+
SPTRANS[4][u >>> 16 & 0x3f] | SPTRANS[6][u >>> 24 & 0x3f];
268268
return el;
269269
}
270270

0 commit comments

Comments
 (0)