Skip to content

Commit 975302b

Browse files
committed
fastjsont-1.1.34.android
1 parent bd269d7 commit 975302b

File tree

6 files changed

+6
-14
lines changed

6 files changed

+6
-14
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>com.alibaba</groupId>
66
<artifactId>fastjson</artifactId>
7-
<version>1.1.33.android</version>
7+
<version>1.1.34.android</version>
88

99
<packaging>jar</packaging>
1010
<name>fastjson</name>

src/main/java/com/alibaba/fastjson/JSON.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,5 +659,5 @@ public static final <T> T toJavaObject(JSON json, Class<T> clazz) {
659659
return TypeUtils.cast(json, clazz, ParserConfig.getGlobalInstance());
660660
}
661661

662-
public final static String VERSION = "1.1.33-android";
662+
public final static String VERSION = "1.1.34-android";
663663
}

src/main/java/com/alibaba/fastjson/util/DeserializeBeanInfo.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,7 @@ public static DeserializeBeanInfo computeSetters(Class<?> clazz, Type type) {
196196

197197
String propertyName;
198198
if (Character.isUpperCase(c3)) {
199-
if (methodName.length() > 4 && Character.isUpperCase(methodName.charAt(4))) {
200-
propertyName = methodName.substring(3);
201-
} else {
202-
propertyName = Character.toLowerCase(methodName.charAt(3)) + methodName.substring(4);
203-
}
199+
propertyName = Character.toLowerCase(methodName.charAt(3)) + methodName.substring(4);
204200
} else if (c3 == '_') {
205201
propertyName = methodName.substring(4);
206202
} else if (c3 == 'f') {

src/main/java/com/alibaba/fastjson/util/TypeUtils.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -946,11 +946,7 @@ public static List<FieldInfo> computeGetters(Class<?> clazz, Map<String, String>
946946

947947
String propertyName;
948948
if (Character.isUpperCase(c3)) {
949-
if (methodName.length() > 4 && Character.isUpperCase(methodName.charAt(4))) {
950-
propertyName = methodName.substring(3);
951-
} else {
952-
propertyName = Character.toLowerCase(methodName.charAt(3)) + methodName.substring(4);
953-
}
949+
propertyName = Character.toLowerCase(methodName.charAt(3)) + methodName.substring(4);
954950
} else if (c3 == '_') {
955951
propertyName = methodName.substring(4);
956952
} else if (c3 == 'f') {

src/test/java/com/alibaba/json/bvt/JSONFeidDemo2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public void test_0() throws Exception {
2323
System.out.println(text);
2424

2525
assertEquals(
26-
"{\"IM_PREQ_NO\":\"111111\",\"TB_PR_INFO\":[{\"PREQ_NO\":\"t1\"},{\"PREQ_NO\":\"t2\"}]}",
26+
"{\"iM_PREQ_NO\":\"111111\",\"tB_PR_INFO\":[{\"PREQ_NO\":\"t1\"},{\"PREQ_NO\":\"t2\"}]}",
2727
text);
2828

2929
}

src/test/java/com/alibaba/json/bvt/serializer/JSONFieldTest5.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public void test_jsonField() throws Exception {
1414
vo.setID(123);
1515

1616
String text = JSON.toJSONString(vo);
17-
Assert.assertEquals("{\"ID\":123}", text);
17+
Assert.assertEquals("{\"iD\":123}", text);
1818

1919
Assert.assertEquals(123, JSON.parseObject(text, VO.class).getID());
2020
}

0 commit comments

Comments
 (0)