The following issues were found

src/test/java/com/alibaba/fastjson/deserializer/issues3796/bean/ObjectO.java
1 issues
The class 'ObjectO' is suspected to be a Data Class (WOC=0.000%, NOPA=1, NOAM=4, WMC=4)
Design

Line: 8

              import java.util.List;


public class ObjectO {
	public static final String tstN = "tstN";

	@JSONField(name = "a")
	private long a;


            

Reported by PMD.

src/test/java/com/alibaba/json/bvt/bug/Bug_101_for_rongganlin_case3.java
1 issues
JUnit 4 tests that execute tests should use the @Test annotation, JUnit 5 tests should use @Test, @RepeatedTest, @TestFactory, @TestTemplate or @ParameterizedTest
Design

Line: 11

              
public class Bug_101_for_rongganlin_case3 extends TestCase {

    public void test_for_bug() throws Exception {
        Entity entity = new Entity();
        entity.setHolder(new Holder<String>("AAA"));

        JSONObject json = (JSONObject) JSON.toJSON(entity);
        Entity entity2 = JSON.toJavaObject(json, Entity.class);

            

Reported by PMD.

src/test/java/com/alibaba/json/bvt/JSONTokenTest.java
1 issues
JUnit 4 tests that execute tests should use the @Test annotation, JUnit 5 tests should use @Test, @RepeatedTest, @TestFactory, @TestTemplate or @ParameterizedTest
Design

Line: 9

              import com.alibaba.fastjson.parser.JSONToken;

public class JSONTokenTest extends TestCase {
    public void test_0 () throws Exception {
        new JSONToken();
        
        Assert.assertEquals("int", JSONToken.name(JSONToken.LITERAL_INT));
        Assert.assertEquals("float", JSONToken.name(JSONToken.LITERAL_FLOAT));
        Assert.assertEquals("string", JSONToken.name(JSONToken.LITERAL_STRING));

            

Reported by PMD.

src/test/java/com/alibaba/json/bvt/bug/Bug_for_issue_253.java
1 issues
JUnit 4 tests that execute tests should use the @Test annotation, JUnit 5 tests should use @Test, @RepeatedTest, @TestFactory, @TestTemplate or @ParameterizedTest
Design

Line: 13

              import junit.framework.TestCase;

public class Bug_for_issue_253 extends TestCase {
    public void test_for_issue() throws Exception {
        VO vo = new VO();
        vo.setValue(new Date(1460434818838L));
        String text = JSON.toJSONString(vo, new SerializeFilter[0]);
        Assert.assertEquals("{\"value\":1460434818838}", text);
    }

            

Reported by PMD.

src/test/java/com/alibaba/fastjson/deserializer/issues3796/bean/ObjectD_A.java
1 issues
The class 'ObjectD_A' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=4, WMC=4)
Design

Line: 7

              


public class ObjectD_A {
	
	private int a;

	
	private boolean b;

            

Reported by PMD.

src/main/java/com/alibaba/fastjson/parser/deserializer/ObjectDeserializer.java
1 issues
Avoid unused imports such as 'com.alibaba.fastjson.parser.Feature'
Design

Line: 7

              
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.parser.DefaultJSONParser;
import com.alibaba.fastjson.parser.Feature;
import com.alibaba.fastjson.parser.ParserConfig;

/**
 * <p>Interface representing a custom deserializer for Json. You should write a custom
 * deserializer, if you are not happy with the default deserialization done by Gson. You will

            

Reported by PMD.

src/test/java/com/alibaba/fastjson/deserializer/issues3796/bean/ObjectO2.java
1 issues
The class 'ObjectO2' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=6, WMC=6)
Design

Line: 3

              package com.alibaba.fastjson.deserializer.issues3796.bean;

public class ObjectO2 {
	
	private int a;

	
	private boolean b = true;


            

Reported by PMD.

src/main/java/com/alibaba/fastjson/support/geo/Feature.java
1 issues
The class 'Feature' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=6, WMC=7)
Design

Line: 12

               * @since 1.2.68
 */
@JSONType(typeName = "Feature", orders = {"type", "id", "bbox", "coordinates", "properties"})
public class Feature
        extends Geometry {
    private String id;
    private Geometry geometry;
    private Map<String, String> properties = new LinkedHashMap<String, String>();


            

Reported by PMD.

src/test/java/com/alibaba/fastjson/deserializer/issues3796/bean/ObjectD2.java
1 issues
The class 'ObjectD2' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=30, WMC=30)
Design

Line: 6

              import java.util.List;


public class ObjectD2 {
	
	private int a;
	
	private int b;
	

            

Reported by PMD.

src/test/java/com/alibaba/fastjson/deserializer/issues3796/bean/ObjectO_A.java
1 issues
The class 'ObjectO_A' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=12, WMC=12)
Design

Line: 8

              


public class ObjectO_A {
	
	private int a;
	
	private int b;
	

            

Reported by PMD.