The following issues were found
src/test/java/com/alibaba/json/test/vans/VansGeometryDataMetaData.java
2 issues
Line: 9
* Created by xiaolin_kxl on 16/12/28.
*/
public class VansGeometryDataMetaData implements Serializable {
public int version;
public int uvs;
public int normals;
public int faces;
public int vertices;
Reported by PMD.
Line: 9
* Created by xiaolin_kxl on 16/12/28.
*/
public class VansGeometryDataMetaData implements Serializable {
public int version;
public int uvs;
public int normals;
public int faces;
public int vertices;
Reported by PMD.
src/test/java/com/alibaba/json/test/vans/VansObject.java
2 issues
Line: 12
* Created by xiaolin_kxl on 17/1/5.
*/
@JSONType(orders = {"uuid","type","matrix","children"})
public class VansObject implements Serializable {
public String uuid;
public String type;
public ArrayList<VansObjectChildren> children;
public float[] matrix;
}
Reported by PMD.
Line: 15
public class VansObject implements Serializable {
public String uuid;
public String type;
public ArrayList<VansObjectChildren> children;
public float[] matrix;
}
Reported by PMD.
src/test/java/com/alibaba/json/bvt/writeAsArray/WriteAsArray_byte_public.java
2 issues
Line: 11
import com.alibaba.fastjson.serializer.SerializerFeature;
public class WriteAsArray_byte_public extends TestCase {
public void test_0 () throws Exception {
VO vo = new VO();
vo.setId((byte)123);
vo.setName("wenshao");
String text = JSON.toJSONString(vo, SerializerFeature.BeanToArray);
Reported by PMD.
Line: 20
Assert.assertEquals("[123,\"wenshao\"]", text);
}
public static class VO {
private byte id;
private String name;
public byte getId() {
return id;
Reported by PMD.
src/test/java/com/derbysoft/spitfire/fastjson/dto/GuestCountDTO.java
2 issues
Line: 3
package com.derbysoft.spitfire.fastjson.dto;
public class GuestCountDTO extends AbstractDTO{
private AgeQualifyingType ageQualifyingType;
private int count;
public GuestCountDTO() {
}
Reported by PMD.
Line: 10
public GuestCountDTO() {
}
public GuestCountDTO(AgeQualifyingType ageQualifyingType, int count) {
this.ageQualifyingType = ageQualifyingType;
}
public AgeQualifyingType getAgeQualifyingType() {
return ageQualifyingType;
Reported by PMD.
src/test/java/com/derbysoft/spitfire/fastjson/dto/MealsIncludedDTO.java
2 issues
Line: 3
package com.derbysoft.spitfire.fastjson.dto;
public class MealsIncludedDTO extends AbstractDTO{
private MealsIncludedType mealsIncludedType;
private int breakfastNumber;
public MealsIncludedDTO() {
}
Reported by PMD.
Line: 11
public MealsIncludedDTO() {
}
public MealsIncludedDTO(MealsIncludedType type) {
}
public MealsIncludedType getMealsIncludedType() {
return mealsIncludedType;
}
Reported by PMD.
src/test/java/com/derbysoft/spitfire/fastjson/dto/RoomTypeDTO.java
2 issues
Line: 6
import java.util.ArrayList;
import java.util.List;
public class RoomTypeDTO extends AbstractDTO {
private String code;
private String name;
private String description;
Reported by PMD.
Line: 6
import java.util.ArrayList;
import java.util.List;
public class RoomTypeDTO extends AbstractDTO {
private String code;
private String name;
private String description;
Reported by PMD.
src/test/java/oracle/sql/TIMESTAMP.java
2 issues
Line: 8
public class TIMESTAMP {
private Date date;
public TIMESTAMP(Timestamp date){
this.date = date;
}
Reported by PMD.
Line: 8
public class TIMESTAMP {
private Date date;
public TIMESTAMP(Timestamp date){
this.date = date;
}
Reported by PMD.
src/test/java/com/alibaba/json/bvt/parser/error/ParseErrorTest_19.java
2 issues
Line: 12
public class ParseErrorTest_19 extends TestCase {
public void test_for_error() throws Exception {
Exception error = null;
try {
JSON.parse("[\"wenshao\"");
} catch (JSONException ex) {
error = ex;
Reported by PMD.
Line: 13
public class ParseErrorTest_19 extends TestCase {
public void test_for_error() throws Exception {
Exception error = null;
try {
JSON.parse("[\"wenshao\"");
} catch (JSONException ex) {
error = ex;
}
Reported by PMD.
src/test/java/com/alibaba/json/bvt/parser/error/TypeNotMatchError.java
2 issues
Line: 12
public class TypeNotMatchError extends TestCase {
public void test_0() throws Exception {
JSON.parseObject("{\"value\":{\"@type\":\"com.alibaba.json.bvt.parser.error.TypeNotMatchError$AA\"}}", Model.class);
Exception error = null;
try {
JSON.parseObject("{\"value\":{\"@type\":\"com.alibaba.json.bvt.parser.error.TypeNotMatchError$B\"}}", Model.class);
Reported by PMD.
Line: 15
public void test_0() throws Exception {
JSON.parseObject("{\"value\":{\"@type\":\"com.alibaba.json.bvt.parser.error.TypeNotMatchError$AA\"}}", Model.class);
Exception error = null;
try {
JSON.parseObject("{\"value\":{\"@type\":\"com.alibaba.json.bvt.parser.error.TypeNotMatchError$B\"}}", Model.class);
} catch (JSONException ex) {
error = ex;
}
Reported by PMD.
src/test/java/com/alibaba/json/bvt/parser/number/NumberValueTest3.java
2 issues
Line: 12
public class NumberValueTest3 extends TestCase {
public void test_0() throws Exception {
String text = "{\"value\":-21474836481}";
JSONObject obj = (JSONObject) JSON.parse(text);
Assert.assertEquals(Long.valueOf(-21474836481L), obj.get("value"));
}
Reported by PMD.
Line: 15
public void test_0() throws Exception {
String text = "{\"value\":-21474836481}";
JSONObject obj = (JSONObject) JSON.parse(text);
Assert.assertEquals(Long.valueOf(-21474836481L), obj.get("value"));
}
}
Reported by PMD.