From 94e9037522922b67e8af412b4cfe476f5e991118 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Tue, 17 Feb 2015 23:00:35 +0000
Subject: [PATCH] AutoRefactor: fix modifiers usage
---
opendj-server-legacy/src/main/java/org/opends/server/util/BSDMD5Crypt.java | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/util/BSDMD5Crypt.java b/opendj-server-legacy/src/main/java/org/opends/server/util/BSDMD5Crypt.java
index e48d8cd..aae0d05 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/util/BSDMD5Crypt.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/util/BSDMD5Crypt.java
@@ -21,7 +21,7 @@
* CDDL HEADER END
*
*
- * Portions Copyright 2010-2014 ForgeRock AS
+ * Portions Copyright 2010-2015 ForgeRock AS
*
* BSD-compatible md5 password crypt
* Ported to Java from C based on crypt-md5.c by Poul-Henning Kamp,
@@ -50,9 +50,9 @@
*/
public final class BSDMD5Crypt {
- private final static String magic = "$1$";
- private final static int saltLength = 8;
- private final static String itoa64 =
+ private static final String magic = "$1$";
+ private static final int saltLength = 8;
+ private static final String itoa64 =
"./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
private static String intTo64(int value, int length)
@@ -79,7 +79,7 @@
* @throws NoSuchAlgorithmException If the MD5 algorithm is not supported.
*
*/
- static public String crypt(ByteSequence password)
+ public static String crypt(ByteSequence password)
throws NoSuchAlgorithmException
{
SecureRandom randomGenerator = new SecureRandom();
@@ -109,7 +109,7 @@
* @throws NoSuchAlgorithmException If the MD5 algorithm is not supported.
*
*/
- static public String crypt(ByteSequence password, String salt)
+ public static String crypt(ByteSequence password, String salt)
throws NoSuchAlgorithmException
{
MessageDigest ctx, ctx1;
@@ -250,7 +250,7 @@
*
* @return the magic string for this crypt algorithm
*/
- static public String getMagicString()
+ public static String getMagicString()
{
return magic;
}
@@ -261,7 +261,7 @@
* @param argv The array of test arguments
*
*/
- static public void main(String argv[])
+ public static void main(String argv[])
{
if ((argv.length < 1) || (argv.length > 2))
{
--
Gitblit v1.10.0