commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1306465 - in /commons/proper/codec/trunk/src/main/java/org/apache/commons/codec: StringEncoderComparator.java binary/Base64.java language/Caverphone.java language/Soundex.java net/URLCodec.java
Date Wed, 28 Mar 2012 16:59:18 GMT
Author: ggregory
Date: Wed Mar 28 16:59:17 2012
New Revision: 1306465

URL: http://svn.apache.org/viewvc?rev=1306465&view=rev
Log:
Add missing '@Deprecated' annotations

Modified:
    commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/StringEncoderComparator.java
    commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/binary/Base64.java
    commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/language/Caverphone.java
    commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/language/Soundex.java
    commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/URLCodec.java

Modified: commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/StringEncoderComparator.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/StringEncoderComparator.java?rev=1306465&r1=1306464&r2=1306465&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/StringEncoderComparator.java
(original)
+++ commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/StringEncoderComparator.java
Wed Mar 28 16:59:17 2012
@@ -40,6 +40,7 @@ public class StringEncoderComparator imp
      * @deprecated Creating an instance without a {@link StringEncoder} leads to a {@link
NullPointerException}. Will be
      *             removed in 2.0.
      */
+    @Deprecated
     public StringEncoderComparator() {
         this.stringEncoder = null; // Trying to use this will cause things to break
     }

Modified: commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/binary/Base64.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/binary/Base64.java?rev=1306465&r1=1306464&r2=1306465&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/binary/Base64.java (original)
+++ commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/binary/Base64.java Wed
Mar 28 16:59:17 2012
@@ -477,6 +477,7 @@ public class Base64 extends BaseNCodec {
      *         {@code false}, otherwise
      * @deprecated 1.5 Use {@link #isBase64(byte[])}, will be removed in 2.0.
      */
+    @Deprecated
     public static boolean isArrayByteBase64(byte[] arrayOctet) {
         return isBase64(arrayOctet);
     }

Modified: commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/language/Caverphone.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/language/Caverphone.java?rev=1306465&r1=1306464&r2=1306465&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/language/Caverphone.java
(original)
+++ commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/language/Caverphone.java
Wed Mar 28 16:59:17 2012
@@ -33,6 +33,7 @@ import org.apache.commons.codec.StringEn
  * @since 1.4
  * @deprecated 1.5 Replaced by {@link Caverphone2}, will be removed in 2.0.
  */
+@Deprecated
 public class Caverphone implements StringEncoder {
 
     /**

Modified: commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/language/Soundex.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/language/Soundex.java?rev=1306465&r1=1306464&r2=1306465&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/language/Soundex.java
(original)
+++ commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/language/Soundex.java
Wed Mar 28 16:59:17 2012
@@ -61,6 +61,7 @@ public class Soundex implements StringEn
      * 
      * @deprecated This feature is not needed since the encoding size must be constant. Will
be removed in 2.0.
      */
+    @Deprecated
     private int maxLength = 4;
 
     /**
@@ -198,6 +199,7 @@ public class Soundex implements StringEn
      * @deprecated This feature is not needed since the encoding size must be constant. Will
be removed in 2.0.
      * @return int
      */
+    @Deprecated
     public int getMaxLength() {
         return this.maxLength;
     }
@@ -235,6 +237,7 @@ public class Soundex implements StringEn
      * @param maxLength
      *                  The maxLength to set
      */
+    @Deprecated
     public void setMaxLength(int maxLength) {
         this.maxLength = maxLength;
     }

Modified: commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/URLCodec.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/URLCodec.java?rev=1306465&r1=1306464&r2=1306465&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/URLCodec.java (original)
+++ commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/URLCodec.java Wed
Mar 28 16:59:17 2012
@@ -356,6 +356,7 @@ public class URLCodec implements BinaryE
      * 
      * @deprecated Use {@link #getDefaultCharset()}, will be removed in 2.0.
      */
+    @Deprecated
     public String getEncoding() {
         return this.charset;
     }



Mime
View raw message