[jboss-cvs] JBoss Messaging SVN: r2299 - trunk/src/main/org/jboss/jms/wireformat.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Feb 13 12:50:03 EST 2007


Author: timfox
Date: 2007-02-13 12:50:02 -0500 (Tue, 13 Feb 2007)
New Revision: 2299

Modified:
   trunk/src/main/org/jboss/jms/wireformat/SerializedPacket.java
Log:
removed commented out code


Modified: trunk/src/main/org/jboss/jms/wireformat/SerializedPacket.java
===================================================================
--- trunk/src/main/org/jboss/jms/wireformat/SerializedPacket.java	2007-02-13 15:42:32 UTC (rev 2298)
+++ trunk/src/main/org/jboss/jms/wireformat/SerializedPacket.java	2007-02-13 17:50:02 UTC (rev 2299)
@@ -45,7 +45,6 @@
 public class SerializedPacket extends PacketSupport
 {
    private static final Logger log = Logger.getLogger(SerializedPacket.class);
-
    
    private Object payload;
    
@@ -67,18 +66,6 @@
 
    public void read(DataInputStream is) throws Exception
    {
-//      int len = is.readInt();
-//      
-//      byte[] bytes = new byte[len];
-//      
-//      is.readFully(bytes);
-//      
-//      ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
-//      
-//      ObjectInputStream ois = new ObjectInputStream(bais);
-//      
-//      payload = ois.readObject();     
-           
       ObjectInputStream ois = new ObjectInputStreamWithClassLoader(is, Thread.currentThread().getContextClassLoader());
       
       payload = ois.readObject();
@@ -87,25 +74,7 @@
    public void write(DataOutputStream os) throws Exception
    {
       super.write(os);
-      
-//      ByteArrayOutputStream baos = new ByteArrayOutputStream();
-//      
-//      ObjectOutputStream oos = new ObjectOutputStream(baos);
-//      
-//      log.info("writing payload " + payload);
-//      
-//      oos.writeObject(payload);
-//      
-//      oos.flush();
-//      
-//      byte[] bytes = baos.toByteArray();
-//      
-//      os.writeInt(bytes.length);
-//      
-//      os.write(bytes);
-//            
-//      os.flush();
-      
+   
       ObjectOutputStream oos = new ObjectOutputStream(os);
       
       oos.writeObject(payload);




More information about the jboss-cvs-commits mailing list