cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject cxf git commit: make checkstyle and pmd happy
Date Wed, 16 Dec 2015 05:53:39 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes d4c3089c5 -> a4e6bafac


make checkstyle and pmd happy

(cherry picked from commit 4034e6fadf17f2083a89c313353b9a407eee616c)
(cherry picked from commit e982b671ab804ab49b7986aa243837f5ad9dd1ae)


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/a4e6bafa
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/a4e6bafa
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/a4e6bafa

Branch: refs/heads/3.0.x-fixes
Commit: a4e6bafac9fdfa084a9b91640d0bb96934fd3083
Parents: d4c3089
Author: Freeman Fang <freeman.fang@gmail.com>
Authored: Wed Dec 16 13:37:59 2015 +0800
Committer: Freeman Fang <freeman.fang@gmail.com>
Committed: Wed Dec 16 13:52:58 2015 +0800

----------------------------------------------------------------------
 .../org/apache/cxf/aegis/type/basic/ObjectType.java | 16 ----------------
 1 file changed, 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/a4e6bafa/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/basic/ObjectType.java
----------------------------------------------------------------------
diff --git a/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/basic/ObjectType.java
b/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/basic/ObjectType.java
index 8bf15de..0eefc78 100644
--- a/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/basic/ObjectType.java
+++ b/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/basic/ObjectType.java
@@ -18,8 +18,6 @@
  */
 package org.apache.cxf.aegis.type.basic;
 
-import java.io.ByteArrayInputStream;
-import java.io.ObjectInputStream;
 import java.util.Collections;
 import java.util.Set;
 
@@ -33,10 +31,6 @@ import org.apache.cxf.aegis.type.AegisType;
 import org.apache.cxf.aegis.type.TypeMapping;
 import org.apache.cxf.aegis.xml.MessageReader;
 import org.apache.cxf.aegis.xml.MessageWriter;
-import org.apache.cxf.common.util.Base64Utility;
-import org.apache.ws.commons.schema.XmlSchema;
-import org.apache.ws.commons.schema.XmlSchemaSimpleType;
-import org.apache.ws.commons.schema.XmlSchemaSimpleTypeRestriction;
 import org.apache.ws.commons.schema.constants.Constants;
 
 /**
@@ -142,16 +136,6 @@ public class ObjectType extends AegisType {
         }
     }
 
-    private Object reconstituteJavaObject(MessageReader reader) throws DatabindingException
{
-
-        try {
-            ByteArrayInputStream in = new ByteArrayInputStream(Base64Utility
-                                                                   .decode(reader.getValue().trim()));
-            return new ObjectInputStream(in).readObject();
-        } catch (Exception e) {
-            throw new DatabindingException("Unable to reconstitute serialized object", e);
-        }
-    }
 
     private boolean isNil(MessageReader reader) {
         return null != reader && "true".equals(reader.getValue() == null ? "" : reader.getValue());


Mime
View raw message