Commits

Sebastian Sdorra  committed 3fe96c5

added missing deprecated annotations

  • Participants
  • Parent commits 7e66724

Comments (0)

Files changed (6)

File scm-core/src/main/java/sonia/scm/security/CipherException.java

 public class CipherException extends RuntimeException
 {
 
+  /** Field description */
+  private static final long serialVersionUID = -310359939906084281L;
+
+  //~--- constructors ---------------------------------------------------------
+
   /**
    * Constructs ...
    *

File scm-core/src/main/java/sonia/scm/security/HashBuilder.java

  * @since 1.13
  * @deprecated use {@link SimpleHash} instead.
  */
+@Deprecated
 public interface HashBuilder
 {
 

File scm-core/src/main/java/sonia/scm/security/MD5HashBuilder.java

  * @since 1.13
  * @deprecated use {@link Md5Hash} instead.
  */
+@Deprecated
 public class MD5HashBuilder extends MessageDigestHashBuilder
 {
 

File scm-core/src/main/java/sonia/scm/security/MessageDigestHashBuilder.java

  */
 
 
+
 package sonia.scm.security;
 
 //~--- non-JDK imports --------------------------------------------------------
 
+import org.apache.shiro.crypto.hash.SimpleHash;
+
 import sonia.scm.util.Util;
 
 //~--- JDK imports ------------------------------------------------------------
 
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
-import org.apache.shiro.crypto.hash.SimpleHash;
 
 /**
  *
  * @since 1.13
  * @deprecated use {@link SimpleHash} instead.
  */
+@Deprecated
 public class MessageDigestHashBuilder implements HashBuilder
 {
 
    * @param enableLabel
    */
   public MessageDigestHashBuilder(String digest, String value, byte[] salt,
-                                  int iterations, boolean appendSalt,
-                                  boolean enableLabel)
+    int iterations, boolean appendSalt, boolean enableLabel)
   {
     this.digest = digest;
     this.value = value;
           }
 
           hashBuilder = new MessageDigestHashBuilder(digest, null, salt, 0,
-                  salt != null, true);
+            salt != null, true);
         }
       }
 

File scm-core/src/main/java/sonia/scm/security/SHA1HashBuilder.java

  * @since 1.13
  * @deprecated use {@link Sha1Hash} instead.
  */
+@Deprecated
 public class SHA1HashBuilder extends MessageDigestHashBuilder
 {
 

File scm-core/src/main/java/sonia/scm/security/SHA512HashBuilder.java

  * @since 1.13
  * @deprecated use {@link Sha512Hash} instead.
  */
+@Deprecated
 public class SHA512HashBuilder extends MessageDigestHashBuilder
 {