openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1073633 - /openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/failover/DefaultOwbFailOverService.java
Date Wed, 23 Feb 2011 08:24:56 GMT
Author: struberg
Date: Wed Feb 23 08:24:56 2011
New Revision: 1073633

URL: http://svn.apache.org/viewvc?rev=1073633&view=rev
Log:
OWB-461 drop unused private methods

Modified:
    openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/failover/DefaultOwbFailOverService.java

Modified: openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/failover/DefaultOwbFailOverService.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/failover/DefaultOwbFailOverService.java?rev=1073633&r1=1073632&r2=1073633&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/failover/DefaultOwbFailOverService.java
(original)
+++ openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/failover/DefaultOwbFailOverService.java
Wed Feb 23 08:24:56 2011
@@ -19,8 +19,6 @@
 package org.apache.webbeans.web.failover;
 
 import java.util.UUID;
-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.ObjectInput;
@@ -241,45 +239,4 @@ public class DefaultOwbFailOverService i
         }
         return NOT_HANDLED;
     }
-
-    private static byte[] getBytes(Object obj) 
-    {
-        ByteArrayOutputStream baos = null;
-        ObjectOutputStream oos = null;
-        byte[] buf = new byte[0];
-
-        try 
-        {
-            baos = new ByteArrayOutputStream();
-            oos = new ObjectOutputStream(baos);
-            oos.writeObject(obj);
-            buf = baos.toByteArray();
-    
-            oos.close();
-            baos.close();
-        } 
-        catch (Throwable e) 
-        {
-            e.printStackTrace();
-        }
-
-        return buf;
-    }
-    
-    private static Object getObject(byte[] buf) 
-    {
-        try 
-        {
-            ByteArrayInputStream bais = new ByteArrayInputStream(buf);
-            ObjectInputStream ois = new ObjectInputStream(bais);
-            Object obj = ois.readObject();
-            ois.close();
-            return obj;
-        } 
-        catch (Exception e) 
-        {
-            e.printStackTrace();
-            return null;
-        }
-    }
 }



Mime
View raw message