Skip to content

Commit

Permalink
removed deprecated api
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Apr 4, 2016
1 parent cd00046 commit a9260a9
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 25 deletions.
10 changes: 0 additions & 10 deletions src/main/java/com/alibaba/fastjson/parser/JavaBeanMapping.java

This file was deleted.

Expand Up @@ -65,11 +65,6 @@ public JSONSerializer(SerializeConfig config){
this(new SerializeWriter(), config);
}

@Deprecated
public JSONSerializer(JSONSerializerMap mapping){
this(new SerializeWriter(), mapping);
}

public JSONSerializer(SerializeWriter out, SerializeConfig config){
this.out = out;
this.config = config;
Expand Down
6 changes: 3 additions & 3 deletions src/test/java/com/alibaba/json/bvt/JavaBeanMappingTest.java
@@ -1,13 +1,13 @@
package com.alibaba.json.bvt;

import junit.framework.TestCase;
import com.alibaba.fastjson.parser.ParserConfig;

import com.alibaba.fastjson.parser.JavaBeanMapping;
import junit.framework.TestCase;

@SuppressWarnings("deprecation")
public class JavaBeanMappingTest extends TestCase {

public void test_0 () throws Exception {
JavaBeanMapping.getGlobalInstance();
ParserConfig.getGlobalInstance();
}
}
@@ -1,18 +1,18 @@
package com.alibaba.json.bvt.serializer;

import junit.framework.TestCase;

import org.junit.Assert;

import com.alibaba.fastjson.serializer.JSONSerializer;
import com.alibaba.fastjson.serializer.JSONSerializerMap;
import com.alibaba.fastjson.serializer.SerializeConfig;
import com.fasterxml.jackson.databind.util.ISO8601DateFormat;

import junit.framework.TestCase;

@SuppressWarnings("deprecation")
public class JSONSerializerDeprecatedTest extends TestCase {

public void test_() throws Exception {
JSONSerializer ser = new JSONSerializer(new JSONSerializerMap());
JSONSerializer ser = new JSONSerializer(new SerializeConfig());

ser.setDateFormat(new ISO8601DateFormat());
Assert.assertEquals(null, ser.getDateFormatPattern());
Expand Down
@@ -1,16 +1,17 @@
package com.alibaba.json.bvt.serializer;

import org.junit.Assert;
import junit.framework.TestCase;

import com.alibaba.fastjson.serializer.IntegerCodec;
import com.alibaba.fastjson.serializer.JSONSerializerMap;
import com.alibaba.fastjson.serializer.SerializeConfig;

import junit.framework.TestCase;

@SuppressWarnings("deprecation")
public class JSONSerializerMapTest extends TestCase {

public void test_0() throws Exception {
JSONSerializerMap map = new JSONSerializerMap();
SerializeConfig map = new SerializeConfig();

Assert.assertFalse(0 == map.size());
Assert.assertEquals(true, map.get(Integer.class) == IntegerCodec.instance);
Expand Down

0 comments on commit a9260a9

Please sign in to comment.