[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang SerializationUtils.java
From:       scolebourne () apache ! org
Date:       2002-08-31 11:09:45
[Download RAW message or body]

scolebourne    2002/08/31 04:09:45

  Modified:    lang/src/java/org/apache/commons/lang
                        SerializationUtils.java
  Log:
  Improve checkstyle report
  
  Revision  Changes    Path
  1.2       +5 -5      jakarta-commons/lang/src/java/org/apache/commons/lang/SerializationUtils.java
  
  Index: SerializationUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/SerializationUtils.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SerializationUtils.java	19 Jul 2002 03:35:54 -0000	1.1
  +++ SerializationUtils.java	31 Aug 2002 11:09:45 -0000	1.2
  @@ -101,7 +101,7 @@
        * @throws SerializationException (runtime) if the serialization fails
        */
       public static Object clone(Serializable object) {
  -        return deserialize( serialize(object) );
  +        return deserialize(serialize(object));
       }
       
       /**
  @@ -138,7 +138,7 @@
        * Serializes an object to a byte array for storage/serialization.
        *
        * @param obj  the object to serialize to bytes
  -     * @return a byte[] with the converted Serializable.
  +     * @return a byte[] with the converted Serializable
        * @throws SerializationException (runtime) if the serialization fails
        */
       public static byte[] serialize(Serializable obj) {
  @@ -153,7 +153,7 @@
        * a finally clause, and maybe also exception handling, in the
        * application code.
        *
  -     * @param objectData  the serialized object.
  +     * @param inputStream  the serialized object input stream
        * @return the deserialized object
        * @throws SerializationException (runtime) if the serialization fails
        */
  @@ -182,7 +182,7 @@
       /**
        * Deserializes a single object from an array of bytes.
        *
  -     * @param objectData  the serialized object.
  +     * @param objectData  the serialized object
        * @return the deserialized object
        * @throws SerializationException (runtime) if the serialization fails
        */
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic