You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by ff...@apache.org on 2015/12/16 06:38:10 UTC

cxf git commit: make checkstyle and pmd happy

Repository: cxf
Updated Branches:
  refs/heads/master b3627c1f9 -> 4034e6fad


make checkstyle and pmd happy


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

Branch: refs/heads/master
Commit: 4034e6fadf17f2083a89c313353b9a407eee616c
Parents: b3627c1
Author: Freeman Fang <fr...@gmail.com>
Authored: Wed Dec 16 13:37:59 2015 +0800
Committer: Freeman Fang <fr...@gmail.com>
Committed: Wed Dec 16 13:37:59 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/4034e6fa/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());