mirror of
https://github.com/alibaba/fastjson.git
synced 2026-10-24 02:18:47 +08:00
1.1.37
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>fastjson</artifactId>
|
||||
<version>1.1.36</version>
|
||||
<version>1.1.37-SNAPSHOT</version>
|
||||
|
||||
<packaging>jar</packaging>
|
||||
<name>fastjson</name>
|
||||
|
||||
@@ -259,6 +259,10 @@ public abstract class JSON implements JSONStreamAware, JSONAware {
|
||||
for (int i = 0; i < size; ++i) {
|
||||
ResolveTask task = resolveTaskList.get(i);
|
||||
FieldDeserializer fieldDeser = task.getFieldDeserializer();
|
||||
|
||||
if (fieldDeser == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Object object = null;
|
||||
if (task.getOwnerContext() != null) {
|
||||
@@ -698,5 +702,5 @@ public abstract class JSON implements JSONStreamAware, JSONAware {
|
||||
return TypeUtils.cast(json, clazz, ParserConfig.getGlobalInstance());
|
||||
}
|
||||
|
||||
public final static String VERSION = "1.1.35";
|
||||
public final static String VERSION = "1.1.37";
|
||||
}
|
||||
|
||||
@@ -7,11 +7,10 @@ public class PascalNameFilter implements NameFilter {
|
||||
return name;
|
||||
}
|
||||
|
||||
char firstChar = name.charAt(0);
|
||||
char upperFirstChar = Character.toUpperCase(firstChar);
|
||||
char[] chars = name.toCharArray();
|
||||
chars[0]= Character.toUpperCase(chars[0]);
|
||||
|
||||
String pascalName = upperFirstChar + name.substring(1);
|
||||
String pascalName = new String(chars);
|
||||
return pascalName;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user