The following issues were found

src/test/java/com/alibaba/json/test/benchmark/encode/CategoryEncode.java
2 issues
Found non-transient, non-static member. Please mark as transient or provide accessors.
Error

Line: 9

              
public class CategoryEncode extends BenchmarkCase {

    private Object object;

    public CategoryEncode(){
        super("CategoryEncode");

        Category category = new Category();

            

Reported by PMD.

Private field 'object' could be made final; it is only initialized in the declaration or constructor.
Design

Line: 9

              
public class CategoryEncode extends BenchmarkCase {

    private Object object;

    public CategoryEncode(){
        super("CategoryEncode");

        Category category = new Category();

            

Reported by PMD.

src/test/java/com/alibaba/json/test/benchmark/encode/EishayEncodeOutputStream.java
2 issues
Private field 'out' could be made final; it is only initialized in the declaration or constructor.
Design

Line: 10

              
public class EishayEncodeOutputStream extends BenchmarkCase {

    private DummyOutputStream out = new DummyOutputStream();

    public EishayEncodeOutputStream(){
        super("EishayEncode-outputstream");

    }

            

Reported by PMD.

Found non-transient, non-static member. Please mark as transient or provide accessors.
Error

Line: 10

              
public class EishayEncodeOutputStream extends BenchmarkCase {

    private DummyOutputStream out = new DummyOutputStream();

    public EishayEncodeOutputStream(){
        super("EishayEncode-outputstream");

    }

            

Reported by PMD.

src/test/java/com/alibaba/json/test/benchmark/encode/Entity100IntEncode.java
2 issues
Found non-transient, non-static member. Please mark as transient or provide accessors.
Error

Line: 9

              
public class Entity100IntEncode extends BenchmarkCase {

    private Object object;

    public Entity100IntEncode(){
        super("Entity100IntEncode");

        Entity100Int entity = new Entity100Int();

            

Reported by PMD.

Private field 'object' could be made final; it is only initialized in the declaration or constructor.
Design

Line: 9

              
public class Entity100IntEncode extends BenchmarkCase {

    private Object object;

    public Entity100IntEncode(){
        super("Entity100IntEncode");

        Entity100Int entity = new Entity100Int();

            

Reported by PMD.

src/test/java/com/alibaba/json/test/benchmark/encode/ListBoolean1000Encode.java
2 issues
Found non-transient, non-static member. Please mark as transient or provide accessors.
Error

Line: 10

              
public class ListBoolean1000Encode extends BenchmarkCase {

    private Object object;

    public ListBoolean1000Encode(){
        super("BooleanArray1000Encode");

        boolean[] array = new boolean[1000];

            

Reported by PMD.

Private field 'object' could be made final; it is only initialized in the declaration or constructor.
Design

Line: 10

              
public class ListBoolean1000Encode extends BenchmarkCase {

    private Object object;

    public ListBoolean1000Encode(){
        super("BooleanArray1000Encode");

        boolean[] array = new boolean[1000];

            

Reported by PMD.

src/test/java/com/alibaba/json/test/benchmark/encode/Map1000Encode.java
2 issues
Found non-transient, non-static member. Please mark as transient or provide accessors.
Error

Line: 11

              
public class Map1000Encode extends BenchmarkCase {

    private Object object;

    @SuppressWarnings({ "rawtypes", "unchecked" })
    public Map1000Encode(){
        super("Map1000Encode");


            

Reported by PMD.

Private field 'object' could be made final; it is only initialized in the declaration or constructor.
Design

Line: 11

              
public class Map1000Encode extends BenchmarkCase {

    private Object object;

    @SuppressWarnings({ "rawtypes", "unchecked" })
    public Map1000Encode(){
        super("Map1000Encode");


            

Reported by PMD.

src/test/java/com/alibaba/json/test/entity/pagemodel/ComponentInstance.java
2 issues
This abstract class does not have any abstract methods
Design

Line: 9

               * @author jiajie.yujj @ 2010-11-29 ����09:53:39
 * @author naipei.chennp 2010-12-7 ����09:47:50
 */
public abstract class ComponentInstance {

    protected Long   sid;
    protected String cid;

    public Long getSid() {

            

Reported by PMD.

The class 'ComponentInstance' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=4, WMC=4)
Design

Line: 9

               * @author jiajie.yujj @ 2010-11-29 ����09:53:39
 * @author naipei.chennp 2010-12-7 ����09:47:50
 */
public abstract class ComponentInstance {

    protected Long   sid;
    protected String cid;

    public Long getSid() {

            

Reported by PMD.

src/test/java/com/alibaba/json/test/epubview/EpubViewHotPoint.java
2 issues
Too many fields
Design

Line: 12

               * @author renci
 *
 */
public class EpubViewHotPoint implements Serializable  {

	private static final long serialVersionUID = 2430184364840193603L;
	
	/**
	 * 热点类型:

            

Reported by PMD.

The class 'EpubViewHotPoint' is suspected to be a Data Class (WOC=2.326%, NOPA=0, NOAM=42, WMC=43)
Design

Line: 12

               * @author renci
 *
 */
public class EpubViewHotPoint implements Serializable  {

	private static final long serialVersionUID = 2430184364840193603L;
	
	/**
	 * 热点类型:

            

Reported by PMD.

src/test/java/com/alibaba/json/test/epubview/EpubViewMetaData.java
2 issues
The class 'EpubViewMetaData' is suspected to be a Data Class (WOC=20.000%, NOPA=0, NOAM=4, WMC=5)
Design

Line: 7

              import java.util.HashMap;
import java.util.Map;

public class EpubViewMetaData implements Serializable
{
    private static final long serialVersionUID = 8776084797505245120L;
    
    private boolean encrypt = false;
    private Map<String, String> properties = new HashMap<String, String>();

            

Reported by PMD.

Avoid using redundant field initializer for 'encrypt'
Performance

Line: 11

              {
    private static final long serialVersionUID = 8776084797505245120L;
    
    private boolean encrypt = false;
    private Map<String, String> properties = new HashMap<String, String>();

    public Map<String, String> getProperties()
    {
        return properties;

            

Reported by PMD.

src/test/java/com/alibaba/json/test/tmall/Head.java
2 issues
The class 'Head' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=18, WMC=18)
Design

Line: 15

               * @author benxiang.hhq
 * @version $Id: Head.java, v 0.1 2012-12-26 ����5:48:58 benxiang.hhq Exp $
 */
public class Head {
    @JSONField(name = "Status")
    private String status;
    @JSONField(name = "SearchTime")
    private String searchTime;
    @JSONField(name = "Version")

            

Reported by PMD.

Avoid unused imports such as 'com.alibaba.fastjson.annotation.JSONType'
Design

Line: 8

              package com.alibaba.json.test.tmall;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.annotation.JSONType;

/**
 * ͷ����Ϣ
 * @author benxiang.hhq
 * @version $Id: Head.java, v 0.1 2012-12-26 ����5:48:58 benxiang.hhq Exp $

            

Reported by PMD.

src/test/java/com/alibaba/json/test/vans/VansAnimation.java
2 issues
Classes implementing Serializable should set a serialVersionUID
Error

Line: 10

              /**
 * Created by xiaolin_kxl on 17/1/5.
 */
public class VansAnimation implements Serializable{
    public String fps;
    public String name;
    public ArrayList<String> tracks;

    public VansAnimation(){

            

Reported by PMD.

Avoid using implementation types like 'ArrayList'; use the interface instead
Design

Line: 13

              public class VansAnimation implements Serializable{
    public String fps;
    public String name;
    public ArrayList<String> tracks;

    public VansAnimation(){

    }
}
            

Reported by PMD.