The following issues were found
src/test/java/com/alibaba/json/test/a/User.java
1 issues
Line: 4
package com.alibaba.json.test.a;
public class User{
public User() {
}
public User(int age, String name) {
super();
this.age = age;
Reported by PMD.
src/test/java/com/alibaba/json/test/TestWriteSlashAsSpecial.java
1 issues
Line: 14
public class TestWriteSlashAsSpecial extends TestCase {
public void test_writeSlashAsSpecial() throws Exception {
int features = JSON.DEFAULT_GENERATE_FEATURE;
features = SerializerFeature.config(features, SerializerFeature.WriteSlashAsSpecial, true);
features = SerializerFeature.config(features, SerializerFeature.WriteTabAsSpecial, true);
features = SerializerFeature.config(features, SerializerFeature.DisableCircularReferenceDetect, true);
features = SerializerFeature.config(features, SerializerFeature.SortField, false);
Reported by PMD.
src/test/java/com/alibaba/json/demo/hibernate/data/Payment.java
1 issues
Line: 22
@Entity
@Table(name = "Payment", catalog = "classicmodels")
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@type")
public class Payment implements java.io.Serializable
{
private PaymentId id;
private Customer customer;
private Date paymentDate;
private double amount;
Reported by PMD.
src/test/java/com/alibaba/json/demo/hibernate/data/Order.java
1 issues
Line: 26
@Table(name="\"ORDER\""
,catalog="classicmodels"
)
public class Order implements java.io.Serializable {
private Integer orderNumber;
private Customer customer;
private Date orderDate;
Reported by PMD.
src/test/java/com/alibaba/json/demo/Group.java
1 issues
Line: 6
import java.util.ArrayList;
import java.util.List;
public class Group {
private Long id;
private String name;
private List<User> users = new ArrayList<User>();
Reported by PMD.
src/test/java/com/alibaba/json/bvtVO/TempAttachMetaOption.java
1 issues
Line: 25
*
* @author lei.yaol 2011-12-27 下午03:43:32
*/
public class TempAttachMetaOption implements Serializable {
private static final long serialVersionUID = -8786217160252057362L;
private Integer id;
Reported by PMD.
src/test/java/com/alibaba/json/test/tmall/RateResult.java
1 issues
Line: 12
* Date: 2015/9/1
* Time: 14:51
*/
public class RateResult {
@JSONField(name = "head")
private Head head;
@JSONField(name = "auctions")
private List<RateSearchItemDO> comments;
Reported by PMD.
src/test/java/com/alibaba/json/demo/ErrorObjectSerializer.java
1 issues
Line: 15
public class ErrorObjectSerializer implements AutowiredObjectSerializer {
public ErrorObjectSerializer() {
throw new RuntimeException();
}
public void write(JSONSerializer serializer, Object object, Object fieldName, Type fieldType, int features) throws IOException {
}
Reported by PMD.
src/test/java/com/alibaba/json/bvtVO/一个中文名字的包/User.java
1 issues
Line: 3
package com.alibaba.json.bvtVO.一个中文名字的包;
public class User {
Integer id ;
String name;
public Integer getId() {
return id;
}
public void setId(Integer id) {
Reported by PMD.
src/test/java/com/alibaba/json/bvtVO/QueueEntity.java
1 issues
Line: 18
*
* @author xiaosong.liangxs
*/
public class QueueEntity {
private int id;
private String description;
private Map<Integer, PhysicalQueue> pqMap = new HashMap<Integer, PhysicalQueue>();
Reported by PMD.