From deb84461f0f49947aba00784a776592e484f2d4a Mon Sep 17 00:00:00 2001 From: kimi Date: Thu, 31 May 2012 03:05:06 +0000 Subject: [PATCH] =?UTF-8?q?DUBBO-318=20=E5=9B=9E=E6=BB=9A=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=EF=BC=8C=E6=8A=8A=E4=BF=AE=E6=94=B9=E6=94=BE=E5=88=B0?= =?UTF-8?q?=20hessian-lite=20=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://code.alibabatech.com/svn/dubbo/trunk@1893 1a56cb94-b969-4eaa-88fa-be21384802f2 --- .../hessian/BigIntegerSerializerFactory.java | 46 ------------------- .../hessian/Hessian2SerializerFactory.java | 3 +- pom.xml | 2 +- 3 files changed, 2 insertions(+), 49 deletions(-) delete mode 100644 dubbo-common/src/main/java/com/alibaba/dubbo/common/serialize/support/hessian/BigIntegerSerializerFactory.java diff --git a/dubbo-common/src/main/java/com/alibaba/dubbo/common/serialize/support/hessian/BigIntegerSerializerFactory.java b/dubbo-common/src/main/java/com/alibaba/dubbo/common/serialize/support/hessian/BigIntegerSerializerFactory.java deleted file mode 100644 index dfdb4d064..000000000 --- a/dubbo-common/src/main/java/com/alibaba/dubbo/common/serialize/support/hessian/BigIntegerSerializerFactory.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.alibaba.dubbo.common.serialize.support.hessian; - -import java.math.BigInteger; - -import com.alibaba.com.caucho.hessian.io.AbstractSerializerFactory; -import com.alibaba.com.caucho.hessian.io.Deserializer; -import com.alibaba.com.caucho.hessian.io.HessianProtocolException; -import com.alibaba.com.caucho.hessian.io.JavaDeserializer; -import com.alibaba.com.caucho.hessian.io.Serializer; - -/** - * @author kimi - */ -class BigIntegerSerializerFactory extends AbstractSerializerFactory { - - static final BigIntegerSerializerFactory INSTANCE = - new BigIntegerSerializerFactory(); - - private static final Deserializer bigIntegerDeserializer = - new JavaDeserializer(BigInteger.class) { - - @Override - protected Object instantiate() throws Exception { - return new BigInteger("0"); - } - }; - - public BigIntegerSerializerFactory() { - super(); - } - - @Override - public Serializer getSerializer(Class cl) throws HessianProtocolException { - return null; - } - - @Override - public Deserializer getDeserializer(Class cl) throws HessianProtocolException { - if (cl == BigInteger.class) { - return bigIntegerDeserializer; - } - return null; - } - -} - diff --git a/dubbo-common/src/main/java/com/alibaba/dubbo/common/serialize/support/hessian/Hessian2SerializerFactory.java b/dubbo-common/src/main/java/com/alibaba/dubbo/common/serialize/support/hessian/Hessian2SerializerFactory.java index 727c77f3a..192f05b07 100644 --- a/dubbo-common/src/main/java/com/alibaba/dubbo/common/serialize/support/hessian/Hessian2SerializerFactory.java +++ b/dubbo-common/src/main/java/com/alibaba/dubbo/common/serialize/support/hessian/Hessian2SerializerFactory.java @@ -22,7 +22,6 @@ public class Hessian2SerializerFactory extends SerializerFactory { public static final SerializerFactory SERIALIZER_FACTORY = new Hessian2SerializerFactory(); private Hessian2SerializerFactory() { - addFactory(BigIntegerSerializerFactory.INSTANCE); } @Override @@ -30,4 +29,4 @@ public class Hessian2SerializerFactory extends SerializerFactory { return Thread.currentThread().getContextClassLoader(); } -} \ No newline at end of file +} diff --git a/pom.xml b/pom.xml index b35ade583..bc9848db8 100644 --- a/pom.xml +++ b/pom.xml @@ -63,7 +63,7 @@ 1.1.7 2.1.4 4.1.2 - 3.2.1-fixed + 3.2.1-fixed-2 1.4.1 1.1.8 3.1 -- GitLab