commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r797690 - in /commons/proper/codec/trunk/src/java/org/apache/commons/codec: Decoder.java binary/BinaryCodec.java language/Caverphone.java language/Metaphone.java language/RefinedSoundex.java
Date Fri, 24 Jul 2009 23:28:36 GMT
Author: ggregory
Date: Fri Jul 24 23:28:35 2009
New Revision: 797690

URL: http://svn.apache.org/viewvc?rev=797690&view=rev
Log:
The prefix 'java.lang.' is not required to refer to this special package. This is the only
package this rule applies to.

Modified:
    commons/proper/codec/trunk/src/java/org/apache/commons/codec/Decoder.java
    commons/proper/codec/trunk/src/java/org/apache/commons/codec/binary/BinaryCodec.java
    commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/Caverphone.java
    commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/Metaphone.java
    commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/RefinedSoundex.java

Modified: commons/proper/codec/trunk/src/java/org/apache/commons/codec/Decoder.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/java/org/apache/commons/codec/Decoder.java?rev=797690&r1=797689&r2=797690&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/java/org/apache/commons/codec/Decoder.java (original)
+++ commons/proper/codec/trunk/src/java/org/apache/commons/codec/Decoder.java Fri Jul 24 23:28:35
2009
@@ -37,7 +37,7 @@
      * Object.  Note that the implementation of this
      * interface will try to cast the Object parameter
      * to the specific type expected by a particular Decoder
-     * implementation.  If a {@link java.lang.ClassCastException} occurs
+     * implementation.  If a {@link ClassCastException} occurs
      * this decode method will throw a DecoderException.
      * 
      * @param pObject an object to "decode"

Modified: commons/proper/codec/trunk/src/java/org/apache/commons/codec/binary/BinaryCodec.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/java/org/apache/commons/codec/binary/BinaryCodec.java?rev=797690&r1=797689&r2=797690&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/java/org/apache/commons/codec/binary/BinaryCodec.java (original)
+++ commons/proper/codec/trunk/src/java/org/apache/commons/codec/binary/BinaryCodec.java Fri
Jul 24 23:28:35 2009
@@ -89,7 +89,7 @@
      * @return 0 and 1 ASCII character chars one for each bit of the argument
      * @throws EncoderException
      *                  if the argument is not a byte[]
-     * @see org.apache.commons.codec.Encoder#encode(java.lang.Object)
+     * @see org.apache.commons.codec.Encoder#encode(Object)
      */
     public Object encode(Object raw) throws EncoderException {
         if (!(raw instanceof byte[])) {
@@ -106,7 +106,7 @@
      * @return the raw encoded binary where each bit corresponds to a byte in the byte array
argument
      * @throws DecoderException
      *                  if argument is not a byte[], char[] or String
-     * @see org.apache.commons.codec.Decoder#decode(java.lang.Object)
+     * @see org.apache.commons.codec.Decoder#decode(Object)
      */
     public Object decode(Object ascii) throws DecoderException {
         if (ascii == null) {

Modified: commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/Caverphone.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/Caverphone.java?rev=797690&r1=797689&r2=797690&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/Caverphone.java
(original)
+++ commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/Caverphone.java
Fri Jul 24 23:28:35 2009
@@ -152,7 +152,7 @@
      *                          of type java.lang.String
      */
     public Object encode(Object pObject) throws EncoderException {
-        if (!(pObject instanceof java.lang.String)) {
+        if (!(pObject instanceof String)) {
             throw new EncoderException("Parameter supplied to Caverphone encode is not of
type java.lang.String"); 
         }
         return caverphone((String) pObject);

Modified: commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/Metaphone.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/Metaphone.java?rev=797690&r1=797689&r2=797690&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/Metaphone.java (original)
+++ commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/Metaphone.java Fri
Jul 24 23:28:35 2009
@@ -364,7 +364,7 @@
      *                          of type java.lang.String
      */
     public Object encode(Object pObject) throws EncoderException {
-        if (!(pObject instanceof java.lang.String)) {
+        if (!(pObject instanceof String)) {
             throw new EncoderException("Parameter supplied to Metaphone encode is not of
type java.lang.String"); 
         }
         return metaphone((String) pObject);

Modified: commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/RefinedSoundex.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/RefinedSoundex.java?rev=797690&r1=797689&r2=797690&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/RefinedSoundex.java
(original)
+++ commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/RefinedSoundex.java
Fri Jul 24 23:28:35 2009
@@ -129,7 +129,7 @@
      *                  if the parameter supplied is not of type java.lang.String
      */
     public Object encode(Object pObject) throws EncoderException {
-        if (!(pObject instanceof java.lang.String)) {
+        if (!(pObject instanceof String)) {
             throw new EncoderException("Parameter supplied to RefinedSoundex encode is not
of type java.lang.String");
         }
         return soundex((String) pObject);



Mime
View raw message